Re: Doubt about forwarding. Please, Help me!

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

 



iptables -t nat -A PREROUTING -p tcp --dport 8888 -i eth1 -d EXT_IP -j
DNAT --to INT_IP

and the rule to allow the packet back 

iptables -t nat -A POSRTOUTING -s INT_IP -p tcp --sport 8888 -j SNAT --to EXT_IP


simple, with this two single rules you can redirect the port to your
internal host

best regards 

-- 
Glaucius Djalma Pereira Junior
glaucius@xxxxxxxxx



[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