hello need a little help i have 2 NIC router with shorewall client PCs goes to internet fine with shorewall help. but i need to reroute traffic for one net via other gateway not ISPs. Gateway is on LAN NIC. 192.168.1.0/24 LAN x.x.x.x WAN router(shorewall) IP 192.168.1.15 i need to reroute traffic for 192.168.2.0/24 network to 192.168.1.1 gateway I know how to do it via route and iptables, bu just cant understand how to do it shorewall way. Tnx in advance ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
Олег Власов wrote:> i need to reroute traffic for 192.168.2.0/24 network to 192.168.1.1 gateway> I know how to do it via route and iptables, bu just cant understand how to do it shorewall way.There isn't a "Shorewall way" to do this - you just set the routing using the normal OS tools. Shorewall only comes into it when configuring the firewall rules. Off the top of my head, you'll need to create a rule to permit the LAN-LAN traffic (or possibly LAN-<some other zone> if you set it up that way) and turn on routeback on the internal interface. ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users
On 8/29/2013 10:51 AM, Simon Hobson wrote:> Олег Власов wrote: >> i need to reroute traffic for 192.168.2.0/24 network to 192.168.1.1 gateway > >> I know how to do it via route and iptables, bu just cant understand how to do it shorewall way. > > There isn''t a "Shorewall way" to do this - you just set the routing using the normal OS tools. Shorewall only comes into it when configuring the firewall rules. > Off the top of my head, you''ll need to create a rule to permit the LAN-LAN traffic (or possibly LAN-<some other zone> if you set it up that way) and turn on routeback on the internal interface.The article covering this case is http://www.shorewall.net/Multiple_Zones.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 \________________________________________________ ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk