Код: Выделить всё
# uname -a
FreeBSD vagus 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Tue Jan 6 00:06:00 OMST 2009 root@vagus:/usr/
obj/usr/src/sys/VAGUS i386
Код: Выделить всё
ping www.ya.ru
ping: cannot resolve ...: Host name lookup failure

rc.conf
Код: Выделить всё
ifconfig_nfe0="inet 10.1.53.9 netmask 255.255.255.0"
static_routes="vpndns vpnserver"
route_vpndns="-net 10.1.0.98 10.1.53.254"
route_vpnserver="-net 192.168.255.254 10.1.53.254"
Код: Выделить всё
nameserver 10.1.0.98
nameserver 10.1.0.100
Код: Выделить всё
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:11:d8:31:b9:1e
inet 10.1.53.9 netmask 0xffffff00 broadcast 10.1.53.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=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
inet 82.200.3.4 --> 82.200.1.2 netmask 0xffffffff
Код: Выделить всё
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 82.200.60.65 UGS 0 12 ng0
10.0.0.0/8 10.1.53.254 UGS 0 120 nfe0
10.1.53.0/24 link#1 UC 0 0 nfe0
10.1.53.12 00:1d:92:33:72:71 UHLW 1 3 nfe0 1073
10.1.53.254 00:13:60:5f:d5:fb UHLW 3 0 nfe0 1174
82.200.1.2 82.200.3.4 UH 1 0 ng0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.255.0/24 10.1.53.254 UGS 0 62 nfe0
Код: Выделить всё
startup:
default:
load pptp_client
pptp_client:
create bundle static B1
set iface route default
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
create link static L1 pptp
set link action bundle B1
set auth authname xxx
set auth password yyy
set link max-redial 0
set link mtu 1460
set link keep-alive 20 75
set pptp peer 192.168.255.254
set pptp disable windowing
open