thank you martin.. i haven't tried it yet but i trust you ;) best, tomas On Wed, May 21, 2003 at 09:51:10AM -0500, Martin A. Brown wrote: > Hi there Tomas! > > : iptables -t nat -I PREROUTING 4 -i eth0 -d x -p tcp --dport 80 \ > : -j DNAT --to y when/how do i specify port 7865? > > This should do the trick: > > iptables -t nat -I PREROUTING 4 -i eth0 -d $PUB_IP -p tcp --dport 80 \ > -j DNAT --to-destination $PRIV_IP:7865 > > Check out Oskar Andreeason's tutorial on this very matter. > > http://iptables-tutorial.frozentux.net/iptables-tutorial.html#DNATTARGET > > Ciao for now, > > -Martin > > -- > Martin A. Brown --- SecurePipe, Inc. --- mabrown@xxxxxxxxxxxxxx > > _______________________________________________ > LARTC mailing list / LARTC@xxxxxxxxxxxxxxx > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/