All pastes #674139 Raw Edit

Someone

public text v1 · immutable
#674139 ·published 2007-08-28 23:12 UTC
rendered paste body
ifconfig
""""""""
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=b<RXCSUM,TXCSUM,VLAN_MTU>
	inet 192.168.49.154 netmask 0xffffff00 broadcast 192.168.49.255
	ether 00:23:81:21:22:34
	media: Ethernet autoselect (100baseTX <full-duplex,flag0,flag1>)
	status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet 127.0.0.1 netmask 0xff000000 
ng0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1496
	inet 192.168.101.55 --> 192.168.101.1 netmask 0xffffffff 



mpd.conf
""""""""
default:
        load vpn

vpn:
        new -i ng0 vpn vpn
        set iface disable on-demand
        set iface addrs 192.168.1.1 192.168.2.1
        set iface idle 0
        set iface route default
        set bundle authname "aaa"
        set bundle password "bbb"
        set link yes acfcomp protocomp
        set link disable chap pap
        set link accept chap pap
#       set link no pap
#       set link yes chap
# If remote machine is NT you need this..
        set link enable no-orig-auth
        set link keep-alive 10 75
        set ipcp yes vjcomp
        set ipcp ranges 0.0.0.0/0 0.0.0.0/0
#
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
#
        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
        set iface enable tcpmssfix
        set bundle disable multilink
        set pptp disable windowing
        open


mpd.links
"""""""""
vpn:
        set link type pptp
#        set pptp self 192.168.49.xxx
        set pptp peer 192.168.26.14
        set pptp enable originate incoming outcall

netstat -r
""""""""""
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.49.254     UGS         0    19745    sk0
localhost          localhost          UH          0        2    lo0
192.168.49         link#1             UC          0        0    sk0
192.168.49.xxx     00:23:81:21:22:34  UHLW        1      100    lo0
192.168.49.254     00:02:b3:65:c1:29  UHLW        2        0    sk0   1187
192.168.101.1      192.168.101.55     UH          0        0    ng0
192.168.101.55     lo0                UHS         0        0    lo0

ping 87.250.251.8 (ya.ru)
"""""""""""""""""""""""""
PING 87.250.251.8 (87.250.251.8): 56 data bytes
92 bytes from 192.168.49.254: Destination Net Unreachable
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 4d21   0 0000  40  01 e842 192.168.49.154  87.250.251.8 

92 bytes from 192.168.49.254: Destination Net Unreachable
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 4d26   0 0000  40  01 e83d 192.168.49.154  87.250.251.8 

92 bytes from 192.168.49.254: Destination Net Unreachable
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 4d2b   0 0000  40  01 e838 192.168.49.154  87.250.251.8 


--- 87.250.251.8 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss


mpd_log
"""""""
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 1428, version 3.18 (root@server 20:26 28-Aug-2007)
[vpn] ppp node is "mpd1428-vpn"
mpd: local IP address for PPTP is 0.0.0.0
[vpn] using interface ng0
[vpn] IPCP: peer address cannot be zero
[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 192.168.26.14:1723
[vpn] device is now in state OPENING
pptp0: connected to 192.168.26.14:1723
pptp0: attached to connection with 192.168.26.14: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 312387a4
[vpn] LCP: rec'd Configure Request #1 link 0 (Req-Sent)
 ACCMAP 0x00000000
 AUTHPROTO CHAP MSOFTv2
 MAGICNUM 2eb1091c
 PROTOCOMP
 ACFCOMP
[vpn] LCP: SendConfigAck #1
 ACCMAP 0x00000000
 AUTHPROTO CHAP MSOFTv2
 MAGICNUM 2eb1091c
 PROTOCOMP
 ACFCOMP
[vpn] LCP: state change Req-Sent --> Ack-Sent
[vpn] LCP: rec'd Configure Ack #1 link 0 (Ack-Sent)
 ACFCOMP
 PROTOCOMP
 MRU 1500
 MAGICNUM 312387a4
[vpn] LCP: state change Ack-Sent --> Opened
[vpn] LCP: phase shift ESTABLISH --> AUTHENTICATE
[vpn] LCP: auth: peer wants CHAP, I want nothing
[vpn] LCP: LayerUp
[vpn] CHAP: rec'd CHALLENGE #230
 Name: "bbddf"
 Using authname "asdf"
[vpn] CHAP: sending RESPONSE
[vpn] CHAP: rec'd SUCCESS #230
 MESG: S=1243424123413412341241234124334
[vpn] LCP: authorization successful
[vpn] LCP: phase shift AUTHENTICATE --> NETWORK
[vpn] setting interface ng0 MTU to 1500 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 0.0.0.0
 COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] CCP: Open event
[vpn] CCP: state change Initial --> Starting
[vpn] CCP: LayerStart
[vpn] CCP: Up event
[vpn] CCP: state change Starting --> Req-Sent
[vpn] CCP: SendConfigReq #1
[vpn] CCP: Checking whether 40 bits are enabled -> yes
[vpn] CCP: Checking whether 56 bits are enabled -> no
[vpn] CCP: Checking whether 128 bits are enabled -> yes
 MPPC
   0x01000060: MPPE, 40 bit, 128 bit, stateless
[vpn] CCP: rec'd Configure Request #1 link 0 (Req-Sent)
 MPPC
   0x010000e0: MPPE, 40 bit, 56 bit, 128 bit, stateless
[vpn] CCP: Checking whether 40 bits are acceptable -> yes
[vpn] CCP: Checking whether 56 bits are acceptable -> no
[vpn] CCP: Checking whether 128 bits are acceptable -> yes
[vpn] CCP: SendConfigNak #1
 MPPC
   0x01000040: MPPE, 128 bit, stateless
[vpn] IPCP: rec'd Terminate Ack #1 link 0 (Req-Sent)
[vpn] CCP: rec'd Configure Nak #1 link 0 (Req-Sent)
 MPPC
   0x01000040: MPPE, 128 bit, stateless
[vpn] CCP: SendConfigReq #2
[vpn] CCP: Checking whether 40 bits are enabled -> no
[vpn] CCP: Checking whether 56 bits are enabled -> no
[vpn] CCP: Checking whether 128 bits are enabled -> yes
 MPPC
   0x01000040: MPPE, 128 bit, stateless
[vpn] CCP: rec'd Configure Request #2 link 0 (Req-Sent)
 MPPC
   0x01000040: MPPE, 128 bit, stateless
[vpn] CCP: Checking whether 128 bits are acceptable -> yes
[vpn] CCP: SendConfigAck #2
 MPPC
   0x01000040: MPPE, 128 bit, stateless
[vpn] CCP: state change Req-Sent --> Ack-Sent
[vpn] CCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
 MPPC
   0x01000040: MPPE, 128 bit, stateless
[vpn] CCP: state change Ack-Sent --> Opened
[vpn] CCP: LayerUp
  Compress using: MPPE, 128 bit, stateless
Decompress using: MPPE, 128 bit, stateless
[vpn] setting interface ng0 MTU to 1496 bytes
[vpn] IPCP: rec'd Configure Request #1 link 0 (Req-Sent)
 COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
 IPADDR 192.168.101.1
   192.168.101.1 is OK
[vpn] IPCP: SendConfigAck #1
 COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
 IPADDR 192.168.101.1
[vpn] IPCP: state change Req-Sent --> Ack-Sent
[vpn] IPCP: SendConfigReq #2
 IPADDR 0.0.0.0
 COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: rec'd Configure Nak #2 link 0 (Ack-Sent)
 IPADDR 192.168.101.62
   192.168.101.62 is OK
[vpn] IPCP: SendConfigReq #3
 IPADDR 192.168.101.62
 COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: rec'd Configure Ack #3 link 0 (Ack-Sent)
 IPADDR 192.168.101.62
 COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: state change Ack-Sent --> Opened
[vpn] IPCP: LayerUp
  192.168.101.62 -> 192.168.101.1
[vpn] IFACE: Up event
[vpn] setting interface ng0 MTU to 1496 bytes
[vpn] exec: /sbin/ifconfig ng0 192.168.101.62 192.168.101.1 netmask 0xffffffff -link0
[vpn] exec: /sbin/route add 192.168.101.62 -iface lo0
[vpn] exec: /sbin/route add 0.0.0.0 192.168.101.1
[vpn] exec: command returned 256
[vpn] IFACE: Up event
mpd: 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.101.62 -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 1428 terminated