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

Policy routing

I have tryed example #1 in "docs.astaro.org/.../policy_routing.txt" and cannot get it to work. Does i have to restart anything before i works 

My rules:
-----
ip rule del from 192.168.1.100/32 table 200
ip route del default via 80.80.18.1 dev eth5 table 200
ip rule add from 192.168.1.100/32 table 200
ip route add default via 80.80.18.1 dev eth5 table 200
ip route flush cache
-----


This thread was automatically locked due to age.
Parents
  • If you do not change anything else in the configuration, the middleware will not execute the file at once.

    You can run it manually with

    /bin/bash /sbin/init.d/routes.local

    If it still does not work, check the kernel log for dropped packets. You must also use MASQ for the .1.100 address (or its network) on eth5

    /tom
Reply
  • If you do not change anything else in the configuration, the middleware will not execute the file at once.

    You can run it manually with

    /bin/bash /sbin/init.d/routes.local

    If it still does not work, check the kernel log for dropped packets. You must also use MASQ for the .1.100 address (or its network) on eth5

    /tom
Children
  • ip rule del from 192.168.1.100/32 tabel 200
    ip route del default via 80.80.18.1 dev eth5 tabel 200

    ip rule add from 192.168.1.100/32 tabel 200
    ip route add default via 80.80.18.1 dev eth5 table 200
    ip route flush cache
    ---
    OUTPUT:
    firewall:/root # /bin/bash /sbin/init.d/routes.local
    Error: argument "tabel" is wrong: Failed to parse rule type
    Error: either "to" is duplicate, or "tabel" is a garbage.
    Error: argument "tabel" is wrong: Failed to parse rule type
    RTNETLINK answers: File exists

    What to do ???
  • Seem's that i can't spell. I wrote 'TABEL' instead of 'TABLE'.

    Now source routing working just fine  [:)]