Kristoffer Egefelt wrote:
> Hi,
> 
> I'd like to have local servers connect to the firewall external ip and
> have the traffic routed back to the local network. It works manually,
> but I can't figure out how to make this work through shorewall:
> 
> *This works:*
> iptables -t nat -A POSTROUTING -d 10.10.5.242 -s 10.10.0.0/16 -p tcp
> --dport 80 -j SNAT --to 10.10.3.12
> 

In /etc/shorewall/masq:

<iface>:10.10.5.242     10.10.0.0/16    10.10.3.12      tcp     80

Where <iface> is the interface to 10.10.5.242.

-Tom
-- 
Tom Eastep        \ The ultimate result of shielding men from the
Shoreline,         \ effects of folly is to fill the world with fools.
Washington, USA     \                                 -Herbert Spencer
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to