LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stuck on Proxy Routing....? (https://www.linuxquestions.org/questions/linux-newbie-8/stuck-on-proxy-routing-4175458006/)

rajesh20r 04-13-2013 10:25 AM

Stuck on Proxy Routing....?
 
Hello friends,

I am completely new to this forum and I need some help badly.

here is the problem

I have a running network with squid(RHEL.5)

Exactly like this:-Diagram


In this network, form any of my VLan Machine
I can ping Proxy's LAN port
Proxy's WAN Port
Firewalls LAN port
Outsider's Gateway

1. What are the routes which I have to add to the RHEL Server when I Change the ip series?

2. How these routes can be added ( i mean sample syntax)?

3. How is this network framework scnario ( Good, Bad, Worst)?

warez74 04-17-2013 06:56 PM

Hi,

For the current network setup you can add simple static routes like this (works for CentOS and Ubuntu, should be working for RHEL too):

route add -net 10.0.31.0/24 gw 10.0.30.3

For the, say new VLAN (subnet) which would be 10.0.32.0/24 (/24 is netmask and cover all the addresses from 10.3.32.1-254) the route command would be:

route add -net 10.0.32.0/24 gw 10.0.30.3

The "gw" address should be nearest gateway address along the path to the VLAN (10.0.30.3), and it's usually on the same subnet as host.

Also, check out this page on persistent static routes:
http://unixfoo.blogspot.com/2009/05/...-route-in.html


Regards


All times are GMT -5. The time now is 03:59 PM.