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 question

Hi,
i have a astarov4 with 3 NIC : eth0 LAN,eth1 provider1,eth2 provider2.
I must use eth1 only for connecting via existing VPN to a remote office and eth2 for all other services (http,mail,ftp,etc.).
How I setup routing ?
Let's assume eth0 10.10.10.1
eth1 192.168.2.1
eth2 10.10.11.1
remote office network 10.127.127.0
For the moment all the request goes through eth1, but how can I say that on eth1 only the request to the network 10.127.127.0 must pass and all the others to eth2? [:)]
thanx for any info 


This thread was automatically locked due to age.
  • Directly via the web admin, no, you can not do as you are wanting. This is due to the default gateway. If you have two default gateways, then everything will try and route out the one that is listed first which is the first card installed. 

    You can do want you want you ask with policy routing. Go to docs.astaro.org and look for a doc about policy routing. Then set the default gateway on eth2 and set up policy routing for the vpn traffic to go out eth1.

    Policy routing is actually marking packets and controlling their route by the mark. Currently you can not mark packets through the webadmin.