On Tue, 8 Apr 2003, xchris wrote: > i'd like to do this: > > i have 2 pc > x.y.z.1 > x.y.z.2 > > i would like to redirect connection on port 80 of x.y.z.1 to port 80 of > x.y.z.2 > > i tried with DNAT but when someone tries to connect it goes in timeout? Do this iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d x.y.z.1 -j DNAT --to x.y.z.2:80 iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to x.y.z.1 I use a line similar to this to reroute non-local traffic to a different web server then our local users. Eric