VPN (PPTP): net.ppp0 работает лишь после перезапуска [исчезло само]
krigstask 12 февраля, 2008 - 16:15
В один прекрасный момент я заметил, что сеть уже не поднимается при загрузке системы, хотя net.ppp0 не выдавал никаких ошибок при запуске. Тем не менее, сеть не работает, но после перезапуска net.ppp0 поднимается и работает без последующих проблем. Странное дело...
Имеется такой сценарий для поднятия VPN:
dns_domain_lo="RAMBOW" config_eth0="dhcp" dhcpcd_eth0="-t 60" modules=( "dhcpcd" ) config_ppp0=( "ppp" ) dhcp_eth0="nogateway" link_ppp0="pty 'pptp 10.0.0.138 --nolaunchpppd'" username_ppp0='ИМЯ' password_ppp0='ПАРОЛЬ' pppd_ppp0=( "noauth" "defaultroute" "lcp-echo-interval 15" "lcp-echo-failure 3" "lock" "mtu 1300" "mru 1000" "nobsdcomp" "persist" ) depend_ppp0() { need net.eth0 }
В логах ppp не могу ничего путного углядеть. Вот кусочек про последнюю загрузку:
### Система загружается #### Feb 12 14:32:09 [pppd] Plugin passwordfd.so loaded. Feb 12 14:32:09 [pppd] pppd 2.4.4 started by root, uid 0 Feb 12 14:32:09 [pppd] using channel 1 Feb 12 14:32:09 [pppd] Using interface ppp0 Feb 12 14:32:09 [pppd] Connect: ppp0 <--> /dev/pts/0 Feb 12 14:32:10 [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x201f98b0> <pcomp> <accomp>] Feb 12 14:32:10 [pppd] rcvd [LCP ConfReq id=0xd5 <accomp> <pcomp> <mru 1500> <magic 0xce50c609> <auth chap MS-v2>] Feb 12 14:32:10 [pppd] sent [LCP ConfAck id=0xd5 <accomp> <pcomp> <mru 1500> <magic 0xce50c609> <auth chap MS-v2>] Feb 12 14:32:10 [pppd] rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x201f98b0> <pcomp> <accomp>] Feb 12 14:32:10 [pppd] sent [LCP EchoReq id=0x0 magic=0x201f98b0] Feb 12 14:32:10 [pppd] rcvd [CHAP Challenge id=0x1 <bb1e68d138797d91a7ab0370ab6857d8>, name = ""] Feb 12 14:32:10 [pppd] sent [CHAP Response id=0x1 <bac790046c43e5b0da3032f77993624200000000000000002ac82c13ac3f2a01bd9a02d3996793d41bacbd7e6abbb0ff00>, name = "p34-1kv110"] Feb 12 14:32:10 [pppd] rcvd [LCP EchoRep id=0x0 magic=0xce50c609] Feb 12 14:32:10 [pppd] rcvd [CHAP Success id=0x1 "S=B11FFBD983C9F9C977699B6CE5708DAA8C2D62C7"] Feb 12 14:32:10 [pppd] CHAP authentication succeeded Feb 12 14:32:10 [pppd] sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Feb 12 14:32:10 [pppd] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] Feb 12 14:32:10 [pppd] rcvd [IPCP ConfReq id=0xac <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:32:10 [pppd] sent [IPCP ConfAck id=0xac <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:32:10 [pppd] rcvd [CCP ConfReq id=0xb4 <mppe +H +M +S +L -D -C>] Feb 12 14:32:10 [pppd] sent [CCP ConfRej id=0xb4 <mppe +H +M +S +L -D -C>] Feb 12 14:32:10 [pppd] rcvd [CCP ConfReq id=0xb5] Feb 12 14:32:10 [pppd] sent [CCP ConfAck id=0xb5] Feb 12 14:32:12 [pppd] rcvd [IPCP ConfReq id=0xad <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:32:12 [pppd] sent [IPCP ConfAck id=0xad <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:32:12 [pppd] rcvd [CCP ConfReq id=0xb6] Feb 12 14:32:12 [pppd] sent [CCP ConfAck id=0xb6] Feb 12 14:32:13 [pppd] sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Feb 12 14:32:13 [pppd] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] Feb 12 14:32:13 [pppd] rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Feb 12 14:32:13 [pppd] sent [CCP ConfReq id=0x2] Feb 12 14:32:13 [pppd] rcvd [IPCP ConfNak id=0x1 <addr 172.17.16.195>] Feb 12 14:32:13 [pppd] sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 172.17.16.195>] Feb 12 14:32:13 [pppd] rcvd [CCP ConfAck id=0x2] Feb 12 14:32:13 [pppd] rcvd [CCP TermReq id=0xb7] Feb 12 14:32:13 [pppd] CCP terminated by peer Feb 12 14:32:13 [pppd] sent [CCP TermAck id=0xb7] Feb 12 14:32:13 [pppd] Compression disabled by peer. Feb 12 14:32:13 [pppd] rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 172.17.16.195>] Feb 12 14:32:13 [pppd] local IP address 172.17.16.195 Feb 12 14:32:13 [pppd] remote IP address 172.18.0.1 Feb 12 14:32:13 [pppd] Script /etc/ppp/ip-up started (pid 6180) Feb 12 14:32:14 [pppd] Script /etc/ppp/ip-up finished (pid 6180), status = 0x1 #### Сценарий вроде как отработал, связи с интернетом нет ### #### # /etc/init.d/net.ppp0 restart ### Feb 12 14:39:26 [pppd] Terminating on signal 15 Feb 12 14:39:26 [pppd] Connect time 7.3 minutes. Feb 12 14:39:26 [pppd] Sent 3420 bytes, received 0 bytes. Feb 12 14:39:26 [pppd] Script /etc/ppp/ip-down started (pid 9720) Feb 12 14:39:26 [pppd] sent [LCP TermReq id=0x2 "User request"] Feb 12 14:39:26 [pppd] Script pptp vpn.lan --nolaunchpppd finished (pid 5856), status = 0x0 Feb 12 14:39:26 [pppd] Modem hangup Feb 12 14:39:26 [pppd] Connection terminated. Feb 12 14:39:27 [pppd] Script /etc/ppp/ip-down finished (pid 9720), status = 0x1 Feb 12 14:39:27 [pppd] Exit. #### Повесились, поднимаемся снова ### Feb 12 14:39:28 [pppd] Plugin passwordfd.so loaded. Feb 12 14:39:28 [pppd] pppd 2.4.4 started by root, uid 0 Feb 12 14:39:28 [pppd] using channel 2 Feb 12 14:39:28 [pppd] Using interface ppp0 Feb 12 14:39:28 [pppd] Connect: ppp0 <--> /dev/pts/0 Feb 12 14:39:29 [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x661dd46f> <pcomp> <accomp>] Feb 12 14:39:29 [pppd] rcvd [LCP ConfReq id=0xf7 <accomp> <pcomp> <mru 1500> <magic 0xf29c4f19> <auth chap MS-v2>] Feb 12 14:39:29 [pppd] sent [LCP ConfAck id=0xf7 <accomp> <pcomp> <mru 1500> <magic 0xf29c4f19> <auth chap MS-v2>] Feb 12 14:39:29 [pppd] rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x661dd46f> <pcomp> <accomp>] Feb 12 14:39:29 [pppd] sent [LCP EchoReq id=0x0 magic=0x661dd46f] Feb 12 14:39:29 [pppd] rcvd [CHAP Challenge id=0x1 <bb1e6885d044df953559e3f630986ec8>, name = ""] Feb 12 14:39:29 [pppd] sent [CHAP Response id=0x1 <a71f0c10e743dfe118765cc71922a8b6000000000000000091fad1d098bb09dd234801da1eca1621cec8edafc8939eb200>, name = "p34-1kv110"] Feb 12 14:39:29 [pppd] rcvd [LCP EchoRep id=0x0 magic=0xf29c4f19] Feb 12 14:39:29 [pppd] rcvd [CHAP Success id=0x1 "S=EF4C848D274C86B05A0284E9E9681347FC81F2A5"] Feb 12 14:39:29 [pppd] CHAP authentication succeeded Feb 12 14:39:29 [pppd] sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Feb 12 14:39:29 [pppd] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] Feb 12 14:39:29 [pppd] rcvd [IPCP ConfReq id=0xc7 <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:39:29 [pppd] sent [IPCP ConfAck id=0xc7 <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:39:29 [pppd] rcvd [CCP ConfReq id=0xc7 <mppe +H +M +S +L -D -C>] Feb 12 14:39:29 [pppd] sent [CCP ConfRej id=0xc7 <mppe +H +M +S +L -D -C>] Feb 12 14:39:29 [pppd] rcvd [CCP ConfReq id=0xc8] Feb 12 14:39:29 [pppd] sent [CCP ConfAck id=0xc8] Feb 12 14:39:31 [pppd] rcvd [CCP ConfReq id=0xc9] Feb 12 14:39:31 [pppd] sent [CCP ConfAck id=0xc9] Feb 12 14:39:31 [pppd] rcvd [IPCP ConfReq id=0xc8 <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:39:31 [pppd] sent [IPCP ConfAck id=0xc8 <addr 172.18.0.1> <compress VJ 0f 00>] Feb 12 14:39:32 [pppd] sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Feb 12 14:39:32 [pppd] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] Feb 12 14:39:32 [pppd] rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Feb 12 14:39:32 [pppd] sent [CCP ConfReq id=0x2] Feb 12 14:39:32 [pppd] rcvd [IPCP ConfNak id=0x1 <addr 172.17.16.195>] Feb 12 14:39:32 [pppd] sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 172.17.16.195>] Feb 12 14:39:32 [pppd] rcvd [CCP ConfAck id=0x2] Feb 12 14:39:32 [pppd] rcvd [CCP TermReq id=0xca] Feb 12 14:39:32 [pppd] CCP terminated by peer Feb 12 14:39:32 [pppd] sent [CCP TermAck id=0xca] Feb 12 14:39:32 [pppd] Compression disabled by peer. Feb 12 14:39:32 [pppd] rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 172.17.16.195>] Feb 12 14:39:32 [pppd] local IP address 172.17.16.195 Feb 12 14:39:32 [pppd] remote IP address 172.18.0.1 Feb 12 14:39:32 [pppd] Script /etc/ppp/ip-up started (pid 10245) Feb 12 14:39:33 [pppd] Script /etc/ppp/ip-up finished (pid 10245), status = 0x1 #### Сценарий отработал, связь появилась ###
Буду рад любым советам
»
- Для комментирования войдите или зарегистрируйтесь
baselayout version show
baselayout version show please
Последняя
Последняя стабильная
sys-apps/baselayout-1.12.10-r5 USE="unicode -bootstrap -build -static"
Проблема
Проблема испугалась того, что я собрался её решать и куда-то делась (-:Е
Похоже, что-то подкрутили на сервере.
Думаю, что дело было в каком-нибудь времени ожидания отклика или вроде того.