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 with 2 internet connections, 1 Astaro box.

I am currently transitioning from 1 T1 to another and want Astaro to firewall both T1's.  For example, I am currently running with T1 (A) 11.22.33.0 and have a new T1 (B) with 44.55.66.0.  If the internal computer is on B's network, I want Astaro to route it through (B), if it is on A's network, I want it to route through A's T1.

Is there a way to do this in Astaro?  Any hints would be greatly appreciated.

Thanks.   


This thread was automatically locked due to age.
Parents
  • I found the solution.  An old post references this document.
    http://docs.astaro.org/older_versions/ASL-V3.2/docs_v3/hacking/policy_routing.txt

    I have yet to add it to the startup scripts, but do have my routing going correctly now.  Here is the script I used from my above example.

      /bin/ip rule add from 44.55.66.0/24 table 200
      /bin/ip route add default via 192.168.2.1 dev eth1 table 200
      /bin/ip route flush cache

    After running these lines  The IP traffic would go to the net, but not between networks.  I added the following comands to get astaro to route between the 2 networks.

      /bin/ip rule add from 44.55.66.0/24 to 11.22.33.0 table 201
      /bin/ip route add default via 11.22.33.1 dev eth0 table 201

    My static route from the astaro interface is still working for the 11.22.33.0 network.

    I hope this helps some others out there.
    Phillip


       
Reply
  • I found the solution.  An old post references this document.
    http://docs.astaro.org/older_versions/ASL-V3.2/docs_v3/hacking/policy_routing.txt

    I have yet to add it to the startup scripts, but do have my routing going correctly now.  Here is the script I used from my above example.

      /bin/ip rule add from 44.55.66.0/24 table 200
      /bin/ip route add default via 192.168.2.1 dev eth1 table 200
      /bin/ip route flush cache

    After running these lines  The IP traffic would go to the net, but not between networks.  I added the following comands to get astaro to route between the 2 networks.

      /bin/ip rule add from 44.55.66.0/24 to 11.22.33.0 table 201
      /bin/ip route add default via 11.22.33.1 dev eth0 table 201

    My static route from the astaro interface is still working for the 11.22.33.0 network.

    I hope this helps some others out there.
    Phillip


       
Children
No Data