[Shorewall-users] connecting 2 local networks

Jason Maas
Thu, 11 Sep 2003 20:06:40 -0000

Hi Kenneth,

On Fri, 12 Sep 2003, Kenneth Oncinian wrote:

>Can I use shorewall to make 2 network "see" each other?

What you describe is commonly known as "routing".  If that''s
all you want
to do, then you don''t need Shorewall at all.

All you need to do is turn on IP forwarding on the router (the box
that''s
connected to both networks), and then set the default gateway for all the
machines on one LAN to 192.168.1.1 and on all the machines in the other
LAN set the default gateway to 192.168.2.1.

To turn on IP forwarding, run this command as the root user on the router:

cat 1 > /proc/sys/net/ipv4/ip_forward

-Jason