+
1 2 12
1 10 12

:

  1. #1
    themylogin       themylogin
    31.03.2007
    1,178
    ()
    0
    : 0 (: 0).

    Question

    , :
    • br0 - (eth1) (ath0)
    • ppp0 - PPPoE , br0
    • eth0 - ,
    :
    ip route add 0/0 dev ppp0 src 213.228.78.182 table WS
    ip route prepend default via 213.228.95.1 table WS
    ip rule add from 213.228.78.182 table WS
    :
    :
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables -t nat -A POSTROUTING -j MASQUERADE
    . . , , :
    :
    route add -host soft.sibnet.ru gw 213.228.95.1
    , soft.sibnet.ru . .
    , ?
    When it rains, it pours. .

  2. #2
    Arkan       Arkan
    13.10.2006
    bezopasnik.org
    3,112
    ()
    0
    : 0 (: 0).


    forvard/divert

  3. #3
    themylogin       themylogin
    31.03.2007
    1,178
    ()
    0
    : 0 (: 0).

    ,
    When it rains, it pours. .

  4. #4
    Arkan       Arkan
    13.10.2006
    bezopasnik.org
    3,112
    ()
    0
    : 0 (: 0).

    ...

  5. #5
    themylogin       themylogin
    31.03.2007
    1,178
    ()
    0
    : 0 (: 0).

    themylogin
    ,
    , , 1, , . , NAT

    1 1

    , , 213.228.78.182 .. IP
    When it rains, it pours. .

  6. #6
    Arkan       Arkan
    13.10.2006
    bezopasnik.org
    3,112
    ()
    0
    : 0 (: 0).

    themylogin,



    adslclub es-nso

  7. #7
    themylogin       themylogin
    31.03.2007
    1,178
    ()
    0
    : 0 (: 0).
    When it rains, it pours. .

  8. #8
    Arkan       Arkan
    13.10.2006
    bezopasnik.org
    3,112
    ()
    0
    : 0 (: 0).


  9. #9
    zir       zir
    10.03.2007
    9
    ()
    0
    : 0 (: 0).

    , host.sibnet.ru , eth0.
    route ip route show.

    :

    :
    #      
    ip route add 0/0 via $CN_GATEWAY
    
    #    WS
    ip route add 213.228.95.1 dev ppp0 src 213.228.78.182
    
    #      WS 
    ip route add 0/0 via 213.228.95.1 table WS
    
    #   -- ,     ,
    #    WS
    ip rule add from 213.228.78.182 table WS priority 100
    
    #    WS
    route add -host soft.sibnet.ru gw 213.228.95.1
    # <...>

  10. #10
    themylogin       themylogin
    31.03.2007
    1,178
    ()
    0
    : 0 (: 0).

    PPPoE, , , PPPoE- . ,
    When it rains, it pours. .