<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Linux router lan to lan in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585293#M84968</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I wouldnÂ´t use the linux router as the default gateway on the clients. Better set a static route for the networks with the linux router as gateway.&lt;BR /&gt;&lt;BR /&gt;The router itself is pretty simple. Active ip-forwarding and use the command "route" to add the routes for the different networks (look at Stuarts posting :) ). A firewall is not required, but sometimes usefull to block traffic between the networks. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
    <pubDate>Tue, 19 Jul 2005 02:15:54 GMT</pubDate>
    <dc:creator>Patrick Terlisten</dc:creator>
    <dc:date>2005-07-19T02:15:54Z</dc:date>
    <item>
      <title>Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585289#M84964</link>
      <description>Can someone give me a kickstart, I would like to make a lan to lan router.&lt;BR /&gt;&lt;BR /&gt;Can someone point me to documents, the only docs I found are for setting up a router/firewall lan to internet (WAN)&lt;BR /&gt;&lt;BR /&gt;I have two network segments 196.168.0.X/24 and a 172.16.X.X/16 network segment witch I need to connect. &lt;BR /&gt;&lt;BR /&gt;I'm not a linux wizard, I have little to non experience using linux / unix or wathever.&lt;BR /&gt;&lt;BR /&gt;Any help would be appriciated.&lt;BR /&gt;&lt;BR /&gt;Sincerly&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jul 2005 00:18:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585289#M84964</guid>
      <dc:creator>Tv_3</dc:creator>
      <dc:date>2005-07-19T00:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585290#M84965</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check out Freesco&lt;BR /&gt;&lt;A href="http://www.freesco.org/" target="_blank"&gt;http://www.freesco.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Kasper</description>
      <pubDate>Tue, 19 Jul 2005 00:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585290#M84965</guid>
      <dc:creator>Kasper Hedensted</dc:creator>
      <dc:date>2005-07-19T00:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585291#M84966</link>
      <description>Are we talking two network interfaces, one in each segment?&lt;BR /&gt;&lt;BR /&gt;Then it's simple.  No firewalling *required* (but can be done if wanted).&lt;BR /&gt;&lt;BR /&gt;It's called "route".  &lt;BR /&gt;&lt;BR /&gt;Set up a simple linux box with two NIC's, each with an IP from their respective subnets.&lt;BR /&gt;&lt;BR /&gt;Turn on IP Forwarding using '/etc/sysctl.conf' (net.ipvr.ip_forward = 1), and 'sysctl -p' to re-read the config (or 'echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward').&lt;BR /&gt;&lt;BR /&gt;Set the linux box as the default route (or add a network route for the opposing subnet) to go to the Linux box.&lt;BR /&gt;&lt;BR /&gt;On the linux box it's self though, set a default route to the interface of the 172 subnet, and that should be it.&lt;BR /&gt;&lt;BR /&gt;Simple. ;)</description>
      <pubDate>Tue, 19 Jul 2005 00:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585291#M84966</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-19T00:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585292#M84967</link>
      <description>&lt;BR /&gt;if you are having two network cards each connecting to two different networks then it is not a problem as stuart mentioned.&lt;BR /&gt;&lt;BR /&gt;Make sure that all the client boxes point to this machine (which connects to both the network) as default gateway. This machine should have ip_forward enabled.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Tue, 19 Jul 2005 01:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585292#M84967</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-07-19T01:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585293#M84968</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I wouldnÂ´t use the linux router as the default gateway on the clients. Better set a static route for the networks with the linux router as gateway.&lt;BR /&gt;&lt;BR /&gt;The router itself is pretty simple. Active ip-forwarding and use the command "route" to add the routes for the different networks (look at Stuarts posting :) ). A firewall is not required, but sometimes usefull to block traffic between the networks. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Tue, 19 Jul 2005 02:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585293#M84968</guid>
      <dc:creator>Patrick Terlisten</dc:creator>
      <dc:date>2005-07-19T02:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585294#M84969</link>
      <description>Hi Thanks all, thanks for the fast and quick responses...&lt;BR /&gt;&lt;BR /&gt;As mentioned above:&lt;BR /&gt;&lt;BR /&gt;Turn on IP Forwarding using '/etc/sysctl.conf' (net.ipvr.ip_forward = 1), and 'sysctl -p' to re-read the config (or 'echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward').&lt;BR /&gt;&lt;BR /&gt;Can someone explain this a little more in detail? I believe I have to change some parameters in the sysctl.conf file?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 19 Jul 2005 05:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585294#M84969</guid>
      <dc:creator>Tv_3</dc:creator>
      <dc:date>2005-07-19T05:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585295#M84970</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can activate ip forwarding on two ways.&lt;BR /&gt;&lt;BR /&gt;1. Run on the shell or in a terminal window under X11 the following command:&lt;BR /&gt;&lt;BR /&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;BR /&gt;&lt;BR /&gt;After a reboot you need to rerun this command to activate ip forwarding. You can write yourself a little init-script which do that for you. But there is a second way to activate ip forwarding.&lt;BR /&gt;&lt;BR /&gt;2. You need to change the file /etc/sysctl.conf with an editor of you joice (VI, EMACS, nano, kate....). You need to add or modify this entry.&lt;BR /&gt;&lt;BR /&gt;net.ipv4.ip_forward = 1&lt;BR /&gt;&lt;BR /&gt;After that you can reboot the system or just run the command "sysctl -p" to apply this change.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Tue, 19 Jul 2005 06:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585295#M84970</guid>
      <dc:creator>Patrick Terlisten</dc:creator>
      <dc:date>2005-07-19T06:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585296#M84971</link>
      <description>By default linux does not do a router's job. i.e forwarding IP address from one source to another. The ip_forward variable is used to achieve this.&lt;BR /&gt;&lt;BR /&gt;There are two methods to achieve this, either temporaray (which will last till system reboot) or permanent.&lt;BR /&gt;&lt;BR /&gt;echo 1 &amp;gt;/proc/sys/net/ip_forward is a temporary method which will enable routing capcity in the linux box. On next reboot this will reset it back to the kernel default (which is more likely 0, disable forwarding). To make it permanent sysctl is used. &lt;BR /&gt;&lt;BR /&gt;sysctl has a configuration file(/etc/sysctl.conf) which will contain all the kernel variables and their values, on every reboot the distribution runs sysctl -p which reads the values from sysctl.conf and modifies kernel parameters accordingly.&lt;BR /&gt;&lt;BR /&gt;You can have all your kernel parameters value in /etc/sysctl.conf which will get updated during server boot. &lt;BR /&gt;&lt;BR /&gt;For more information check 'man sysctl'&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jul 2005 06:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585296#M84971</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-07-19T06:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585297#M84972</link>
      <description>Thanks ALL !</description>
      <pubDate>Wed, 20 Jul 2005 00:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585297#M84972</guid>
      <dc:creator>Tv_3</dc:creator>
      <dc:date>2005-07-20T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linux router lan to lan</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585298#M84973</link>
      <description>This is a good link:-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.simonzone.com/software/guarddog/manual2/tutorial-router.html" target="_blank"&gt;http://www.simonzone.com/software/guarddog/manual2/tutorial-router.html&lt;/A&gt;</description>
      <pubDate>Thu, 21 Jul 2005 01:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-router-lan-to-lan/m-p/3585298#M84973</guid>
      <dc:creator>Guru Dutta</dc:creator>
      <dc:date>2005-07-21T01:33:32Z</dc:date>
    </item>
  </channel>
</rss>

