[Shorewall-users] SNAT

Tom Eastep
Thu, 03 Jul 2003 14:36:44 -0000

On Thu, 2003-07-03 at 14:34, Rodolfo Pilas wrote:
> I am migrating one of my old fw from ipchains to iptables/shorewall. Now
> I wish to configure a SNAT like this:
>
> ipchains -A forward -p tcp -s 172.16.4.2 -d 0/0 53 -j MASQ
>
> I have seen that the masq file enables me to do SNAT, but I wish to
> restrict it to the 53 port only.
>
> Can you tell me how to do it?  Thank.

May I ask WHY you want SNAT only on tcp port 53?

-Tom
--
Tom Eastep    \ Shorewall - iptables made easy
Shoreline,     \ http://www.shorewall.net
Washington USA  \ teastep@shorewall.net