Здраствуйте, помогите установить vpn соединение под FreeBSD 4.8. У меня сервер подключен к интернету с серый IP. Я настроил PopTop и клинеты могут конектиться на мой сервер, им выдается IP, прописанный в ppp.secret. Мне очень надо установить vpn соединение между сервером и машиной в интернете.
Вот мои конфиги.
===
/etc/ppp/ppp.conf
default:
load pptp
loop:
set timeout 0
set log phase chat connect lcp ipcp command
set device localhost:pptp
# Server (local) IP address, Range for Clients, and Netmask
set ifaddr 192.168.0.192 100.100.0.2-100.100.0.254 255.255.255.255
set server /tmp/loop "" 0177
set timeout 0
loop-in:
set timeout 0
set log phase lcp ipcp command
allow mode direct
pptp:
load loop
enable MSCHAPv2
enable chap
disable deflate pred1
deny deflate pred1
disable pap
set mppe * *
disable ipv6cp
accept dns
set dns 192.168.0.1 192.168.0.192
set device !/etc/ppp/secure
vpn:
disable pap
enable chap
set authname <USERNAME>
set authkey <MYPASS>
set timeout 0
set ifaddr 0 0
alias enable yes
add default HISADDR
==
Запускаю pptp vpn.planetsky.com vpn..
Через 17 секунд процесс завершается и в логах пишется следующее:
Oct 24 11:17:08 stargate ppp[4436]: Phase: Using interface: tun1
Oct 24 11:17:08 stargate ppp[4436]: Phase: deflink: Created in closed state
Oct 24 11:17:08 stargate ppp[4436]: Command: loop: set device localhost:pptp
Oct 24 11:17:08 stargate ppp[4436]: Command: loop: set ifaddr 192.168.0.192 100.100.0.2-100.100.0.254 255.255.255.255
Oct 24 11:17:08 stargate ppp[4436]: IPCP: Selected IP address 100.100.0.252
Oct 24 11:17:08 stargate ppp[4436]: Command: loop: set server /tmp/loop ******** 0177
Oct 24 11:17:08 stargate ppp[4436]: Warning: Local: bind: Address already in use
Oct 24 11:17:08 stargate ppp[4436]: Warning: set server: Failed 2
Oct 24 11:17:08 stargate ppp[4436]: Command: loop: set timeout 0
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: enable MSCHAPv2
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: enable chap
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: disable deflate pred1
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: deny deflate pred1
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: disable pap
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: set mppe * *
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: disable ipv6cp
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: accept dns
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: set dns 192.168.0.1 192.168.0.192
Oct 24 11:17:08 stargate ppp[4436]: Command: pptp: set device !/etc/ppp/secure
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: disable pap
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: enable chap
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: set authname T12Demand369
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: set authkey ********
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: set timeout 0
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: set ifaddr 0 0
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: alias enable yes
Oct 24 11:17:08 stargate ppp[4436]: Warning: The alias command is deprecated
Oct 24 11:17:08 stargate ppp[4436]: Command: vpn: add default HISADDR
Oct 24 11:17:08 stargate ppp[4436]: Phase: PPP Started (direct mode).
Oct 24 11:17:08 stargate ppp[4436]: Phase: bundle: Establish
Oct 24 11:17:08 stargate ppp[4436]: Phase: deflink: closed -> opening
Oct 24 11:17:08 stargate ppp[4436]: Phase: deflink: Connected!
Oct 24 11:17:08 stargate ppp[4436]: Phase: deflink: opening -> carrier
Oct 24 11:17:09 stargate ppp[4436]: Phase: deflink: carrier -> lcp
Oct 24 11:17:09 stargate ppp[4436]: LCP: FSM: Using "deflink" as a transport
Oct 24 11:17:09 stargate ppp[4436]: LCP: deflink: State change Initial --> Closed
Oct 24 11:17:09 stargate ppp[4436]: LCP: deflink: State change Closed --> Stopped
Oct 24 11:17:10 stargate ppp[4436]: LCP: deflink: LayerStart
Oct 24 11:17:10 stargate ppp[4436]: LCP: deflink: SendConfigReq(1) state = Stopped
Oct 24 11:17:10 stargate ppp[4436]: LCP: ACFCOMP[2]
Oct 24 11:17:10 stargate ppp[4436]: LCP: PROTOCOMP[2]
Oct 24 11:17:10 stargate ppp[4436]: LCP: ACCMAP[6] 0x00000000
Oct 24 11:17:10 stargate ppp[4436]: LCP: MRU[4] 1500
Oct 24 11:17:10 stargate ppp[4436]: LCP: MAGICNUM[6] 0x05494c3d
Oct 24 11:17:10 stargate ppp[4436]: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Oct 24 11:17:10 stargate ppp[4436]: LCP: deflink: State change Stopped --> Req-Sent
Oct 24 11:17:13 stargate ppp[4436]: LCP: deflink: SendConfigReq(1) state = Req-Sent
Oct 24 11:17:13 stargate ppp[4436]: LCP: ACFCOMP[2]
Oct 24 11:17:13 stargate ppp[4436]: LCP: PROTOCOMP[2]
Oct 24 11:17:13 stargate ppp[4436]: LCP: ACCMAP[6] 0x00000000
Oct 24 11:17:13 stargate ppp[4436]: LCP: MRU[4] 1500
Oct 24 11:17:13 stargate ppp[4436]: LCP: MAGICNUM[6] 0x05494c3d
Oct 24 11:17:13 stargate ppp[4436]: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Oct 24 11:17:16 stargate ppp[4436]: LCP: deflink: SendConfigReq(1) state = Req-Sent
Oct 24 11:17:16 stargate ppp[4436]: LCP: ACFCOMP[2]
Oct 24 11:17:16 stargate ppp[4436]: LCP: PROTOCOMP[2]
Oct 24 11:17:16 stargate ppp[4436]: LCP: ACCMAP[6] 0x00000000
Oct 24 11:17:16 stargate ppp[4436]: LCP: MRU[4] 1500
Oct 24 11:17:16 stargate ppp[4436]: LCP: MAGICNUM[6] 0x05494c3d
Oct 24 11:17:16 stargate ppp[4436]: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Oct 24 11:17:19 stargate ppp[4436]: LCP: deflink: SendConfigReq(1) state = Req-SentOct 24 11:17:19 stargate ppp[4436]: LCP: ACFCOMP[2]
Oct 24 11:17:19 stargate ppp[4436]: LCP: PROTOCOMP[2]
Oct 24 11:17:19 stargate ppp[4436]: LCP: ACCMAP[6] 0x00000000
Oct 24 11:17:19 stargate ppp[4436]: LCP: MRU[4] 1500
Oct 24 11:17:19 stargate ppp[4436]: LCP: MAGICNUM[6] 0x05494c3d
Oct 24 11:17:19 stargate ppp[4436]: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Oct 24 11:17:22 stargate ppp[4436]: LCP: deflink: SendConfigReq(1) state = Req-Sent
Oct 24 11:17:22 stargate ppp[4436]: LCP: ACFCOMP[2]
Oct 24 11:17:22 stargate ppp[4436]: LCP: PROTOCOMP[2]
Oct 24 11:17:22 stargate ppp[4436]: LCP: ACCMAP[6] 0x00000000
Oct 24 11:17:22 stargate ppp[4436]: LCP: MRU[4] 1500
Oct 24 11:17:22 stargate ppp[4436]: LCP: MAGICNUM[6] 0x05494c3d
Oct 24 11:17:22 stargate ppp[4436]: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Oct 24 11:17:25 stargate ppp[4436]: LCP: deflink: LayerFinish
Oct 24 11:17:25 stargate ppp[4436]: LCP: deflink: State change Req-Sent --> Stopped
Oct 24 11:17:25 stargate ppp[4436]: LCP: deflink: State change Stopped --> Closed
Oct 24 11:17:25 stargate ppp[4436]: LCP: deflink: State change Closed --> Initial
Oct 24 11:17:25 stargate ppp[4436]: Phase: deflink: Disconnected!
Oct 24 11:17:25 stargate ppp[4436]: Phase: deflink: Connect time: 17 secs: 0 octets in, 305 octets out
Oct 24 11:17:25 stargate ppp[4436]: Phase: deflink: 0 packets in, 5 packets out
Oct 24 11:17:25 stargate ppp[4436]: Phase: total 17 bytes/sec, peak 24 bytes/sec on Fri Oct 24 11:17:13 2003
Oct 24 11:17:25 stargate ppp[4436]: Phase: deflink: lcp -> closed
Oct 24 11:17:25 stargate ppp[4436]: Phase: bundle: Dead
Oct 24 11:17:25 stargate ppp[4436]: Phase: PPP Terminated (normal).
|