LINUX.ORG.RU
ФорумAdmin

PPTPD Debian :x


0

0

В крации, нужен был простейший впн-сервер...
С дефолтным конфигом как-то это дело не хотело взлетать, был взят рабочий максимально упрощенный конфиг, но и тут всё осталось по прежнему, со стороны виндового клиента это выглядит как 691 ошибка - невозможность открыть портблаблабла, со стороны сервера:


Nov 30 11:56:45 bgpm pptpd[3660]: MGR: Launching /usr/sbin/pptpctrl to handle client
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: local address = 192.168.40.1
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: remote address = 192.168.40.100
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: pppd speed = 115200
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: pppd options file = /etc/ppp/options.pptpd
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Client 80.86.254.171 control connection started
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Received PPTP Control Message (type: 1)
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Made a START CTRL CONN RPLY packet
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: I wrote 156 bytes to the client.
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Sent packet to client
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Received PPTP Control Message (type: 7)
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Made a OUT CALL RPLY packet
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Starting call (launching pppd, opening GRE)
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: pty_fd = 6
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: tty_fd = 7
Nov 30 11:56:45 bgpm pptpd[3661]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Nov 30 11:56:45 bgpm pptpd[3661]: CTRL (PPPD Launcher): local address = 192.168.40.1
Nov 30 11:56:45 bgpm pptpd[3661]: CTRL (PPPD Launcher): remote address = 192.168.40.100
Nov 30 11:56:45 bgpm pppd[3661]: pppd 2.4.4 started by root, uid 0
Nov 30 11:56:45 bgpm pppd[3661]: using channel 9
Nov 30 11:56:45 bgpm pppd[3661]: Using interface ppp0
Nov 30 11:56:45 bgpm pppd[3661]: Connect: ppp0 <--> /dev/pts/1
Nov 30 11:56:45 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: I wrote 32 bytes to the client.
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Sent packet to client
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Received PPTP Control Message (type: 15)
Nov 30 11:56:45 bgpm pptpd[3660]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Nov 30 11:56:45 bgpm pptpd[3660]: GRE: accepting packet #0
Nov 30 11:56:45 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x0 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:56:45 bgpm pppd[3661]: sent [LCP ConfRej id=0x0 <callback CBCP>]
Nov 30 11:56:47 bgpm pptpd[3660]: GRE: accepting packet #1
Nov 30 11:56:47 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x1 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:56:47 bgpm pppd[3661]: sent [LCP ConfRej id=0x1 <callback CBCP>]
Nov 30 11:56:48 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:56:49 bgpm pptpd[3660]: GRE: accepting packet #2
Nov 30 11:56:49 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x2 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:56:49 bgpm pppd[3661]: sent [LCP ConfRej id=0x2 <callback CBCP>]
Nov 30 11:56:51 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:56:54 bgpm pptpd[3660]: GRE: accepting packet #3
Nov 30 11:56:54 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x3 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:56:54 bgpm pppd[3661]: sent [LCP ConfRej id=0x3 <callback CBCP>]
Nov 30 11:56:54 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:56:57 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:56:58 bgpm pptpd[3660]: GRE: accepting packet #4
Nov 30 11:56:58 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x4 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:56:58 bgpm pppd[3661]: sent [LCP ConfRej id=0x4 <callback CBCP>]
Nov 30 11:57:00 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:57:02 bgpm pptpd[3660]: GRE: accepting packet #5
Nov 30 11:57:02 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x5 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:57:02 bgpm pppd[3661]: sent [LCP ConfRej id=0x5 <callback CBCP>]
Nov 30 11:57:03 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:57:06 bgpm pptpd[3660]: GRE: accepting packet #6
Nov 30 11:57:06 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x6 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:57:06 bgpm pppd[3661]: sent [LCP ConfRej id=0x6 <callback CBCP>]
Nov 30 11:57:06 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:57:09 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:57:10 bgpm pptpd[3660]: GRE: accepting packet #7
Nov 30 11:57:10 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x7 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:57:10 bgpm pppd[3661]: sent [LCP ConfRej id=0x7 <callback CBCP>]
Nov 30 11:57:12 bgpm pppd[3661]: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <auth chap MD5> <magic 0x3f67b7bd> <pcomp> <accomp>]
Nov 30 11:57:14 bgpm pptpd[3660]: GRE: accepting packet #8
Nov 30 11:57:14 bgpm pppd[3661]: rcvd [LCP ConfReq id=0x8 <mru 1400> <magic 0x4122502f> <pcomp> <accomp> <callback CBCP>]
Nov 30 11:57:14 bgpm pppd[3661]: sent [LCP ConfRej id=0x8 <callback CBCP>]
Nov 30 11:57:15 bgpm pppd[3661]: LCP: timeout sending Config-Requests
Nov 30 11:57:15 bgpm pppd[3661]: Connection terminated.
Nov 30 11:57:15 bgpm pppd[3661]: Modem hangup
Nov 30 11:57:15 bgpm pppd[3661]: Exit.
Nov 30 11:57:15 bgpm pptpd[3660]: GRE: read(fd=6,buffer=510a00,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Nov 30 11:57:15 bgpm pptpd[3660]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Nov 30 11:57:15 bgpm pptpd[3660]: CTRL: Reaping child PPP[3661]
Nov 30 11:57:15 bgpm pptpd[3660]: CTRL: Client 80.86.254.171 control connection finished
Nov 30 11:57:15 bgpm pptpd[3660]: CTRL: Exiting now
Nov 30 11:57:15 bgpm pptpd[3658]: MGR: Reaped child 3660

/etc/pptpd.conf:

bcrelay eth1
debug
localip 192.168.40.1
option /etc/ppp/options.pptpd
remoteip 192.168.40.100-254

/etc/ppp/options.pptpd:

auth
debug
lock
logfile /var/log/pptpd.log
ms-dns 89.208.43.94
name bgpdebian
proxyarp
require-chap

Дистрибутив Debian40r1-amd64.
pppd version 2.4.4
pptpd v1.3.0
★★★★

У меня конфиг options.pptpd, в принципе такой же только: noauth и еще добавлен nodefaultroute.

gruy ★★★★★
()
Ответ на: комментарий от gruy

С win-машины подключается нормально.

gruy ★★★★★
()
Ответ на: комментарий от gruy

конфиг, в общем-то, и есть рабочий, т.к. в другом месте он работает;)

Ip0 ★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.