[wplug] iptables, port forwarding and vnc.
James O'Kane
jo2y at midnightlinux.com
Thu Mar 4 12:47:13 EST 2004
On Thu, 4 Mar 2004, John Harrold wrote:
> would it look something like this:
>
> $IPTABLES -t nat -A POSTROUTING -d $WINDOWS -j SNAT --to $PGW
-s $WINDOWS these packets are coming from the windows machine, so it's -s
for source. You probably want to add the --sport stuff too, so that it
only matches the vnc packets.
That also needs to be above any MASQUERADE line you might have, so I'm not
sure if -A is what you want. You might need -I POSTROUTING 1.
-james
More information about the wplug
mailing list