On Nov 3, 2011, at 3:05 AM, kurniadi wrote: > Dear all, > > Hi, > I want use shorewall for redirect all destination into one or specific > address... like this > All web traffic form my lan 192.168.1.0/24 to internet redirect into > my server ip 1.2.3.4 > How can we do this in shorewall ?, do we need proxy server for this rule ? > Thanks
Assuming that you local lag is associated with zone 'loc', then in /etc/shorewall/rules: DNAT loc $FW:1.2.3.4 tcp 80 And yes, you do need a proxy. For setting up Squid as a transparent proxy, see http://www1.shorewall.net/Shorewall_Squid_Usage.html. -Tom Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
