>>тот же эффект
>
>покажите нанешний лог при подключении и вывод netstat -rn до после и
>ifconfig после mpd.conf
create bundle static B1
set iface up-script /usr/local/etc/mpd5/if-up.sh
set iface down-script /urs/local/etc/mpd5/if-down.sh
create link static L1 pptp
set link action bundle B1
set auth authname LOGIN
set auth password PASSW
set link max-redial 0
set link mtu 1460
set link keep-alive 20 75
set pptp peer 91.196.244.250
set pptp disable windowing
open
Apr 4 05:05:50 bsd_desktop mpd: Multi-link PPP daemon for FreeBSD
Apr 4 05:05:50 bsd_desktop mpd:
Apr 4 05:05:50 bsd_desktop mpd: process 1074 started, version 5.1 (root@freebsd.org 18:20 9-Sep-2008)
Apr 4 05:05:50 bsd_desktop mpd: CONSOLE: listening on 127.0.0.1 5005
Apr 4 05:05:50 bsd_desktop mpd: web: listening on 0.0.0.0 5006
Apr 4 05:05:50 bsd_desktop mpd: [B1] Bundle: Interface ng0 created
Apr 4 05:05:50 bsd_desktop mpd: [L1] Link: OPEN event
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: Open event
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: state change Initial --> Starting
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: LayerStart
Apr 4 05:05:50 bsd_desktop mpd: [L1] PPTP call successful
Apr 4 05:05:50 bsd_desktop mpd: [L1] Link: UP event
Apr 4 05:05:50 bsd_desktop mpd: [L1] Link: origination is local
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: Up event
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: state change Starting --> Req-Sent
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: SendConfigReq #1
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACFCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] PROTOCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACCMAP 0x000a0000
Apr 4 05:05:50 bsd_desktop mpd: [L1] MRU 1500
Apr 4 05:05:50 bsd_desktop mpd: [L1] MAGICNUM 850dec58
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: rec'd Configure Request #1 (Req-Sent)
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACFCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] PROTOCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACCMAP 0xffffffff
Apr 4 05:05:50 bsd_desktop mpd: [L1] MRU 1500
Apr 4 05:05:50 bsd_desktop mpd: [L1] MAGICNUM a51ed07c
Apr 4 05:05:50 bsd_desktop mpd: [L1] AUTHPROTO CHAP MD5
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: SendConfigAck #1
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACFCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] PROTOCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACCMAP 0xffffffff
Apr 4 05:05:50 bsd_desktop mpd: [L1] MRU 1500
Apr 4 05:05:50 bsd_desktop mpd: [L1] MAGICNUM a51ed07c
Apr 4 05:05:50 bsd_desktop mpd: [L1] AUTHPROTO CHAP MD5
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: state change Req-Sent --> Ack-Sent
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: rec'd Configure Ack #1 (Ack-Sent)
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACFCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] PROTOCOMP
Apr 4 05:05:50 bsd_desktop mpd: [L1] ACCMAP 0x000a0000
Apr 4 05:05:50 bsd_desktop mpd: [L1] MRU 1500
Apr 4 05:05:50 bsd_desktop mpd: [L1] MAGICNUM 850dec58
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: state change Ack-Sent --> Opened
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: auth: peer wants CHAP, I want nothing
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: LayerUp
Apr 4 05:05:50 bsd_desktop mpd: [L1] CHAP: rec'd CHALLENGE #1 len: 24
Apr 4 05:05:50 bsd_desktop mpd: [L1] Name: ""
Apr 4 05:05:50 bsd_desktop mpd: [L1] CHAP: Using authname "sid2"
Apr 4 05:05:50 bsd_desktop mpd: [L1] CHAP: sending RESPONSE #1 len: 25
Apr 4 05:05:50 bsd_desktop mpd: [L1] CHAP: rec'd SUCCESS #1 len: 13
Apr 4 05:05:50 bsd_desktop mpd: [L1] MESG: Welcome!!
Apr 4 05:05:50 bsd_desktop mpd: [L1] LCP: authorization successful
Apr 4 05:05:50 bsd_desktop mpd: [L1] Link: Matched action 'bundle "B1" ""'
Apr 4 05:05:50 bsd_desktop mpd: [L1] Link: Join bundle "B1"
Apr 4 05:05:50 bsd_desktop mpd: [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: Open event
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: state change Initial --> Starting
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: LayerStart
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: Up event
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: state change Starting --> Req-Sent
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: SendConfigReq #1
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 10.10.16.81
Apr 4 05:05:50 bsd_desktop mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Apr 4 05:05:50 bsd_desktop mpd: [L1] rec'd unexpected protocol CCP, rejecting
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: rec'd Configure Request #1 (Req-Sent)
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 82.137.137.228
Apr 4 05:05:50 bsd_desktop mpd: [B1] 82.137.137.228 is OK
Apr 4 05:05:50 bsd_desktop mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: SendConfigAck #1
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 82.137.137.228
Apr 4 05:05:50 bsd_desktop mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: state change Req-Sent --> Ack-Sent
Apr 4 05:05:50 bsd_desktop mpd: [L1] rec'd unexpected protocol IPV6CP, rejecting
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: rec'd Configure Reject #1 (Ack-Sent)
Apr 4 05:05:50 bsd_desktop mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: SendConfigReq #2
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 10.10.16.81
Apr 4 05:05:50 bsd_desktop mpd: [L1] rec'd unexpected protocol IPV6CP, rejecting
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: rec'd Configure Nak #2 (Ack-Sent)
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 195.149.202.168
Apr 4 05:05:50 bsd_desktop mpd: [B1] 195.149.202.168 is OK
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: SendConfigReq #3
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 195.149.202.168
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: rec'd Configure Ack #3 (Ack-Sent)
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPADDR 195.149.202.168
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: state change Ack-Sent --> Opened
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: LayerUp
Apr 4 05:05:50 bsd_desktop mpd: [B1] 195.149.202.168 -> 82.137.137.228
Apr 4 05:05:50 bsd_desktop mpd: [B1] IFACE: Adding IPv4 address to ng0 failed: File exists
Apr 4 05:05:50 bsd_desktop mpd: [B1] IFACE: Up event
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: rec'd Terminate Request #2 (Opened)
Apr 4 05:05:50 bsd_desktop mpd: [B1] 195.149.202.168 -> 82.137.137.228
Apr 4 05:05:50 bsd_desktop mpd: [B1] IFACE: Adding IPv4 address to ng0 failed: File exists
Apr 4 05:05:50 bsd_desktop mpd: [B1] IFACE: Up event
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: rec'd Terminate Request #2 (Opened)
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: state change Opened --> Stopping
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: SendTerminateAck #4
Apr 4 05:05:50 bsd_desktop mpd: [B1] IPCP: LayerDown
Apr 4 05:05:50 bsd_desktop mpd: [B1] IFACE: Removing IPv4 address from ng0 failed: Can't assign requested address
Apr 4 05:05:50 bsd_desktop mpd: [B1] IFACE: Down event
до:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.10.0.1 UGS 0 239 re0
10.10.0.0/17 link#1 UC 0 0 re0
10.10.0.1 00:13:46:3d:d5:64 UHLW 3 4 re0 1200
10.10.16.84 00:00:0a:0a:10:54 UHLW 1 2098 re0 750
10.10.17.14 00:00:0a:0a:11:0e UHLW 1 3 re0 721
82.137.137.228 10.10.0.1 UGHS 0 0 re0
127.0.0.1 127.0.0.1 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UHL lo0
fe80::%lo0/64 fe80::1%lo0 U lo0
fe80::1%lo0 link#3 UHL lo0
ff01:3::/32 fe80::1%lo0 UC lo0
ff02::%lo0/32 fe80::1%lo0 UC lo0
после:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.10.0.1 UGS 0 212 re0
10.10.0.0/17 link#1 UC 0 0 re0
10.10.0.1 00:13:46:3d:d5:64 UHLW 3 4 re0 1199
10.10.16.84 00:00:0a:0a:10:54 UHLW 1 2053 re0 790
10.10.17.14 00:00:0a:0a:11:0e UHLW 1 3 re0 761
82.137.137.228 10.10.0.1 UGHS 0 0 re0
127.0.0.1 127.0.0.1 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UHL lo0
fe80::%lo0/64 fe80::1%lo0 U lo0
fe80::1%lo0 link#3 UHL lo0
ff01:3::/32 fe80::1%lo0 UC lo0
ff02::%lo0/32 fe80::1%lo0 UC lo0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether 00:00:0a:0a:10:51
inet 10.10.16.81 netmask 0xffff8000 broadcast 10.10.127.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
ng0: flags=8890<POINTOPOINT,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
202.168 - мой внешний ip
netgraph подключен
# grep NETGRAPH /usr/src/sys/conf/NOTES
options NETGRAPH
options NETGRAPH_PPP
options NETGRAPH_PPTPGRE