snmptraps incomming on udp port 162 REDIRECT to 4162 not working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 05 November 2002 11:16 am, Ben Russo wrote:
>
> I tried the following:
>
> iptables -t nat -p udp -m udp --dport 162 -j REDIRECT --to-ports 4162

iptables -t nat -A PREROUTING -p udp --dport 162 -j REDIRECT --to-ports 4=
162

should redirect all incoming for port 162 to port 4162.  You needed to sp=
ecify=20
what chain in the nat table (IE, PREROUTING to catch them as they first h=
it=20
the firewall).  If it still fails then make sure you are allowing packets=
 for=20
port 4162 through the INPUT chain of the filter table, since that's where=
=20
they should pass, and the dport they should indicate.

j



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux