есть сервер под линуксом на поптопе и у меня freebsd mpd-клиент.
вот что в конфиге:
default:
load vpn
#
# Example of a simple PPP dialup account using "usr" modem device.
# This will connect whenever there is outgoing demand, and hangup
# after a 15 minute idle time. It also connects and disconnects
# when signals SIGUSR1 and SIGUSR2 are received, respectively.
#
# Note the "set iface addrs ..." is needed because we're doing
# dial-on-demand and therefore can't wait for the peer to assign
# us IP addresses for the interface. These can be completely phoney
# IP addresses.
#
# We also enable the idle-script "Ringback", which means if we're
# not connected and we detect an incoming call, we don't answer it
# BUT we do initiate a call to the ISP to get connected. This is
# nice to connect yourself when you're away from home, etc.
#
vpn:
new -i ng0 vpn vpn
# Configure the interface: dial on demand, default route, idle timeout.
set iface disable on-demand
set iface addrs 10.0.0.76 10.0.0.1
set iface idle 0
set iface route default
# Configure the bundle account name.
set bundle disable multilink
set bundle authname "aagr"
set bundle password "artzoyd"
set link yes acfcomp protocomp
set link disable chap pap
set link accept chap pap
set link no pap
set link yes chap
# "Open" connection (but don't actually dial until there's demand)
# set bundle enable compression
# set ccp yes mppc
# set ccp yes mpp-e40
# set ccp yes mpp-e128
# set bundle enable crypt-reqd
# set ccp yes mpp-stateless
open
# set ipcp ranges 192.168.1.1/32 192.168.1.50/32
# set ipcp dns 192.168.1.3
# set ipcp nbns 192.168.1.4
# set iface route 192.168.2.0/24
когда я раскомментариваю строчки с компрессией, он говорит что одна из сторон ее не поддерживает. 10.0.0.1-ip сервера 10.0.0.76- мой ip.
aagr# mpd
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 650, version 3.13 (root@freebsd.org 15:26 23-May-2003)
[vpn] ppp node is "mpd650-vpn"
mpd: warning: line too long, truncated
mpd: local IP address for PPTP is 10.0.0.76
[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 10.0.0.1:1723
[vpn] device is now in state OPENING
pptp0: connected to 10.0.0.1:1723
pptp0: attached to connection with 10.0.0.1: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 abc6101c
AUTHPROTO CHAP MSOFTv2
[vpn] LCP: rec'd Configure Request #1 link 0 (Req-Sent)
MRU 1490
ACCMAP 0x00000000
AUTHPROTO CHAP MD5
MAGICNUM 077011bc
PROTOCOMP
ACFCOMP
[vpn] LCP: SendConfigAck #1
MRU 1490
ACCMAP 0x00000000
AUTHPROTO CHAP MD5
MAGICNUM 077011bc
PROTOCOMP
ACFCOMP
[vpn] LCP: state change Req-Sent --> Ack-Sent
[vpn] LCP: SendConfigReq #2
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM abc6101c
AUTHPROTO CHAP MSOFTv2
[vpn] LCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM abc6101c
AUTHPROTO CHAP MSOFTv2
[vpn] LCP: state change Ack-Sent --> Opened
[vpn] LCP: phase shift ESTABLISH --> AUTHENTICATE
[vpn] LCP: auth: peer wants CHAP, I want CHAP
[vpn] CHAP: sending CHALLENGE
[vpn] LCP: LayerUp
[vpn] CHAP: rec'd CHALLENGE #1
Name: "fileserver"
Using authname "aagr"
[vpn] CHAP: sending RESPONSE
[vpn] CHAP: rec'd RESPONSE #1
Name: "fileserver"
Peer name: "fileserver"
Response is valid
[vpn] CHAP: sending SUCCESS
[vpn] CHAP: rec'd SUCCESS #1
MESG: Welcome to fileserver.
[vpn] LCP: authorization successful
[vpn] LCP: phase shift AUTHENTICATE --> NETWORK
[vpn] setting interface ng0 MTU to 1490 bytes
[vpn] up: 1 link, total bandwidth 64000 bps
[vpn] IPCP: Up event
[vpn] IPCP: state change Starting --> Req-Sent
[vpn] IPCP: SendConfigReq #1
IPADDR 10.0.0.76
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] rec'd unexpected protocol CCP on link 0, rejecting
[vpn] IPCP: rec'd Configure Request #1 link 0 (Req-Sent)
COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
IPADDR 192.168.200.2
192.168.200.2 is OK
[vpn] IPCP: SendConfigAck #1
COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
IPADDR 192.168.200.2
[vpn] IPCP: state change Req-Sent --> Ack-Sent
[vpn] IPCP: rec'd Configure Nak #1 link 0 (Ack-Sent)
IPADDR 192.168.200.3
192.168.200.3 is OK
[vpn] IPCP: SendConfigReq #2
IPADDR 192.168.200.3
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
IPADDR 192.168.200.3
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: state change Ack-Sent --> Opened
[vpn] IPCP: LayerUp
192.168.200.3 -> 192.168.200.2
[vpn] IFACE: Up event
[vpn] setting interface ng0 MTU to 1490 bytes
[vpn] exec: /sbin/ifconfig ng0 192.168.200.3 192.168.200.2 netmask 0xffffffff -link0
[vpn] exec: /sbin/route add 192.168.200.3 -iface lo0
[vpn] exec: /sbin/route add 0.0.0.0 192.168.200.2
[vpn] exec: command returned 256
[vpn] IFACE: Up event
^Cmpd: caught fatal signal int
mpd: fatal error, exiting
[vpn] IPCP: Down event
[vpn] IPCP: state change Opened --> Starting
[vpn] IPCP: LayerDown
[vpn] IFACE: Down event
[vpn] exec: /sbin/route delete 192.168.200.3 -iface lo0
[vpn] exec: /sbin/ifconfig ng0 down delete -link0
[vpn] IFACE: Close event
[vpn] IPCP: Close event
[vpn] IPCP: state change Starting --> Initial
[vpn] IPCP: LayerFinish
mpd: process 650 terminated