From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 20:14:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B08BF106566B for ; Wed, 31 Aug 2011 20:14:47 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.freebsd.org (Postfix) with ESMTP id EA3788FC12 for ; Wed, 31 Aug 2011 20:14:46 +0000 (UTC) Received: from yokozuna.lan (a80-101-78-208.adsl.xs4all.nl [80.101.78.208]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id p7VKEERv010805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Aug 2011 22:14:14 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan (yokozuna.lan [IPv6:::1]) by yokozuna.lan (8.14.4/8.14.4) with ESMTP id p7VKEEOi010383; Wed, 31 Aug 2011 22:14:14 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Date: Wed, 31 Aug 2011 22:14:14 +0200 (CEST) From: Marco Beishuizen To: Mike Tancsa In-Reply-To: <4E5E8A93.1010006@sentex.net> Message-ID: References: <4E5E8A93.1010006@sentex.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: vpn using pptpclient in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marco Beishuizen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 20:14:47 -0000 On Wed, 31 Aug 2011, the wise Mike Tancsa wrote: > use mpd5 from the ports. It is well supported and works very well both > as a client and server. > > There is a sample config in the mpd.conf.example where all you need to > do is change the userid and passwd and server IP... > > pptp_client: > # > # PPTP client: only outgoing calls, auto reconnect, > # ipcp-negotiated address, one-sided authentication, > # default route points on ISP's end > # > > create bundle static B1 > set iface route default > set ipcp ranges 0.0.0.0/0 0.0.0.0/0 > > create link static L1 pptp > set link action bundle B1 > set auth authname MyLogin > set auth password MyPass > set link max-redial 0 > set link mtu 1460 > set link keep-alive 20 75 > set pptp peer 1.2.3.4 > set pptp disable windowing > open I used the mpd.conf above but mpd5 doesn't work either. It looks like it makes a connection but I don't have a vpn connection and it didn't log in. I do get a lot of output though: ... process 9290 started, version 5.5 (root@yokozuna.lan 17:08 30-Jul-2011) CONSOLE: listening on 127.0.0.1 5005 web: listening on 0.0.0.0 5006 [B1] Bundle: Interface ng0 created [L1] [L1] Link: OPEN event [L1] LCP: Open event [L1] LCP: state change Initial --> Starting [L1] LCP: LayerStart [L1] PPTP call successful [L1] Link: UP event [L1] LCP: Up event [L1] LCP: state change Starting --> Req-Sent [L1] LCP: SendConfigReq #1 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 1b3bd364 [L1] LCP: SendConfigReq #2 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 1b3bd364 [L1] LCP: rec'd Configure Reject #2 (Req-Sent) [L1] ACFCOMP [L1] PROTOCOMP [L1] LCP: SendConfigReq #3 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 1b3bd364 [L1] LCP: rec'd Configure Nak #3 (Req-Sent) [L1] ACCMAP 0x000a0000 [L1] LCP: SendConfigReq #4 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 1b3bd364 [L1] LCP: rec'd Configure Ack #4 (Req-Sent) [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 1b3bd364 [L1] LCP: state change Req-Sent --> Ack-Rcvd [L1] LCP: rec'd Configure Request #1 (Ack-Rcvd) [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: SendConfigAck #1 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: state change Ack-Rcvd --> Opened [L1] LCP: auth: peer wants CHAP, I want nothing [L1] LCP: LayerUp [L1] CHAP: rec'd CHALLENGE #1 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #1 len: 69 [L1] CHAP: rec'd CHALLENGE #2 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #2 len: 69 [L1] CHAP: rec'd SUCCESS #2 len: 46 [L1] MESG: S=6FF41EBC586F72996FE28623516DEB70E57D6B5D [L1] LCP: authorization successful [L1] Link: Matched action 'bundle "B1" ""' [L1] Link: Join bundle "B1" [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps [B1] IPCP: Open event [B1] IPCP: state change Initial --> Starting [B1] IPCP: LayerStart [B1] IPCP: Up event [B1] IPCP: state change Starting --> Req-Sent [B1] IPCP: SendConfigReq #1 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Request #0 (Req-Sent) [B1] IPADDR 130.115.3.34 [B1] 130.115.3.34 is OK [B1] IPCP: SendConfigAck #0 [B1] IPADDR 130.115.3.34 [B1] IPCP: state change Req-Sent --> Ack-Sent [L1] rec'd unexpected protocol CCP, rejecting [B1] IPCP: SendConfigReq #2 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Reject #2 (Ack-Sent) [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: SendConfigReq #3 [B1] IPADDR 0.0.0.0 [B1] IPCP: rec'd Configure Nak #3 (Ack-Sent) [B1] IPADDR 130.115.77.13 [B1] 130.115.77.13 is OK [B1] IPCP: SendConfigReq #4 [B1] IPADDR 130.115.77.13 [B1] IPCP: rec'd Configure Ack #4 (Ack-Sent) [B1] IPADDR 130.115.77.13 [B1] IPCP: state change Ack-Sent --> Opened [B1] IPCP: LayerUp [B1] 130.115.77.13 -> 130.115.3.34 [B1] IFACE: Add route 0.0.0.0/0 130.115.3.34 failed: File exists [B1] IFACE: Up event [L1] LCP: no reply to 1 echo request(s) [L1] PPTP call terminated [L1] Link: DOWN event [L1] LCP: Down event [L1] LCP: state change Opened --> Starting [L1] Link: Leave bundle "B1" [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps [B1] IPCP: Close event [B1] IPCP: state change Opened --> Closing [B1] IPCP: SendTerminateReq #5 [B1] IPCP: LayerDown [B1] IFACE: Down event [B1] IPCP: Down event [B1] IPCP: LayerFinish [B1] Bundle: No NCPs left. Closing links... [B1] IPCP: state change Closing --> Initial [L1] LCP: LayerDown [L1] Link: reconnection attempt 1 in 4 seconds [L1] Link: reconnection attempt 1 [L1] PPTP call successful [L1] Link: UP event [L1] LCP: Up event [L1] LCP: state change Starting --> Req-Sent [L1] LCP: SendConfigReq #5 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM e39245f6 [L1] LCP: rec'd Configure Request #0 (Req-Sent) [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: SendConfigAck #0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: state change Req-Sent --> Ack-Sent [L1] LCP: SendConfigReq #6 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM e39245f6 [L1] LCP: rec'd Configure Reject #6 (Ack-Sent) [L1] ACFCOMP [L1] PROTOCOMP [L1] LCP: SendConfigReq #7 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM e39245f6 [L1] LCP: rec'd Configure Nak #7 (Ack-Sent) [L1] ACCMAP 0x000a0000 [L1] LCP: SendConfigReq #8 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM e39245f6 [L1] LCP: rec'd Configure Ack #8 (Ack-Sent) [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM e39245f6 [L1] LCP: state change Ack-Sent --> Opened [L1] LCP: auth: peer wants CHAP, I want nothing [L1] LCP: LayerUp [L1] CHAP: rec'd CHALLENGE #1 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #1 len: 69 [L1] CHAP: rec'd CHALLENGE #2 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #2 len: 69 [L1] CHAP: rec'd SUCCESS #2 len: 46 [L1] MESG: S=47BE961BBC6125AF22312007C50FE01CFA34A4BF [L1] LCP: authorization successful [L1] Link: Matched action 'bundle "B1" ""' [L1] Link: Join bundle "B1" [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps [B1] IPCP: Open event [B1] IPCP: state change Initial --> Starting [B1] IPCP: LayerStart [B1] IPCP: Up event [B1] IPCP: state change Starting --> Req-Sent [B1] IPCP: SendConfigReq #6 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Request #0 (Req-Sent) [B1] IPADDR 130.115.3.34 [B1] 130.115.3.34 is OK [B1] IPCP: SendConfigAck #0 [B1] IPADDR 130.115.3.34 [B1] IPCP: state change Req-Sent --> Ack-Sent [L1] rec'd unexpected protocol CCP, rejecting [B1] IPCP: SendConfigReq #7 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Reject #7 (Ack-Sent) [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: SendConfigReq #8 [B1] IPADDR 0.0.0.0 [B1] IPCP: rec'd Configure Nak #8 (Ack-Sent) [B1] IPADDR 130.115.77.18 [B1] 130.115.77.18 is OK [B1] IPCP: SendConfigReq #9 [B1] IPADDR 130.115.77.18 [B1] IPCP: rec'd Configure Ack #9 (Ack-Sent) [B1] IPADDR 130.115.77.18 [B1] IPCP: state change Ack-Sent --> Opened [B1] IPCP: LayerUp [B1] 130.115.77.18 -> 130.115.3.34 [B1] IFACE: Add route 0.0.0.0/0 130.115.3.34 failed: File exists [B1] IFACE: Up event [L1] LCP: no reply to 1 echo request(s) [L1] PPTP call terminated [L1] Link: DOWN event [L1] LCP: Down event [L1] LCP: state change Opened --> Starting [L1] Link: Leave bundle "B1" [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps [B1] IPCP: Close event [B1] IPCP: state change Opened --> Closing [B1] IPCP: SendTerminateReq #10 [B1] IPCP: LayerDown [B1] IFACE: Down event [B1] IPCP: Down event [B1] IPCP: LayerFinish [B1] Bundle: No NCPs left. Closing links... [B1] IPCP: state change Closing --> Initial [L1] LCP: LayerDown [L1] Link: reconnection attempt 1 in 1 seconds [L1] Link: reconnection attempt 1 [L1] PPTP call failed [L1] Link: DOWN event [L1] LCP: Down event [L1] Link: reconnection attempt 2 in 1 seconds [L1] Link: reconnection attempt 2 [L1] PPTP call successful [L1] Link: UP event [L1] LCP: Up event [L1] LCP: state change Starting --> Req-Sent [L1] LCP: SendConfigReq #9 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM af501566 [L1] LCP: rec'd Configure Request #0 (Req-Sent) [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: SendConfigAck #0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: state change Req-Sent --> Ack-Sent [L1] LCP: SendConfigReq #10 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM af501566 [L1] LCP: rec'd Configure Reject #10 (Ack-Sent) [L1] ACFCOMP [L1] PROTOCOMP [L1] LCP: SendConfigReq #11 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM af501566 [L1] LCP: rec'd Configure Nak #11 (Ack-Sent) [L1] ACCMAP 0x000a0000 [L1] LCP: SendConfigReq #12 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM af501566 [L1] LCP: rec'd Configure Ack #12 (Ack-Sent) [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM af501566 [L1] LCP: state change Ack-Sent --> Opened [L1] LCP: auth: peer wants CHAP, I want nothing [L1] LCP: LayerUp [L1] CHAP: rec'd CHALLENGE #1 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #1 len: 69 [L1] CHAP: rec'd CHALLENGE #2 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #2 len: 69 [L1] CHAP: rec'd SUCCESS #2 len: 46 [L1] MESG: S=FE6CC5E2918F95A0F85296345B2AB78823E3DB4D [L1] LCP: authorization successful [L1] Link: Matched action 'bundle "B1" ""' [L1] Link: Join bundle "B1" [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps [B1] IPCP: Open event [B1] IPCP: state change Initial --> Starting [B1] IPCP: LayerStart [B1] IPCP: Up event [B1] IPCP: state change Starting --> Req-Sent [B1] IPCP: SendConfigReq #11 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Request #0 (Req-Sent) [B1] IPADDR 130.115.3.34 [B1] 130.115.3.34 is OK [B1] IPCP: SendConfigAck #0 [B1] IPADDR 130.115.3.34 [B1] IPCP: state change Req-Sent --> Ack-Sent [L1] rec'd unexpected protocol CCP, rejecting [B1] IPCP: SendConfigReq #12 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Reject #12 (Ack-Sent) [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: SendConfigReq #13 [B1] IPADDR 0.0.0.0 [B1] IPCP: rec'd Configure Nak #13 (Ack-Sent) [B1] IPADDR 130.115.77.18 [B1] 130.115.77.18 is OK [B1] IPCP: SendConfigReq #14 [B1] IPADDR 130.115.77.18 [B1] IPCP: rec'd Configure Ack #14 (Ack-Sent) [B1] IPADDR 130.115.77.18 [B1] IPCP: state change Ack-Sent --> Opened [B1] IPCP: LayerUp [B1] 130.115.77.18 -> 130.115.3.34 [B1] IFACE: Add route 0.0.0.0/0 130.115.3.34 failed: File exists [B1] IFACE: Up event [L1] LCP: no reply to 1 echo request(s) [L1] PPTP call terminated [L1] Link: DOWN event [L1] LCP: Down event [L1] LCP: state change Opened --> Starting [L1] Link: Leave bundle "B1" [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps [B1] IPCP: Close event [B1] IPCP: state change Opened --> Closing [B1] IPCP: SendTerminateReq #15 [B1] IPCP: LayerDown [B1] IFACE: Down event [B1] IPCP: Down event [B1] IPCP: LayerFinish [B1] Bundle: No NCPs left. Closing links... [B1] IPCP: state change Closing --> Initial [L1] LCP: LayerDown [L1] Link: reconnection attempt 1 in 2 seconds [L1] Link: reconnection attempt 1 [L1] PPTP call failed [L1] Link: DOWN event [L1] LCP: Down event [L1] Link: reconnection attempt 2 in 4 seconds [L1] Link: reconnection attempt 2 [L1] PPTP call successful [L1] Link: UP event [L1] LCP: Up event [L1] LCP: state change Starting --> Req-Sent [L1] LCP: SendConfigReq #13 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 43e2ed8a [L1] LCP: rec'd Configure Request #0 (Req-Sent) [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: SendConfigAck #0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: state change Req-Sent --> Ack-Sent [L1] LCP: SendConfigReq #14 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 43e2ed8a [L1] LCP: rec'd Configure Reject #14 (Ack-Sent) [L1] ACFCOMP [L1] PROTOCOMP [L1] LCP: SendConfigReq #15 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 43e2ed8a [L1] LCP: rec'd Configure Nak #15 (Ack-Sent) [L1] ACCMAP 0x000a0000 [L1] LCP: SendConfigReq #16 [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 43e2ed8a [L1] LCP: rec'd Configure Ack #16 (Ack-Sent) [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 43e2ed8a [L1] LCP: state change Ack-Sent --> Opened [L1] LCP: auth: peer wants CHAP, I want nothing [L1] LCP: LayerUp [L1] CHAP: rec'd CHALLENGE #1 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #1 len: 69 [L1] CHAP: rec'd CHALLENGE #2 len: 21 [L1] Name: "" [L1] CHAP: Using authname "xxxxxxxxxxxxxxxxx" [L1] CHAP: sending RESPONSE #2 len: 69 [L1] CHAP: rec'd SUCCESS #2 len: 46 [L1] MESG: S=D598FC6A729F31EDC963B80A83490DBB525D69F6 [L1] LCP: authorization successful [L1] Link: Matched action 'bundle "B1" ""' [L1] Link: Join bundle "B1" [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps [B1] IPCP: Open event [B1] IPCP: state change Initial --> Starting [B1] IPCP: LayerStart [B1] IPCP: Up event [B1] IPCP: state change Starting --> Req-Sent [B1] IPCP: SendConfigReq #16 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Request #0 (Req-Sent) [B1] IPADDR 130.115.3.34 [B1] 130.115.3.34 is OK [B1] IPCP: SendConfigAck #0 [B1] IPADDR 130.115.3.34 [B1] IPCP: state change Req-Sent --> Ack-Sent [L1] rec'd unexpected protocol CCP, rejecting [B1] IPCP: SendConfigReq #17 [B1] IPADDR 0.0.0.0 [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: rec'd Configure Reject #17 (Ack-Sent) [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid [B1] IPCP: SendConfigReq #18 [B1] IPADDR 0.0.0.0 [B1] IPCP: rec'd Configure Nak #18 (Ack-Sent) [B1] IPADDR 130.115.77.18 [B1] 130.115.77.18 is OK [B1] IPCP: SendConfigReq #19 [B1] IPADDR 130.115.77.18 [B1] IPCP: rec'd Configure Ack #19 (Ack-Sent) [B1] IPADDR 130.115.77.18 [B1] IPCP: state change Ack-Sent --> Opened [B1] IPCP: LayerUp [B1] 130.115.77.18 -> 130.115.3.34 [B1] IFACE: Add route 0.0.0.0/0 130.115.3.34 failed: File exists [B1] IFACE: Up event ... Regards, Marco -- There was a mad scientist (a mad... social... scientist) who kidnapped three colleagues, an engineer, a physicist, and a mathematician, and locked each of them in separate cells with plenty of canned food and water but no can opener. A month later, returning, the mad scientist went to the engineer's cell and found it long empty. The engineer had constructed a can opener from pocket trash, used aluminum shavings and dried sugar to make an explosive, and escaped. The physicist had worked out the angle necessary to knock the lids off the tin cans by throwing them against the wall. She was developing a good pitching arm and a new quantum theory. The mathematician had stacked the unopened cans into a surprising solution to the kissing problem; his desiccated corpse was propped calmly against a wall, and this was inscribed on the floor: Theorem: If I can't open these cans, I'll die. Proof: assume the opposite...