This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Routing 2 Networks (again)

I have the following setup with Astaro 4.107

eth0  = eth0 =  192.168.1.1/255.255.255.0  gw = none 
eth1  = sparkle_ext = 66.94.234.247/255.255.255.0  gw = 66.94.234.1
eth2  = ZeroNet = 192.168.100.1/255.255.255.0 gw = none
eth1:1  = ZeroNet_ext_Alias = 66.94.234.18/255.255.255.0 gw = none 

I would like the following:

192.168.100.0  192.168.1.0 AND 192.168.100.0 -> 66.94.234.18
192.168.1.0  192.168.100.0 AND 192.168.1.0 -> 66.94.234.247

Without any static routes created, my table looks so: 

192.168.100.0/24 dev eth2  scope link 
192.168.1.0/24 dev eth0  scope link 
66.94.234.0/24 dev eth1  scope link 
66.94.234.0/24 dev eth1  scope link  src 66.94.234.18 
127.0.0.0/8 dev lo  scope link 
default via 66.94.234.1 dev eth1 


Without explaining the endless scenarios I've tried to get this working, I'll just 
say that most of my attempts result in BOTH 192.168.100.0 and 192.168.1.0 leaving
eth1 as 66.94.234.18 

My guess is my netmasks are wrong but I'm using what my ISP gave me. 

If you can help me with this I'll be your best friend for a day.   

Cheers,
-zeek 


This thread was automatically locked due to age.
Parents
  • Just to make sure I understand what you are trying to do:

    You want the 192.168.1.x and 192.168.100.x to have open access to each other, but when 192.168.1.x goes to the Internet it should use 66.94.234.18, and when 192.168.100.x goes to the internet, you want it to use 66.94.234.247 as the NAT source address?

    If that is the case, you can't do that by any normal means in Astaro.  Routing decisions are made only on the destination address, and do not take into account the source address of the packets.  Basically everything has to take path 1, or everything takes path 2.

    If you are comfortable making OS level changes, you can use policy routing, which will let you make routing decisions based on the source address of the IP packet (among other things).  There is some information about it at  http://docs.astaro.org/older_versions/ASL-V3.2/docs_v3/hacking/policy_routing.txt     
  • Moby,

    Many thanks. I'll check out the URL you mentioned. 

    Cheers,
    -zeek 
Reply Children
No Data