View Single Post
Old 08-22-2005, 04:56 PM   #2 (permalink)
sandman
Junior Member
 
Join Date: Jul 2005
Posts: 36
Default

Hi,

Yes, this is easy with iptables, the successor to ipchains for 2.4+ series kernels. You just need simple code like :

echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/modprobe iptable_nat
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth1-j DNAT --to 172.16.16.10:8080

Hope this helps
sandman is offline   Reply With Quote
Sponsored Links