snmptraps incomming on udp port 162 REDIRECT to 4162 notworking?

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

 



On Tue, 2002-11-05 at 13:29, Antony Stone wrote:
> On Tuesday 05 November 2002 4:16 pm, Ben Russo wrote:
> 
> > Hi,
> >
> > I tried the following:
> >
> > iptables -t nat -p udp -m udp --dport 162 -j REDIRECT --to-ports 4162
> >
> > Any ideas on how to make this work?
> 
> You should have a "-A PREROUTING" in there.   I'm not sure about the "-m udp" 
> - I presume this is something to do with loading modules for different 
> protocol support ?   (I don't use modules, but I've seen this sort of thing 
> in other people's rules before.)
> 
> Antony.

Thanks Antony and Joel,

I'm sorry I was a little confusing there... I had the "-A PREROUTING" in
there when I typed it on the host, just not in the e-mail I sent to the
list.  Hopefully this will clear it up a little.... It still doesn't
seem to work, but here is the output of the "iptables-save"

# Generated by iptables-save v1.2.5 on Mon Nov  4 16:06:52 2002
*nat
:PREROUTING ACCEPT [11:2077]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -p udp -m udp --dport 162 -j REDIRECT --to-ports 4162
COMMIT
# Completed on Mon Nov  4 16:06:52 2002
# Generated by iptables-save v1.2.5 on Mon Nov  4 16:06:52 2002
*filter
:INPUT ACCEPT [1814:266793]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1073:147564]
COMMIT
# Completed on Mon Nov  4 16:06:52 2002

-Ben.




[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