Local Port Forwarding.

Jason Opperisano opie at 817west.com
Wed Apr 27 23:00:50 CEST 2005


On Wed, Apr 27, 2005 at 09:48:59PM +0100, Nick Drage wrote:
> iptables -t nat -A OUTPUT -p udp -d 192.168.13.43 --dport 161 -j
> REDIRECT --to-ports 32789
> 
> Makes no difference to the traffic I sent out on port 161 to host
> 192.168.14.43, any ideas on what I could be missing out?

speaking of typos--your rule has "-d 192.168.13.43" and you say it
doesn't affect traffic destined for 192.168.14.43.  typo in the email,
or in the rule?

> I'm using iptables version 1.2.8 if that makes a difference....

and your kernel is compiled with:

  CONFIG_IP_NF_NAT_LOCAL=y

-j

--
"Stewie: Damn it! I want pancakes! God! You people understand every
 language except English. Yo quiero pancakes. Donnez-moi pancakes.
 Click-click-bloody click pancakes!
        --Family Guy



More information about the netfilter mailing list