Dobry den,
Snazim sa rozbehat VPN medzi dvoma pc. Pouzivam nasledujuce verzie programov ppp-2.4.3, pptpd-1.2.1,pptp-linux-1.5.0.
Ak by ste mi vedeli poradit budem Vam velmi vdacny.
Tu uvadzam konfiguracne subory a log zo servera a nasledne z klienta.
Server:
IP: 192.1.1.1
/etc/ppp/options.pptpd
lock
debug
name pptpd
auth
noproxyarp
require-mschap-v2
mppe required,no40,no56
etc/ppp/chap-secrets
francesco pptpd breika *
etc/pptpd.conf
# TAG: ppp
ppp /usr/local/sbin/pppd
# TAG: speed
#speed 115200
# TAG option
option /etc/ppp/options.pptpd
# TAG: debug
debug
# TAG: localip
# TAG: remoteip
#logwtmp
localip 192.168.34.1
remoteip 192.168.34.2-200
syslog:
Mar 27 18:18:56 rea pptpd[3849]: MGR: Max connections reached, extra IP addresses ignored
Mar 27 18:18:56 rea pptpd[3850]: MGR: Manager process started
Mar 27 18:18:56 rea pptpd[3850]: MGR: Maximum of 100 connections available
Mar 27 18:19:03 rea pptpd[3851]: MGR: Launching /usr/local/sbin/pptpctrl to handle client
Mar 27 18:19:03 rea pptpd[3851]: CTRL: local address = 192.168.34.1
Mar 27 18:19:03 rea pptpd[3851]: CTRL: remote address = 192.168.34.2
Mar 27 18:19:03 rea pptpd[3851]: CTRL: pppd options file = /etc/ppp/options.pptpd
Mar 27 18:19:03 rea pptpd[3851]: CTRL: Client 192.1.1.2 control connection started
Mar 27 18:19:03 rea pptpd[3851]: CTRL: Received PPTP Control Message (type: 1)
Mar 27 18:19:03 rea pptpd[3851]: CTRL: Made a START CTRL CONN RPLY packet
Mar 27 18:19:03 rea pptpd[3851]: CTRL: I wrote 156 bytes to the client.
Mar 27 18:19:03 rea pptpd[3851]: CTRL: Sent packet to client
Mar 27 18:19:04 rea pptpd[3851]: CTRL: Received PPTP Control Message (type: 7)
Mar 27 18:19:04 rea pptpd[3851]: CTRL: Set parameters to 10000000 maxbps, 3 window size
Mar 27 18:19:04 rea pptpd[3851]: CTRL: Made a OUT CALL RPLY packet
Mar 27 18:19:04 rea pptpd[3851]: CTRL: Starting call (launching pppd, opening GRE)
Mar 27 18:19:04 rea pptpd[3851]: CTRL: pty_fd = 4
Mar 27 18:19:04 rea pptpd[3851]: CTRL: tty_fd = 5
Mar 27 18:19:04 rea pptpd[3852]: CTRL (PPPD Launcher): program binary = /usr/local/sbin/pppd
Mar 27 18:19:04 rea pptpd[3852]: CTRL (PPPD Launcher): local address = 192.168.34.1
Mar 27 18:19:04 rea pptpd[3852]: CTRL (PPPD Launcher): remote address = 192.168.34.2
Mar 27 18:19:04 rea pppd[3852]: pppd 2.4.3 started by root, uid 0
Mar 27 18:19:04 rea pppd[3852]: using channel 6
Mar 27 18:19:04 rea pptpd[3851]: CTRL: I wrote 32 bytes to the client.
Mar 27 18:19:04 rea pptpd[3851]: CTRL: Sent packet to client
Mar 27 18:19:04 rea pppd[3852]: Using interface ppp0
Mar 27 18:19:04 rea pppd[3852]: Connect: ppp0 <--> /dev/pts/2
Mar 27 18:19:04 rea pppd[3852]: sent [LCP ConfReq id=0x1
]
Mar 27 18:19:06 rea pppd[3852]: rcvd [LCP ConfReq id=0x1
]
Mar 27 18:19:06 rea pppd[3852]: sent [LCP ConfAck id=0x1
]
Mar 27 18:19:06 rea pppd[3852]: rcvd [LCP ConfNak id=0x1 ]
Mar 27 18:19:06 rea pppd[3852]: sent [LCP ConfReq id=0x2
]
Mar 27 18:19:06 rea pppd[3852]: rcvd [LCP ConfAck id=0x2
]
Mar 27 18:19:06 rea pppd[3852]: sent [LCP EchoReq id=0x0 magic=0x4bd04dd2]
Mar 27 18:19:06 rea pppd[3852]: peer refused to authenticate: terminating link
Mar 27 18:19:06 rea pppd[3852]: sent [LCP TermReq id=0x3 "peer refused to authenticate"]
Mar 27 18:19:06 rea pppd[3852]: rcvd [CCP ConfReq id=0x1 ]
Mar 27 18:19:06 rea pppd[3852]: Discarded non-LCP packet when LCP not open
Mar 27 18:19:06 rea pppd[3852]: rcvd [IPCP ConfReq id=0x1 ]
Mar 27 18:19:06 rea pppd[3852]: Discarded non-LCP packet when LCP not open
Mar 27 18:19:06 rea pppd[3852]: rcvd [LCP EchoRep id=0x0 magic=0x797fe79]
Mar 27 18:19:06 rea pppd[3852]: rcvd [LCP TermAck id=0x3]
Mar 27 18:19:06 rea pppd[3852]: Connection terminated.
Mar 27 18:19:07 rea pppd[3852]: Exit.
Mar 27 18:19:07 rea pptpd[3851]: GRE: read(fd=4,buffer=804e6c0,len=8196) from PTY failed:
status = -1 error = Input/output error, usually caused by unexpected termination of pppd,
check option syntax and pppd logs
Mar 27 18:19:07 rea pptpd[3851]: CTRL: PTY read or GRE write failed (pty,gre)=(4,5)
Mar 27 18:19:07 rea pptpd[3851]: CTRL: Reaping child PPP[3852]
Mar 27 18:19:07 rea pptpd[3851]: CTRL: Client 192.1.1.2 control connection finished
Mar 27 18:19:07 rea pptpd[3851]: CTRL: Exiting now
Mar 27 18:19:07 rea pptpd[3850]: MGR:
Reaped child 3851
Client:
IP: 192.1.1.2
/etc/ppp/options.pptp
lock
noauth
nobsdcomp
nodeflate
/etc/ppp/peers/pptpclient
pty "/usr/src/pptp-linux-1.5.0/pptp 192.1.1.1 --debug --loglevel 2"
name francesco
remotename PPTP
require-mschap-v2
mppe required,no40,no56
linkname francesco
file /etc/ppp/options.pptp
ipparam pptpclient
/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
francesco PPTP breika *
PPTP francesco breika *
pon pptpclient debug dump logfd 2 nodetach
logs:
Mar 27 18:51:55 box2 pppd[3146]: pppd options in effect:
Mar 27 18:51:55 box2 pppd[3146]: debug^I^I# (from command line)
Mar 27 18:51:55 box2 pppd[3146]: nodetach^I^I# (from command line)
Mar 27 18:51:55 box2 pppd[3146]: logfd 2^I^I# (from command line)
Mar 27 18:51:55 box2 pppd[3146]: linkname francesco^I^I# (from /etc/ppp/peers/pptpclient)
Mar 27 18:51:55 box2 pppd[3146]: dump^I^I# (from command line)
Mar 27 18:51:55 box2 pppd[3146]: noauth^I^I# (from /etc/ppp/options.pptp)
Mar 27 18:51:55 box2 pppd[3146]: name francesco^I^I# (from /etc/ppp/peers/pptpclient)
Mar 27 18:51:55 box2 pppd[3146]: remotename PPTP^I^I# (from /etc/ppp/peers/pptpclient)
Mar 27 18:51:55 box2 pppd[3146]: ^I^I# (from /etc/ppp/options.pptp)
Mar 27 18:51:55 box2 pppd[3146]: pty /usr/src/pptp-linux-1.5.0/pptp 192.1.1.1 --debug
--loglevel 2^I^I# (from /etc/ppp/peers/pptpclient)
Mar 27 18:51:55 box2 pppd[3146]: ipparam pptpclient^I^I# (from /etc/ppp/peers/pptpclient)
Mar 27 18:51:55 box2 pppd[3146]: nobsdcomp^I^I# (from /etc/ppp/options.pptp)
Mar 27 18:51:55 box2 pppd[3146]: nodeflate^I^I# (from /etc/ppp/options.pptp)
Mar 27 18:51:55 box2 pppd[3146]: mppe xxx # [don't know how to print value]^I^I# (from
/etc/ppp/peers/pptpclient)
Mar 27 18:51:55 box2 pppd[3146]: pppd 2.4.3 started by root, uid 0
Mar 27 18:51:55 box2 pptp[3147]: anon log[main:pptp.c:243]: The synchronous pptp option is
NOT activated
Mar 27 18:51:55 box2 pppd[3146]: using channel 13
Mar 27 18:51:55 box2 pppd[3146]: Using interface ppp0
Mar 27 18:51:55 box2 pppd[3146]: Connect: ppp0 <--> /dev/pts/3
Mar 27 18:51:55 box2 pptp[3160]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet
type is 1 'Start-Control-Connection-Request'
Mar 27 18:51:55 box2 pptp[3160]: anon log[ctrlp_disp:pptp_ctrl.c:721]: Received Start
Control Connection Reply
Mar 27 18:51:55 box2 pptp[3160]: anon log[ctrlp_disp:pptp_ctrl.c:755]: Client connection
established.
Mar 27 18:51:56 box2 pppd[3146]: sent [LCP ConfReq id=0x1
]
Mar 27 18:51:56 box2 pptp[3160]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet
type is 7 'Outgoing-Call-Request'
Mar 27 18:51:56 box2 pptp[3160]: anon log[ctrlp_disp:pptp_ctrl.c:841]: Received Outgoing
Call Reply.
Mar 27 18:51:56 box2 pptp[3160]: anon log[ctrlp_disp:pptp_ctrl.c:880]: Outgoing call
established (call ID 0, peer's call ID 128).
Mar 27 18:51:56 box2 pppd[3146]: Script /usr/src/pptp-linux-1.5.0/pptp 192.1.1.1 --debug
--loglevel 2 finished (pid 3147), status = 0x0
Mar 27 18:51:56 box2 pppd[3161]: pppd 2.4.3 started by root, uid 0
Mar 27 18:51:56 box2 pppd[3161]: Using interface ppp1
Mar 27 18:51:56 box2 pppd[3161]: Connect: ppp1 <--> /dev/pts/4
Mar 27 18:51:58 box2 pptp[3148]: anon log[decaps_gre:pptp_gre.c:385]: accepting packet 0
Mar 27 18:51:58 box2 pptp[3148]: anon log[decaps_gre:pptp_gre.c:385]: accepting packet 1
Mar 27 18:51:58 box2 pptp[3148]: anon log[decaps_gre:pptp_gre.c:385]: accepting packet 2
Mar 27 18:51:58 box2 pptp[3148]: anon log[decaps_gre:pptp_gre.c:385]: accepting packet 3
Mar 27 18:51:58 box2 pptp[3148]: anon log[decaps_gre:pptp_gre.c:385]: accepting packet 4
Mar 27 18:51:58 box2 pppd[3161]: LCP terminated by peer (peer refused to authenticate)
Mar 27 18:51:58 box2 pptp[3160]: anon log[pptp_read_some:pptp_ctrl.c:525]: read returned
zero, peer has closed
Mar 27 18:51:58 box2 pptp[3160]: anon log[call_callback:pptp_callmgr.c:77]: Closing
connection
Mar 27 18:51:58 box2 pppd[3161]: Hangup (SIGHUP)
Mar 27 18:51:58 box2 pppd[3161]: Modem hangup
Mar 27 18:51:58 box2 pppd[3161]: Connection terminated.
Mar 27 18:51:58 box2 pppd[3146]: Modem hangup
Mar 27 18:51:58 box2 pppd[3146]: Connection terminated.
Mar 27 18:51:58 box2 pppd[3146]: Exit.
Mar 27 18:51:59 box2 pppd[3161]: Exit.