Архивировано

Эта тема находится в архиве и закрыта для публикации сообщений.

yu_slevin

настройка впн в slackware 13.1

Рекомендованные сообщения

Доброе время суток, уважаемые. Вот такая вот проблема у меня :( Опишу, действия по порядку

поднимаю локалку:

 

bash-4.1# ifconfig eth0 up

 

bash-4.1# dhcpcd eth0

dhcpcd: version 5.2.2 starting

dhcpcd: eth0: rebinding lease of 10.63.128.134

dhcpcd: eth0: acknowledged 10.63.128.134 from 10.238.158.38

dhcpcd: eth0: checking for 10.63.128.134

dhcpcd: eth0: leased 10.63.128.134 for 604800 seconds

dhcpcd: forking to background

 

Дожно работать, но:

 

ping vpn.internet.beeline.ru

ping: unknown host vpn.internet.beeline.ru

bash-4.1# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

10.63.128.0 0.0.0.0 255.255.248.0 U 202 0 0 eth0

10.0.0.0 10.63.128.1 255.0.0.0 UG 202 0 0 eth0

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

 

Ладно, добавим маршрут:

 

bash-4.1# route add default gw 10.63.128.1

bash-4.1# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

10.63.128.0 0.0.0.0 255.255.248.0 U 202 0 0 eth0

10.0.0.0 10.63.128.1 255.0.0.0 UG 202 0 0 eth0

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

0.0.0.0 10.63.128.1 0.0.0.0 UG 0 0 0 eth0

bash-4.1# ping vpn.internet.beeline.ru

PING vpn.internet.beeline.ru (89.179.75.136) 56(84) bytes of data.

64 bytes from vpn3-l0.perm.corbina.net (89.179.75.136): icmp_req=1 ttl=251 time=0.562 ms

64 bytes from vpn3-l0.perm.corbina.net (89.179.75.136): icmp_req=2 ttl=251 time=0.572 ms

64 bytes from vpn3-l0.perm.corbina.net (89.179.75.136): icmp_req=3 ttl=251 time=0.451 ms

64 bytes from vpn3-l0.perm.corbina.net (89.179.75.136): icmp_req=4 ttl=251 time=0.534 ms

 

--- vpn.internet.beeline.ru ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3001ms

rtt min/avg/max/mdev = 0.451/0.529/0.572/0.055

 

Локалка есть, начинаем "танцы с бубном" (в смысле, пытаюсь поднять впн)

 

bash-4.1# cat /etc/resolv.conf

# Generated by dhcpcd from eth0

# /etc/resolv.conf.head can replace this line

domain corbina.net

nameserver 213.234.192.8

nameserver 85.21.192.3

# /etc/resolv.conf.tail can replace this line

 

добавляю маршруты на ДНС-ы и ВПН

 

bash-4.1# route add -host 213.234.192.8 gw 10.63.128.1

bash-4.1# route add -host 85.21.192.3 gw 10.63.128.1

bash-4.1# route add -host 89.179.75.136 gw 10.63.128.1

 

Ну и тот, убиваю

bash-4.1# route del default

 

Так теперь выглядит таблица роутинга

bash-4.1# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

85.21.192.3 10.63.128.1 255.255.255.255 UGH 0 0 0 eth0

89.179.75.136 10.63.128.1 255.255.255.255 UGH 0 0 0 eth0

213.234.192.8 10.63.128.1 255.255.255.255 UGH 0 0 0 eth0

10.63.128.0 0.0.0.0 255.255.248.0 U 202 0 0 eth0

10.0.0.0 10.63.128.1 255.0.0.0 UG 202 0 0 eth0

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

 

проверяю работоспособность:

bash-4.1# ping 213.234.192.8

PING 213.234.192.8 (213.234.192.8) 56(84) bytes of data.

64 bytes from 213.234.192.8: icmp_req=1 ttl=240 time=29.9 ms

64 bytes from 213.234.192.8: icmp_req=2 ttl=240 time=26.8 ms

64 bytes from 213.234.192.8: icmp_req=3 ttl=240 time=27.0 ms

64 bytes from 213.234.192.8: icmp_req=4 ttl=240 time=26.7 ms

 

--- 213.234.192.8 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3006ms

rtt min/avg/max/mdev = 26.787/27.652/29.944/1.341 ms

bash-4.1# ping 85.21.192.3

PING 85.21.192.3 (85.21.192.3) 56(84) bytes of data.

64 bytes from 85.21.192.3: icmp_req=1 ttl=240 time=27.2 ms

64 bytes from 85.21.192.3: icmp_req=2 ttl=240 time=27.2 ms

64 bytes from 85.21.192.3: icmp_req=3 ttl=240 time=27.1 ms

64 bytes from 85.21.192.3: icmp_req=4 ttl=240 time=27.2 ms

 

--- 85.21.192.3 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3000ms

rtt min/avg/max/mdev = 27.100/27.233/27.295/0.217 ms

bash-4.1# ping 89.179.75.136

PING 89.179.75.136 (89.179.75.136) 56(84) bytes of data.

64 bytes from 89.179.75.136: icmp_req=1 ttl=251 time=0.428 ms

64 bytes from 89.179.75.136: icmp_req=2 ttl=251 time=0.606 ms

64 bytes from 89.179.75.136: icmp_req=3 ttl=251 time=0.554 ms

64 bytes from 89.179.75.136: icmp_req=4 ttl=251 time=0.435 ms

 

--- 89.179.75.136 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3000ms

rtt min/avg/max/mdev = 0.428/0.505/0.606/0.081 ms

 

Записываю настройки в файл /etc/ppp/peers/beeline и пытаюсь запустить впн:

pty "pptp 89.179.75.136 --nolaunchpppd"

require-mppe-128

remotename pptp

user логин

password "соотв. пассворд"

linkname beeline

lock

usepeerdns

nodeflate

nobsdcomp

noauth

nopcomp

noaccomp

 

поехали:

 

bash-4.1# pppd call beeline debug nodetach

sh: /bin/ip: No such file or directory

sh: /bin/ip: No such file or directory

using channel 1

Using interface ppp0

Connect: ppp0 <--> /dev/pts/3

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x27094dac>]

rcvd [LCP ConfReq id=0x1 <mru 1460> <auth chap MD5> <magic 0x98c71f09>]

sent [LCP ConfAck id=0x1 <mru 1460> <auth chap MD5> <magic 0x98c71f09>]

rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x27094dac>]

sent [LCP EchoReq id=0x0 magic=0x27094dac]

rcvd [LCP EchoRep id=0x0 magic=0x98c71f09]

rcvd [CHAP Challenge id=0x1 <ac371127643b4066624e1f10c8070d07>, name = "bras3.perm"]

sent [CHAP Response id=0x1 <eb3fe691dd7fa36c91daae592bf348fb>, name = "***"]

rcvd [CHAP Success id=0x1 ""]

CHAP authentication succeeded

CHAP authentication succeeded

MPPE required, but MS-CHAP[v2] auth not performed.

sent [LCP TermReq id=0x2 "MPPE required but not available"]

rcvd [iPCP ConfReq id=0x1 <addr 89.179.75.136>]

Discarded non-LCP packet when LCP not open

rcvd [LCP TermAck id=0x2]

Connection terminated.

Waiting for 1 child processes...

script pptp 89.179.75.136 --nolaunchpppd, pid 2060

Script pptp 89.179.75.136 --nolaunchpppd finished (pid 2060), status = 0x0

 

Вот собственно и всё. Коннекшн терминэйтед и всё.

Ребят, кто понимает в чём дело, ткните носом, а?

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Записываю настройки в файл /etc/ppp/peers/beeline и пытаюсь запустить впн:

pty "pptp 89.179.75.136 --nolaunchpppd"

require-mppe-128

remotename pptp

user логин

password "соотв. пассворд"

linkname beeline

lock

usepeerdns

nodeflate

nobsdcomp

noauth

nopcomp

noaccomp

 

поехали:

 

bash-4.1# pppd call beeline debug nodetach

sh: /bin/ip: No such file or directory

sh: /bin/ip: No such file or directory

using channel 1

Using interface ppp0

Connect: ppp0 <--> /dev/pts/3

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x27094dac>]

rcvd [LCP ConfReq id=0x1 <mru 1460> <auth chap MD5> <magic 0x98c71f09>]

sent [LCP ConfAck id=0x1 <mru 1460> <auth chap MD5> <magic 0x98c71f09>]

rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x27094dac>]

sent [LCP EchoReq id=0x0 magic=0x27094dac]

rcvd [LCP EchoRep id=0x0 magic=0x98c71f09]

rcvd [CHAP Challenge id=0x1 <ac371127643b4066624e1f10c8070d07>, name = "bras3.perm"]

sent [CHAP Response id=0x1 <eb3fe691dd7fa36c91daae592bf348fb>, name = "***"]

rcvd [CHAP Success id=0x1 ""]

CHAP authentication succeeded

CHAP authentication succeeded

MPPE required, but MS-CHAP[v2] auth not performed.

sent [LCP TermReq id=0x2 "MPPE required but not available"]

rcvd [iPCP ConfReq id=0x1 <addr 89.179.75.136>]

Discarded non-LCP packet when LCP not open

rcvd [LCP TermAck id=0x2]

Connection terminated.

Waiting for 1 child processes...

script pptp 89.179.75.136 --nolaunchpppd, pid 2060

Script pptp 89.179.75.136 --nolaunchpppd finished (pid 2060), status = 0x0

 

Вот собственно и всё. Коннекшн терминэйтед и всё.

Ребят, кто понимает в чём дело, ткните носом, а?

У билайна нет шифрования. require-mppe-128 в конфиге - лишнее. Что и говорит лог, собственно.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Ага, спасибо.

 

решилось так:

 

bash-4.1$ su

Password:

bash-4.1# ifconfig eth0 up

bash-4.1# dhcpcd eth0

dhcpcd: version 5.2.2 starting

dhcpcd: eth0: rebinding lease of 10.63.128.134

dhcpcd: eth0: acknowledged 10.63.128.134 from 10.238.158.38

dhcpcd: eth0: checking for 10.63.128.134

dhcpcd: eth0: leased 10.63.128.134 for 604800 seconds

dhcpcd: forking to background

bash-4.1# route add default gw 10.63.128.1

bash-4.1# pppd call bln updetach

Using interface ppp0

Connect: ppp0 <--> /dev/pts/2

CHAP authentication succeeded

CHAP authentication succeeded

Cannot determine ethernet address for proxy ARP

local IP address 95.29.26.187

remote IP address 89.179.75.139

bash-4.1# route add default gw 89.179.75.139

bash-4.1# route del default gw 10.63.128.1

 

содержимое bln:

bash-4.1# cat /etc/ppp/peers/bln

pty "pptp vpn.internet.beeline.ru --nolaunchpppd"

#require-mppe-128

name ***

remotename bln

#persist

#maxfail 10

#logfile /var/log/syslog

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах