Привет.
настраиваю vpn соединение с помощью mpd
в конфиге mpd.conf
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 disable multilink
set bundle authname "mylogin"
set bundle password "mypass"
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
openв mpd.links
vpn:
set link type pptp
set pptp self 192.168.1.2
set pptp peer 72.36.xxx.xxx
set pptp enable originate incoming outcall
запускаю mpd
вроде все ok
.....
[vpn] IPCP: LayerUp
192.168.1.4 -> 192.168.0.1
[vpn] IFACE: Up event
[vpn] setting interface ng0 MTU to 1496 bytes
[vpn] exec: /sbin/ifconfig ng0 192.168.1.4 192.168.0.1 netmask 0xffffffff -link0
[vpn] exec: /sbin/route add 192.168.1.4 -iface lo0
[vpn] exec: /sbin/route add 0.0.0.0 192.168.0.1
[vpn] exec: command returned 256
[vpn] IFACE: Up event
#ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1496
inet 192.168.1.4 --> 192.168.0.1 netmask 0xffffffff
inet6 fe80::220:edff:fe51:9c26%ng0 prefixlen 64 scopeid 0x5
#netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGS 0 6612 fxp0
localhost localhost UH 0 4256 lo0
192.168.0.1 192.168.1.4 UH 0 0 ng0
192.168.1 link#2 UC 0 0 fxp0
192.168.1.1 00:0f:3d:f5:19:64 UHLW 1 0 fxp0 1177
Homo-Faber 00:20:ed:51:9c:26 UHLW 0 2 lo0
192.168.1.4 lo0 UHS 0 0 lo0
не понимаю как пустить трафик через VPN соединение. Что нужно сделать что бы все заработало через него.
Заранее благодарен.