Projet

Général

Profil

Iproute2 » Historique » Version 1

Version 1/6 - Suivant » - Version actuelle
Laurent GUERBY, 16/07/2012 18:44


Iproute2

ADSL multiple

En cas de multiples box ADSL en mode routeur, activer la redirection 2222 vers localIP:22

    # Orange routing, local IP 10.0.0.221
        ip route add 10.0.0.0/24 dev eth0 table 253
    ip route add default via 10.0.0.253 table 253
        ip rule add from 10.0.0.221 table 253

    # FDN routing, local IP 192.168.88.221
        ip route add 192.168.88.0/24 dev eth0 table 88
    ip route add default via 192.168.88.2 table 88
        ip rule add from 192.168.88.221 table 88

    # Free routing, local IP 192.168.89.221
        ip route add 192.168.89.0/24 dev eth0 table 89
    ip route add default via 192.168.89.1 table 89
        ip rule add from 192.168.89.221 table 89

        # via VPN
    ip link set tapbackup up
        # openvpn...
        ip addr add 172.30.30.3/31 dev tapbackup
        ip route add default via 172.31.30.2 table 15
        ip rule add from 172.30.30.3 table 15

Ensuite "openvpn --local 10.0.0.221 --lport 0" passera par Orange, "openvpn --local 192.168.88.221 --lport 0" par FDN, etc...