FreeBSD 5.2.1.
К одному провайдеру получилось соединиться без проблем, но у него нету PAP
А сейчас попался провайдер, который использует PAP
ppp.conf:
vpn:
set authname S9998669
set authkey 59816123
set timeout 0
set ifaddr 0 0
disable mppe
enable pap
alias enable yes
пробую соединяться: pptp vpn.prov.ru vpn
в логах получаю это:
Sep 25 13:12:08 qwertynet ppp[17408]: Phase: Using interface: tun0
Sep 25 13:12:08 qwertynet ppp[17408]: Phase: deflink: Created in closed state
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: default: set device /dev/cuaa1
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: default: set speed 115200
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: default: set timeout 180
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: default: enable dns
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: set authname S9998669
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: set authkey ********
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: set timeout 0
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: set ifaddr 0 0
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: disable mppe
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: enable pap
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Command: vpn_sels: alias enable yes
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Warning: The alias command is deprecated
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Phase: PPP Started (direct mode).
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Phase: bundle: Establish
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Phase: deflink: closed -> opening
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Phase: deflink: Connected!
Sep 25 13:12:08 qwertynet ppp[17408]: tun0: Phase: deflink: opening -> carrier
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: Phase: deflink: carrier -> lcp
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: FSM: Using "deflink" as a transport
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: State change Initial --> Closed
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: State change Closed --> Stopped
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: MAGICNUM[6] 0xa9ea5027
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: ACFCOMP[2]
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: PROTOCOMP[2]
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: MRU[4] 1500
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: MAGICNUM[6] 0xb8efd1d6
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: SendConfigAck(1) state = Stopped
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: MAGICNUM[6] 0xa9ea5027
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: LayerStart
Sep 25 13:12:09 qwertynet ppp[17408]: tun0: LCP: deflink: State change Stopped --> Ack-Sent
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: ACFCOMP[2]
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: PROTOCOMP[2]
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: ACCMAP[6] 0x00000000
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: MRU[4] 1500
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: MAGICNUM[6] 0xb8efd1d6
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: LayerUp
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: SendIdent(0) state = Opened
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: MAGICNUM b8efd1d6
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: TEXT user-ppp 3.1 (built Jul 1 2004)
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: Phase: bundle: Authenticate
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: Phase: deflink: his = PAP, mine = PAP
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: Phase: Pap Output: S9998669 ********
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: Phase: Pap Input: SUCCESS ()
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: RecvTerminateReq(2) state = Opened
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: LayerDown
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: SendTerminateAck(2) state = Opened
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: State change Opened --> Stopping
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: Phase: Signal 15, terminate.
Sep 25 13:12:10 qwertynet ppp[17408]: tun0: LCP: deflink: State change Stopping --> Closing
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: LCP: deflink: LayerFinish
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: LCP: deflink: State change Closing --> Closed
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: LCP: deflink: State change Closed --> Initial
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: deflink: Disconnected!
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: deflink: Connect time: 5 secs: 126 octets in, 197 octets out
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: deflink: 4 packets in, 5 packets out
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: total 64 bytes/sec, peak 89 bytes/sec on Sat Sep 25 13:12:10 2004
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: deflink: lcp -> closed
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: bundle: Dead
Sep 25 13:12:13 qwertynet ppp[17408]: tun0: Phase: PPP Terminated (normal).