Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  4 Apr 2005 19:07:02 -0400
From:      Walentyn <Walentyn@gorsk.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD mpd PPTP client connection to SnapGearLITE+
Message-ID:  <1112656022.4251c896e7046@w2b.bigimap.com>
In-Reply-To: <200504041014.00115.doconnor@gsoft.com.au>
References:  <1112572809.42508389e0170@w2b.bigimap.com> <200504041014.00115.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Daniel O'Connor <doconnor@gsoft.com.au>:

>
> I've done Windows -> FreeBSD PopTop server without any big issues.
>

So have I, but I'm going from FreeBSD client to SnapGearLITE UCLinux PopTop
server appliance

> It would be helpful if you supplied log files and configs to download
> somewhere.
>

(Please see below.)

> PS PPTP encryption sucks, use openvpn or IPSec :)
>

Unfortunately, have no choice in the matter.

> --
> Daniel O'Connor software and network engineer
> for Genesis Software - http://www.gsoft.com.au
> "The nice thing about standards is that there
> are so many of them to choose from."
>   -- Andrew Tanenbaum
> GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
>

Thank you!

--
Walentyn

--------------------------------------------------
# cat /usr/local/etc/mpd/mpd.conf
#
default:
        load vpn

vpn:
        new -i ng0 vpn vpn
        set iface disable on-demand
        set iface enable proxy-arp
        set bundle disable multilink
        set bundle authname "[remote username]"
        set bundle password "[password]"
        set link yes acfcomp protocomp
        set link mtu 1400
####    set link mru 1400
        set link no pap chap
        set link enable chap
        set link keep-alive 60 180
        set ipcp yes vjcomp
        set bundle enable compression
        set ccp yes mppc
        set ccp yes mpp-e40
####        set ccp no mpp-e40
        set ccp yes mpp-e128
        set ccp yes mpp-stateless
        set bundle yes crypt-reqd
        open
--------------------------------------------------
# cat /usr/local/etc/mpd/mpd.links
#
vpn:
        set link type pptp
        set pptp self [FBSD client IP]
        set pptp peer [SGL server IP]
        set pptp enable originate outcall
        set pptp disable incoming
--------------------------------------------------
Console output:

# mpd
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 12394, version 3.18 (root@freebsd.org 08:48 21-Mar-2005)
[vpn] ppp node is "mpd12394-vpn"
[vpn] using interface ng0
[vpn] IFACE: Open event
[vpn] IPCP: Open event
[vpn] IPCP: state change Initial --> Starting
[vpn] IPCP: LayerStart
[vpn:vpn] [vpn] bundle: OPEN event in state CLOSED
[vpn] opening link "vpn"...
[vpn] link: OPEN event
[vpn] LCP: Open event
[vpn] LCP: state change Initial --> Starting
[vpn] LCP: LayerStart
[vpn] device: OPEN event in state DOWN
pptp0: connecting to [SGL server IP]:1723
[vpn] device is now in state OPENING
pptp0: connected to [SGL server IP]:1723
pptp0: attached to connection with [SGL server IP]:1723
pptp0-0: outgoing call connected at 64000 bps
[vpn] PPTP call successful
[vpn] device: UP event in state OPENING
[vpn] device is now in state UP
[vpn] link: UP event
[vpn] link: origination is local
[vpn] LCP: Up event
[vpn] LCP: state change Starting --> Req-Sent
[vpn] LCP: phase shift DEAD --> ESTABLISH
[vpn] LCP: SendConfigReq #1
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #2
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #3
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #4
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #5
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #6
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #7
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #8
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #9
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigReq #10
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 1dcbdb30
 AUTHPROTO CHAP MSOFTv2
[vpn] LCP: state change Req-Sent --> Stopped
[vpn] LCP: LayerFinish
[vpn] LCP: parameter negotiation failed
[vpn] LCP: LayerFinish
[vpn] device: CLOSE event in state UP
pptp0-0: clearing call
[vpn] device is now in state CLOSING
[vpn] device: CLOSE event in state CLOSING
[vpn] device is now in state CLOSING
[vpn] device: DOWN event in state CLOSING
[vpn] device is now in state DOWN
[vpn] link: DOWN event
[vpn] LCP: Down event
[vpn] LCP: state change Stopped --> Starting
[vpn] LCP: phase shift ESTABLISH --> DEAD
[vpn] LCP: LayerStart
[vpn] device: OPEN event in state DOWN
[vpn] pausing 9 seconds before open
[vpn] device is now in state DOWN
[vpn] device: OPEN event in state DOWN
[vpn] device is now in state DOWN
pptp0-0: peer call disconnected res=disconnect request err=none
pptp0-0: killing channel
pptp0: closing connection with [SGL server IP]:1723
pptp0: killing connection with [SGL server IP]:1723
[vpn] device: OPEN event in state DOWN
--------------------------------------------------
SnapGearLITE corresponding log entries:

Apr 04 22:48:32 pptpd[10188]: CTRL: Client [FBSD client IP] control connection
started

Apr 04 22:48:32 pptpd[10188]: CTRL: Starting call (launching pppd, opening GRE)
Apr 04 22:48:32 pptpd[10188]: CTRL: Allocating pty/tty pair
Apr 04 22:48:32 pptpd[10188]: CTRL: Allocated pty/tty pair
(/dev/ptyp1,/dev/ttyp1)

Apr 04 22:48:33 pppd[10189]: pppd 2.3.8 started by (unknown), uid 0
Apr 04 22:48:33 pppd[10189]: Using interface ppp2
Apr 04 22:48:33 pppd[10189]: pppd create pidfile
Apr 04 22:48:33 pppd[10189]: Connect: ppp2 <--> /dev/ttyp1
Apr 04 22:48:33 pppd[10189]: Will not do PAP for user PoPToP
Apr 04 22:48:33 pppd[10189]: Will not do CHAP for user PoPToP
Apr 04 22:48:33 pptpd[10188]: GRE: Discarding duplicate packet
Apr 04 22:48:33 pptpd[10188]: CTRL: EOF or bad error reading ctrl packet length.
Apr 04 22:48:33 pptpd[10188]: CTRL: couldn't read packet header (exit)
Apr 04 22:48:33 pptpd[10188]: CTRL: CTRL read failed
Apr 04 22:48:33 pptpd[10188]: CTRL: Client [FBSD client IP] control connection
finished
Apr 04 22:48:33 pppd[10189]: Modem hangup
Apr 04 22:48:33 pppd[10189]: Connection terminated.
Apr 04 22:48:33 pppd[10189]: Exit.
--------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1112656022.4251c896e7046>