файлы конфигурации pptpd:
/etc/pptpd.conf:
ppp /usr/sbin/pppd
option /etc/ppp/options.pptpd
debug
localip 192.168.1.20
remoteip 192.168.1.21
/etc/ppp/options.pptpd:
name spirit
require-pap
proxyarp
debug
lock
nobsdcomp
auth
ipparam PoPToP
/etc/ppp/option.pptp:
lock
noauth
nobsdcomp
nodeflate
require-pap
name spirit
remotename pptpd
asyncmap 0
crtscts
lock
hide-password
local
noproxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
/etc/ppp/pap-secret:
"spirit" "pptpd" "password"
При попытке конекта на консоль ничего не пишет, но в /var/log/syslog падает следующее:
Jul 13 17:35:41 Ghost pptp[6279]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT act
ivated
Jul 13 17:35:41 Ghost pptpd[6283]: MGR: Launching /usr/local/sbin/pptpctrl to handle client
Jul 13 17:35:41 Ghost pptpd[6283]: CTRL: pppd options file = /etc/ppp/options.pptpd
Jul 13 17:35:41 Ghost pptpd[6283]: CTRL: Client 127.0.0.1 control connection started
Jul 13 17:35:41 Ghost pptpd[6283]: CTRL: Received PPTP Control Message (type: 1)
Jul 13 17:35:41 Ghost pptpd[6283]: CTRL: Made a START CTRL CONN RPLY packet
Jul 13 17:35:41 Ghost pptpd[6283]: CTRL: I wrote 156 bytes to the client.
Jul 13 17:35:41 Ghost pptpd[6283]: CTRL: Sent packet to client
Jul 13 17:35:41 Ghost pptp[6282]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is
1 'Start-Control-Connection-Request'
Jul 13 17:35:41 Ghost pptp[6282]: anon log[ctrlp_disp:pptp_ctrl.c:732]: Received Start Control Conn
ection Reply
Jul 13 17:35:41 Ghost pptp[6282]: anon log[ctrlp_disp:pptp_ctrl.c:766]: Client connection establish
ed.
Jul 13 17:35:42 Ghost pptp[6282]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is
7 'Outgoing-Call-Request'
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Received PPTP Control Message (type: 7)
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Set parameters to 10000000 maxbps, 3 window size
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Made a OUT CALL RPLY packet
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Starting call (launching pppd, opening GRE)
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: pty_fd = 4
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: tty_fd = 5
Jul 13 17:35:42 Ghost pptpd[6284]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: I wrote 32 bytes to the client.
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Sent packet to client
Jul 13 17:35:42 Ghost pptp[6282]: anon log[ctrlp_disp:pptp_ctrl.c:851]: Received Outgoing Call Repl
y.
Jul 13 17:35:42 Ghost pptp[6282]: anon log[ctrlp_disp:pptp_ctrl.c:890]: Outgoing call established (
call ID 0, peer's call ID 256).
Jul 13 17:35:42 Ghost pppd[6287]: pppd 2.4.2b3 started by root, uid 0
Jul 13 17:35:42 Ghost pppd[6287]: Using interface ppp0
Jul 13 17:35:42 Ghost pppd[6287]: Connect: ppp0 <--> /dev/pts/5
Jul 13 17:35:42 Ghost pppd[6284]: The remote system is required to authenticate itself
Jul 13 17:35:42 Ghost pppd[6284]: but I couldn't find any suitable secret (password) for it to use
to do so.
Jul 13 17:35:42 Ghost pppd[6284]: (None of the available passwords would let it use an IP address.)
Jul 13 17:35:42 Ghost pptpd[6283]: GRE: read(fd=4,buffer=804d560,len=8196) from PTY failed: status
= -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syn
tax and pppd logs
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: PTY read or GRE write failed (pty,gre)=(4,5)
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Reaping child PPP[6284]
Jul 13 17:35:42 Ghost pptp[6282]: anon log[pptp_read_some:pptp_ctrl.c:537]: read returned zero, peer has closed
Jul 13 17:35:42 Ghost pptp[6282]: anon log[callmgr_main:pptp_callmgr.c:253]: Closing connection
Jul 13 17:35:42 Ghost pptp[6282]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is
12 'Call-Clear-Request'
Jul 13 17:35:42 Ghost pptp[6282]: anon log[pptp_read_some:pptp_ctrl.c:537]: read returned zero, pee
r has closed
Jul 13 17:35:42 Ghost pptp[6282]: anon log[pptp_read_some:pptp_ctrl.c:537]: read returned zero, pee
r has closed
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Client 127.0.0.1 control connection finished
Jul 13 17:35:42 Ghost pptpd[6283]: CTRL: Exiting now
Jul 13 17:35:42 Ghost pptpd[5653]: MGR: Reaped child 6283
Jul 13 17:35:42 Ghost pppd[6287]: Hangup (SIGHUP)
Jul 13 17:35:42 Ghost pppd[6287]: Modem hangup
Jul 13 17:35:42 Ghost pppd[6287]: Connection terminated.
Jul 13 17:35:43 Ghost pppd[6287]: Exit.
Jul 13 17:35:44 Ghost pptp[6282]: anon log[pptp_send_ctrl_packet:pptp_ctrl.c:615]: write error: Bro
ken pipe
Jul 13 17:35:44 Ghost pptp[6282]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Jul 13 17:35:44 Ghost pptp[6282]: anon log[pptp_conn_close:pptp_ctrl.c:433]: Closing PPTP connectio
n
Jul 13 17:35:44 Ghost pptp[6282]: anon log[pptp_send_ctrl_packet:pptp_ctrl.c:615]: write error: Bad
file descriptor