Помогите, разобраться. делаю все как описано, но не выходит результат, не вижу где грабли...
Система:
# uname -r
4.10-RELEASE
pppclient 1.5 установлен из портов, все настройки брались через поиск гугла и опеннет.
(данные из свойств впн, из windows/linux)
Адресс впн сервера: 172.16.0.2
подробности:
Authentication: MS CHAP V2
Encryption: MPPE 128
Compression: (none)
PPP Multink framing: off
Server IP address: 192.168.248.1
Client IP address: 192.168.x.y
# cat /etc/ppp/ppp.conf
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# set device /dev/cuaa1
set device "! /usr/local/sbin/pptp 172.16.0.2 --nolaunchpppd"
set speed 115200
# set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180
enable dns # request DNS info (for resolv.conf)
vpn01:
set authname login
set authkey pass
enable MPPE
accept MPPE
set mppe 128
#отключаю компрессию:
disable deflate pred1
deny deflate pred1
disable ipv6cp
set timeout 0
set ifaddr 0 0
add default HISADDR
потом делаю:
#/usr/local/sbin/pptp 172.16.0.2 vpn01 &
поднимается интерфейс tun0, все ип выдаются правильно:
# ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1498
inet 192.168.х.у --> 192.168.248.1 netmask 0xffffffff
Opened by PID 4161
также правильно меняется таблица маршрутизации и выдаются правильные днс-сервера.
но, делаю пинг или трасировку и тишина.. вот лог:
# tail -1200 /var/log/ppp.log
Sep 19 12:50:29 Switch ppp[4161]: Phase: Using interface: tun0
Sep 19 12:50:29 Switch ppp[4161]: Phase: deflink: Created in closed state
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: default: set device ! /usr/local/sbin/pptp 172.16.0.2 --nolaunchpppd
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: default: set speed 115200
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: default: set timeout 180
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: default: enable dns
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: set authname login
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: set authkey ********
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: enable MPPE
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: accept MPPE
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: set mppe 128
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: disable deflate pred1
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: deny deflate pred1
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: disable ipv6cp
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: set timeout 0
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: set ifaddr 0 0
Sep 19 12:50:29 Switch ppp[4161]: tun0: Command: vpn01: add default HISADDR
Sep 19 12:50:29 Switch ppp[4161]: tun0: Phase: PPP Started (direct mode).
Sep 19 12:50:29 Switch ppp[4161]: tun0: Phase: bundle: Establish
Sep 19 12:50:29 Switch ppp[4161]: tun0: Phase: deflink: closed -> opening
Sep 19 12:50:29 Switch ppp[4161]: tun0: Phase: deflink: Connected!
Sep 19 12:50:29 Switch ppp[4161]: tun0: Phase: deflink: opening -> carrier
Sep 19 12:50:30 Switch ppp[4161]: tun0: Phase: deflink: carrier -> lcp
Sep 19 12:50:30 Switch ppp[4161]: tun0: LCP: FSM: Using "deflink" as a transport
Sep 19 12:50:30 Switch ppp[4161]: tun0: LCP: deflink: State change Initial --> Closed
Sep 19 12:50:30 Switch ppp[4161]: tun0: LCP: deflink: State change Closed --> Stopped
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x81)
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM[6] 0x79ff8fa3
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: PROTOCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACFCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACFCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: PROTOCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MRU[4] 1500
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM[6] 0x5b158649
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: SendConfigAck(1) state = Stopped
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x81)
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM[6] 0x79ff8fa3
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: PROTOCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACFCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: LayerStart
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: State change Stopped --> Ack-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: RecvConfigRej(1) state = Ack-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: SendIdent(0) state = Ack-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM 5b158649
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: TEXT user-ppp 3.1 (built May 25 2004)
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MRU[4] 1500
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: SendConfigReq(2) state = Ack-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACFCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: PROTOCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM[6] 0x5b158649
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: RecvCodeRej(2) state = Ack-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: RecvConfigAck(2) state = Ack-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACFCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: PROTOCOMP[2]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM[6] 0x5b158649
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: LayerUp
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: SendIdent(1) state = Opened
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: MAGICNUM 5b158649
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: TEXT user-ppp 3.1 (built May 25 2004)
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: bundle: Authenticate
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: deflink: his = CHAP 0x81, mine = none
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(0) state = Opened
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(0) state = Opened
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from vpn)
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: Chap Output: RESPONSE (avt426925)
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: deflink: RecvCodeRej(3) state = Opened
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: Chap Input: SUCCESS (S=93CC3F34896D92941CD0D0CC21CCEA426407A3C6 M=Access granted)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: FSM: Using "deflink" as a transport
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: State change Initial --> Closed
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: LayerStart.
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE[6] value 0x00000040 (128 bits, stateful)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: State change Closed --> Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: deflink: lcp -> open
Sep 19 12:50:31 Switch ppp[4161]: tun0: Phase: bundle: Network
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: FSM: Using "deflink" as a transport
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: State change Initial --> Closed
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: LayerStart.
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 0.0.0.0
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: PRIDNS[6] 84.21.81.244
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: SECDNS[6] 255.255.255.255
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: RecvConfigReq(1) state = Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE[6] value 0x01000060 (128/40 bits, stateless)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: SendConfigNak(1) state = Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE[6] value 0x01000040 (128 bits, stateless)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: RecvConfigAck(1) state = Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE[6] value 0x00000040 (128 bits, stateful)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: State change Req-Sent --> Ack-Rcvd
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: RecvTerminateAck(1) state = Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: RecvConfigReq(2) state = Ack-Rcvd
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE[6] value 0x01000040 (128 bits, stateless)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: SendConfigAck(2) state = Ack-Rcvd
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE[6] value 0x01000040 (128 bits, stateless)
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: State change Ack-Rcvd --> Opened
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: LayerUp.
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE: Input channel initiated
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: MPPE: Output channel initiated
Sep 19 12:50:31 Switch ppp[4161]: tun0: CCP: deflink: Out = MPPE[18], In = MPPE[18]
Sep 19 12:50:31 Switch ppp[4161]: tun0: LCP: Reducing MTU from 1500 to 1498 (CCP requirement)
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: RecvConfigReq(1) state = Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 192.168.248.1
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: SendConfigAck(1) state = Req-Sent
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 192.168.248.1
Sep 19 12:50:31 Switch ppp[4161]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 0.0.0.0
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: PRIDNS[6] 84.21.x
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: SECDNS[6] 255.255.255.255
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 192.168.x.y
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: IPADDR[6] changing address: 0.0.0.0 --> 192.168.248.102
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: PRIDNS[6] 84.21.x
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: SECDNS[6] 84.21.y
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: Primary nameserver set to 84.21.x
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: Secondary nameserver set to 84.21.y
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 192.168.x.y
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: PRIDNS[6] 84.21.x
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: SECDNS[6] 84.21.y
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: IPADDR[6] 192.168.248.102
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: PRIDNS[6] 84.х
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: SECDNS[6] 84.у
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: deflink: LayerUp.
Sep 19 12:50:34 Switch ppp[4161]: tun0: IPCP: myaddr 192.168.х.у hisaddr = 192.168.248.1
Sep 19 12:50:34 Switch ppp[4161]: tun0: LCP: Reducing MTU from 1500 to 1498 (CCP requirement)
Sep 19 12:50:41 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened
Sep 19 12:50:41 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(1) state = Opened
Sep 19 12:50:51 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(2) state = Opened
Sep 19 12:50:51 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(2) state = Opened
Sep 19 12:50:53 Switch ppp[4161]: tun0: LCP: deflink: RecvProtocolRej(4) state = Opened
Sep 19 12:50:53 Switch ppp[4161]: tun0: LCP: deflink: -- Protocol 0x00c5 (unrecognised protocol) was rejected!
Sep 19 12:50:53 Switch ppp[4161]: tun0: LCP: deflink: RecvProtocolRej(5) state = Opened
Sep 19 12:50:53 Switch ppp[4161]: tun0: LCP: deflink: -- Protocol 0x00c3 (unrecognised protocol) was rejected!
Sep 19 12:50:53 Switch ppp[4161]: tun0: LCP: deflink: RecvProtocolRej(6) state = Opened
Sep 19 12:50:53 Switch ppp[4161]: tun0: LCP: deflink: -- Protocol 0x6609 (unrecognised protocol) was rejected!
Sep 19 12:51:01 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(3) state = Opened
Sep 19 12:51:01 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(3) state = Opened
Sep 19 12:51:03 Switch ppp[4161]: tun0: LCP: deflink: RecvProtocolRej(7) state = Opened
Sep 19 12:51:03 Switch ppp[4161]: tun0: LCP: deflink: -- Protocol 0x00f9 (unrecognised protocol) was rejected!
Sep 19 12:51:11 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(4) state = Opened
Sep 19 12:51:11 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(4) state = Opened
Sep 19 12:51:21 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(5) state = Opened
Sep 19 12:51:21 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(5) state = Opened
Sep 19 12:51:31 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(6) state = Opened
Sep 19 12:51:31 Switch ppp[4161]: tun0: LCP: deflink: SendEchoReply(6) state = Opened
Sep 19 12:51:41 Switch ppp[4161]: tun0: LCP: deflink: RecvEchoRequest(7) state = Opened
и т.д. пока не разорвешь коннект
+++++++++
"Protocol 0x6609 (unrecognised protocol) was rejected!" возникает при попытке пинга, например яндекса.
делал поиск, на опенете нашел:
"LCP начинают бегать после установки соединения, но до авторизации, следовательно раз у тебя ступорится на LCP, то и надо покопать в сторону метода авторизации..."
пробовал менять всякие параметры на эту тему, в ppp.conf не помогало, или таже картина или вообще соединине рвется :(