Re: [Hampshire] Another iptables question

Top Page

Reply to this message
Author: NeilS
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Another iptables question

On Thu, Feb 2, 2012, at 01:03 AM, Daniel Llewellyn wrote:

> the reverse of a DNAT (which is Destination NAT), is SNAT (Source NAT),
> e.g.
>
> iptables -t nat -A POSTROUTING -p tcp --dport $TCP_PORT -j SNAT
> --to-source your.host.ip.address


Excellent! Thanks very much for the reply, that seems to work. Actually
-j MASQUERADE --to-ports $TCP_PORT also appears to work too and it saves
me needing to know my own address on the VPN. It just took me some time
to wrap my mind around the concept.

Neil

--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------