+
1 2 2
  1. #1
    ! TomSafe    TomSafe
    05.08.2007
    102
    ()
    0
    : 0 (: 0).

     VPN Runtu 3.0 ip

    :

    , , vpn .
    ( -> vpn) , , ip .
    pptp* vpn-install.deb ( )


    1) : ip, , , .
    - " " - .


    2) : sudo route add -host _vpn_ gw
    interfaces:
    sudo gedit /etc/network/interfaces

    :
    auto lo
    iface lo inet loopback
    iface eth0 inet static
    address 10.20.37.81
    netmask 255.255.255.0
    gateway 10.20.37.82
    up route add -host 10.19.0.1 gw 10.20.37.82            //  
    auto eth0
    3) vpn-install.deb - .

    4) vpn-, .



    5) vpn /usr/sbin/vpn-internet. : -> ->
    :
    : gksu /usr/sbin/vpn-internet.

    5) ifconfig ppp.


    !
    : sudo killall pppd

    - , mtu :
    sudo gedit /etc/ppp/options.pptp
    . - mtu 1492.
    http://ru.wikipedia.org/wiki/MTU
    TomSafe; 09.10.2008 08:41.
    , !

  2. #2
    ! TomSafe    TomSafe
    05.08.2007
    102
    ()
    0
    : 0 (: 0).

    .

    , :

    sudo gedit /etc/network/interfaces
    :
    auto lo
    iface lo inet loopback
    
    iface eth0 inet static
    address 216.72.141.184
    netmask 255.255.252.0
    gateway 216.72.141.1
    up route add -host 216.72.142.8 gw 216.72.141.1
    
    auto eth0
    tomsafe 123

    :

    options.pptp
    :
    lock nobsdcomp nodeflate
    mtu 1500
    mru 1500
    vpninternet
    :
    pty "pptp 216.72.142.8 --nolaunchpppd"
    debug
    name tomsafe
    remotename PPTP
    file /etc/ppp/options.pptp
    ipparam vpninternet
    :


    :
    tom@tomsafe:~$ traceroute ngs.ru
    traceroute to ngs.ru (195.93.187.1), 30 hops max, 60 byte packets
     1  crossroad.hostel.nstu.ru (216.72.141.1)  0.169 ms  0.146 ms  0.141 ms
     2  * * *
     3  * * *
     4  * * *
     5  * * *
     6  * * *
     7  *
    , .

    gksu /usr/sbin/vpn-internet :
    :
    Connecting...
    using channel 1
    Using interface ppp0
    Connect: ppp0 <--> /dev/pts/1
    rcvd [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MS-v2> <magic 0xdf14c5ad> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <magic 0xb555778c> <pcomp> <accomp>]
    sent [LCP ConfAck id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MS-v2> <magic 0xdf14c5ad> <pcomp> <accomp>]
    rcvd [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MS-v2> <magic 0xdf14c5ad> <pcomp> <accomp>]
    sent [LCP ConfAck id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MS-v2> <magic 0xdf14c5ad> <pcomp> <accomp>]
    rcvd [LCP ConfAck id=0x1 <mru 1400> <asyncmap 0x0> <magic 0xb555778c> <pcomp> <accomp>]
    sent [LCP EchoReq id=0x0 magic=0xb555778c]
    rcvd [LCP EchoReq id=0x0 magic=0xdf14c5ad]
    sent [LCP EchoRep id=0x0 magic=0xb555778c]
    rcvd [CHAP Challenge id=0x2f <71d6059d208f39d964dbe938e78bebf0>, name = "vpn.hostel.nstu.ru"]
    sent [CHAP Response id=0x2f <e2586f7cb55a523c24e91a2c40ef170c0000000000000000fddcd89ebfe2f3eb26698c72e5ffd59ec5d5088e4ac2184e00>, name = "tomsafe"]
    rcvd [LCP EchoRep id=0x0 magic=0xdf14c5ad]
    rcvd [CHAP Success id=0x2f "S=7A65441BAD561B8178EE57C943B87A2D794226DB M=Access granted"]
    CHAP authentication succeeded
    sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
    rcvd [CCP ConfReq id=0x1 <bsd v1 15>]
    sent [CCP ConfReq id=0x1]
    sent [CCP ConfRej id=0x1 <bsd v1 15>]
    rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.0.2.1>]
    sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.0.2.1>]
    rcvd [IPCP ConfNak id=0x1 <addr 192.0.2.2>]
    sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 192.0.2.2>]
    rcvd [CCP ConfAck id=0x1]
    rcvd [CCP ConfReq id=0x2]
    sent [CCP ConfAck id=0x2]
    rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 192.0.2.2>]
    Cannot determine ethernet address for proxy ARP
    local  IP address 192.0.2.2
    remote IP address 192.0.2.1
    Script /etc/ppp/ip-up started (pid 5918)
    Script /etc/ppp/ip-up finished (pid 5918), status = 0x0
    Connecting successful! Close this window for disconnecting.
    :
    :
    tom@tomsafe:~$ traceroute ngs.ru
    traceroute to ngs.ru (195.93.187.1), 30 hops max, 60 byte packets
     1  * * *
     2  * * *
     3  * * *
     4  * * *
     5  * * *
     6  *
    !!!

    ifconfig :
    :
    eth0      Link encap:Ethernet  HWaddr 00:e0:4c:2a:c5:83  
              inet addr:216.72.141.184  Bcast:216.72.143.255  Mask:255.255.252.0
              inet6 addr: fe80::2e0:4cff:fe2a:c583/64 :
               BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:34309 errors:0 dropped:0 overruns:0 frame:0
              TX packets:304 errors:0 dropped:0 overruns:0 carrier:0
              :0 txqueuelen:1000 
              RX bytes:3129442 (2.9 MB)  TX bytes:31828 (31.0 KB)
              :18 Base address:0xb800 
    
    lo        Link encap:  (Loopback)  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 :
               LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:1770 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1770 errors:0 dropped:0 overruns:0 carrier:0
              :0 txqueuelen:0 
              RX bytes:88500 (86.4 KB)  TX bytes:88500 (86.4 KB)
    
    ppp0      Link encap: PPP (Point-to-Point Protocol)  
              inet addr:192.0.2.2  P-t-P:192.0.2.1  Mask:255.255.255.255
               POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
              RX packets:15 errors:0 dropped:0 overruns:0 frame:0
              TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
              :0 txqueuelen:3 
              RX bytes:7363 (7.1 KB)  TX bytes:3148 (3.0 KB)
    !?

    - !!! - , , - ...

    ... ((((
    TomSafe; 09.10.2008 08:51.
    , !