<?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: Clients Computers either can connect to Private network or Public Network, but not 2 both at a time in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340465#M86145</link>
    <description>as for network traffic-don't add second default gateway.&lt;BR /&gt;What you should have is one default gateway and static route entries for custom routes.&lt;BR /&gt;So in your case let's say that you do have a default gateway (the lp of the router).Now for the branch office simply add a static route:&lt;BR /&gt;route add -net 192.168.0.0 netmask 255.255.0.0 gw x.x.x.x&lt;BR /&gt;&lt;BR /&gt;the example above adds a route to the network 192.168.0.0 via x.x.x.x (of course you should replace x.x.x.x with IP address).&lt;BR /&gt;This way of adding route is temporary-it doesn't remain across reboots.To permanently add a route-add entry to /etc/sysconfis/static-routes&lt;BR /&gt;&lt;BR /&gt;Traditionally, static routes were added in /etc/sysconfig/static-routes, in the form: &lt;BR /&gt;&lt;BR /&gt;iface type dest-addr netmask netmask gw gateway-addr ... &lt;BR /&gt;&lt;BR /&gt;such as this example, taken from a real system: &lt;BR /&gt;&lt;BR /&gt;eth0 net 192.168.0.0 netmask 255.255.0.0 gw x.x.x.x&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 25 Jul 2004 23:45:21 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2004-07-25T23:45:21Z</dc:date>
    <item>
      <title>Clients Computers either can connect to Private network or Public Network, but not 2 both at a time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340464#M86144</link>
      <description>All Gurus .... Plz Help&lt;BR /&gt;&lt;BR /&gt;we have a remote office, to which we are connected via private network. I have set each computers'(clinets') default gateway, the  Ip of Router's Ethernet Port, so that our whole network can communicate to the remote branch office's network.&lt;BR /&gt;&lt;BR /&gt;on each client computer, I have issued the following command&lt;BR /&gt;#route add default gw 10.0.0.254&lt;BR /&gt;where 10.0.0.254 is the ip of Router's Ethernet Port.&lt;BR /&gt;&lt;BR /&gt;Ok, now I have to configure Transparent Proxy, following lines are from squid.conf&lt;BR /&gt;&lt;BR /&gt;httpd_accel_port 80&lt;BR /&gt;httpd_accel_with_proxy on&lt;BR /&gt;httpd_accel_host virtual&lt;BR /&gt;httpd_accel_uses_host_header on&lt;BR /&gt;&lt;BR /&gt;but to use Tranparent-proxy, I have to change default gateway of each client computer from routers ethernet port's ip, to Squid server's eth0's ip(if i m not wrong), i.e I have to issued following command&lt;BR /&gt;#route add default gw 10.0.0.1&lt;BR /&gt;where 10.0.0.1 is the ip of Squid Server Ethernet Port.&lt;BR /&gt;&lt;BR /&gt;In this particular situation client Computers at my branch can either connect to Public network(Internet), or to my Private network, i.e. when default gw is 10.0.0.254 client computers can just connect to my Private network, but when the default gateway is 10.0.0.1 client computers can connect to Internet only. But my requirement is to connect to the Internet, and to my Private Network simultaneously, from each client computers.&lt;BR /&gt;&lt;BR /&gt;Hope I will have a solution soon :-)&lt;BR /&gt;&lt;BR /&gt;Peace n Regards&lt;BR /&gt;Maaz&lt;BR /&gt;&lt;BR /&gt;P.S. I must have to configure/run Transparent Proxy, i.e no Browser settings.&lt;BR /&gt;&lt;BR /&gt;OS = red hat Linux 9&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Jul 2004 20:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340464#M86144</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-07-25T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clients Computers either can connect to Private network or Public Network, but not 2 both at a time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340465#M86145</link>
      <description>as for network traffic-don't add second default gateway.&lt;BR /&gt;What you should have is one default gateway and static route entries for custom routes.&lt;BR /&gt;So in your case let's say that you do have a default gateway (the lp of the router).Now for the branch office simply add a static route:&lt;BR /&gt;route add -net 192.168.0.0 netmask 255.255.0.0 gw x.x.x.x&lt;BR /&gt;&lt;BR /&gt;the example above adds a route to the network 192.168.0.0 via x.x.x.x (of course you should replace x.x.x.x with IP address).&lt;BR /&gt;This way of adding route is temporary-it doesn't remain across reboots.To permanently add a route-add entry to /etc/sysconfis/static-routes&lt;BR /&gt;&lt;BR /&gt;Traditionally, static routes were added in /etc/sysconfig/static-routes, in the form: &lt;BR /&gt;&lt;BR /&gt;iface type dest-addr netmask netmask gw gateway-addr ... &lt;BR /&gt;&lt;BR /&gt;such as this example, taken from a real system: &lt;BR /&gt;&lt;BR /&gt;eth0 net 192.168.0.0 netmask 255.255.0.0 gw x.x.x.x&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Jul 2004 23:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340465#M86145</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-07-25T23:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clients Computers either can connect to Private network or Public Network, but not 2 both at a time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340466#M86146</link>
      <description>Dear Alexander,&lt;BR /&gt;&lt;BR /&gt;Many Thanks for ur kind and prompt support.&lt;BR /&gt;I m highly thankfull to u sir.&lt;BR /&gt;and I m also extremly sorry for replyin late.&lt;BR /&gt;&lt;BR /&gt;Peace n Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 28 Jul 2004 12:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/clients-computers-either-can-connect-to-private-network-or/m-p/3340466#M86146</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-07-28T12:53:13Z</dc:date>
    </item>
  </channel>
</rss>

