Hi ppl.
Использовал ли кто на FreeBSD PPTP туннели?
Есть необходимость стандартными средствами Windows прокинуть VPN до
FreeBSD. Какие подводные камни меня ожидают?
Попробовав поднять туннель с Win получил сообщение о невозможности подобрать
протокол (я уже бросал сюда подробные логи этой попытки).
Сейчас решил попробовать поднять PPTP между двумя FreeBSD.
PPTP client - ver 1.0.2
PPTP server - ver 1.0.0
И вот получил следующее:
PPTP client:
/etc/ppp/ppp.conf
myserver:
set authname test
set authkey test
set timeout 0
set ifaddr 0 0
add 192.168.0.0/16 HISADDR
alias enable yes
После запуска pptp наблюдаю:
Mar 16 15:20:51 client (unknown)[76830]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client connection established.
Mar 16 15:20:52 client ppp[76828]: Warning: No available tunnel devices found (Device busy)
Mar 16 15:20:52 client (unknown)[76830]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call established.
Mar 16 15:21:52 client (unknown)[76830]: log[pptp_read_some:pptp_ctrl.c:368]: read error: Connection reset by peer
Mar 16 15:21:52 client (unknown)[76830]: log[pptp_conn_close:pptp_ctrl.c:275]: Closing PPTP connection
Mar 16 15:21:52 client /kernel: pid 76830 (pptp), uid 0: exited on signal 10 (core dumped)
Как это нет доступных tunnel device?
tun0: flags=8151<UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1480
inet x.x.x.x --> x.x.x.y netmask 0xffffffff
tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun2: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun3: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
На стороне PPTP сервера это выглядит так:
/etc/ppp/ppp.conf
pptp:
set speed sync
enable pap
enable chap
set dns w.w.w.w
accept dns
Mar 16 15:32:02 myserver pptpd[54996]: MGR: Launching /usr/local/sbin/pptpctrl to handle client
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: pppd speed = 10000
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: pppd options file = /etc/ppp/options.pptp
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: Client 111.111.111.111 control connection started
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: Received PPTP Control Message (type: 1)
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: Made a START CTRL CONN RPLY packet
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: I wrote 156 bytes to the client.
Mar 16 15:32:02 myserver pptpd[54996]: CTRL: Sent packet to client
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: Received PPTP Control Message (type: 7)
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: Set parameters to 152 maxbps, 3 window size
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: Made a OUT CALL RPLY packet
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: Starting call (launching pppd, opening GRE)
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: pty_fd = 6
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: tty_fd = 5
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: I wrote 32 bytes to the client.
Mar 16 15:32:03 myserver ppp[54997]: Phase: Using interface: tun0
Mar 16 15:32:03 myserver pptpd[54996]: CTRL: Sent packet to client
Mar 16 15:32:03 myserver ppp[54997]: Phase: deflink: Created in closed state
Mar 16 15:32:03 myserver ppp[54997]: Phase: PPP Started (direct mode).
Mar 16 15:32:03 myserver ppp[54997]: Phase: bundle: Establish
Mar 16 15:32:03 myserver ppp[54997]: Phase: deflink: closed -> opening
Mar 16 15:32:03 myserver ppp[54997]: Phase: deflink: Connected!
Mar 16 15:32:03 myserver ppp[54997]: Phase: deflink: opening -> carrier
Mar 16 15:32:03 myserver ppp[54997]: Phase: deflink: carrier -> lcp
Mar 16 15:32:04 myserver pptpd[54996]: GRE: Bad checksum from pppd.
Mar 16 15:32:16 myserver last message repeated 4 times
Mar 16 15:32:19 myserver ppp[54997]: Phase: deflink: Disconnected!
Mar 16 15:32:19 myserver pptpd[54996]: GRE: read(fd=6,buffer=804d000,len=8196) from PTY failed: status = 0 error = No error
Mar 16 15:32:19 myserver pptpd[54996]: CTRL: PTY read or GRE write failed (pty,gre)=(6,5)
Mar 16 15:32:19 myserver pptpd[54996]: CTRL: Client 111.111.111.111 control connection finished
Mar 16 15:32:19 myserver pptpd[54996]: CTRL: Exiting now
Mar 16 15:32:19 myserver pptpd[23342]: MGR: Reaped child 54996
Mar 16 15:32:19 myserver ppp[54997]: Phase: deflink: Connect time: 16 secs: 0 octets in, 115 octets out
Mar 16 15:32:19 myserver ppp[54997]: Phase: total 7 bytes/sec, peak 9 bytes/sec on Thu Mar 16 15:32:19 2000
Mar 16 15:32:19 myserver ppp[54997]: Phase: deflink: lcp -> closed
Mar 16 15:32:19 myserver ppp[54997]: Phase: bundle: Dead
Mar 16 15:32:19 myserver ppp[54997]: Phase: PPP Terminated (normal).
Может кто-то уже пробовал поднимать PPTP under FreeBSD - поделитесь
своими соображениями.
=============================================================================
"inet-admins" Internet access mailing list. Maintained by East Connection ISP.
Mail "unsubscribe inet-admins" to Majordomo@info.east.ru if you want to quit.
Archive is accessible on http://info.east.ru/rus/inetadm.html