+
1 3 3

: NAT

  1. #1
    Riddle       Riddle
    18.05.2007
    ., 4
    58
    ()
    0
    : 0 (: 0).

     NAT

    :
    ( Linux) nat
    eth0 -- 192.168.1.1 ( )
    eth1 -- 10.54.1.2 ( )
    icq
    ?

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


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

    :
    # cat /etc/sysctl.conf
    ...
    # Uncomment the next line to enable packet forwarding for IPv4
    net.ipv4.conf.default.forwarding=1
    ...
    :
    # cat /etc/network/interfaces
    ...
    #  
    auto eth1
    iface eth1 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        up iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
    ...
    When it rains, it pours. .