Впн сервер используется один и тот же.
конфиги
/etc/ppp/options.ufanet
Код: Выделить всё
# Lock the port
lock
# We don't need the tunnel server to authenticate itself
noauth
persist
maxfail 0
nobsdcomp
nodeflate
# Ufanet specific parameters!
lcp-echo-failure 36
lcp-echo-interval 5
lcp-max-failure 0
nodefaultroute
Код: Выделить всё
name four
remotename four
pty "pptp 10.8.0.1 --nolaunchpppd"
# Include the main PPTP configuration file
file /etc/ppp/options.ufanet
далее:
Код: Выделить всё
kittyfuck# ./pppd call vpnlocal nodetach
Using interface ppp0
Connect: ppp0 <--> /dev/ttyp1
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Remote message: Welcome
local IP address 89.189.140.153
remote IP address 10.8.0.8
ppp0: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> metric 0 mtu 1460
inet 89.189.140.153 --> 10.8.0.8 netmask 0xff000000
Код: Выделить всё
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
10.8.0.1 10.226.132.65 UGHS 0 69484 nfe0
10.8.0.8 89.189.140.153 UH 0 0 ppp0
10.8.2.0/24 10.226.132.65 UGS 0 0 nfe0
10.8.3.0/24 10.226.132.65 UGS 0 61 nfe0
10.226.132.64/26 link#1 UC 0 0 nfe0
10.226.132.65 00:1c:f0:21:d2:7b UHLW 4 0 nfe0 135
127.0.0.1 127.0.0.1 UH 0 54 lo0
192.168.5.0/24 link#2 UC 0 0 rl0
192.168.5.5 00:80:48:3f:92:e0 UHLW 1 4713 rl0 765
192.168.5.111 00:18:de:7d:d2:bf UHLW 1 29993 rl0 1142
Код: Выделить всё
kittyfuck# ./pppd call vpnunlim nodetach
Using interface ppp1
Connect: ppp1 <--> /dev/ttyp3
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Remote message: Welcome
Couldn't set interface address: Address 94.41.40.60 already exists
local IP address 94.41.40.60
remote IP address 10.8.0.8
Код: Выделить всё
ppp0: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> metric 0 mtu 1460
inet 89.189.140.153 --> 10.8.0.8 netmask 0xff000000
ppp1: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> metric 0 mtu 1460
kittyfuck#
судя по всему, ему не нравится что до хоста 10.8.0.8 получается второй маршрут.
Как это разрулить? Может кто сталкивался с подобным?
ЗЫ. потом, есессно, надо будет настроить наттинг, который будет швырять пакеты по разным ифейсам.
FreeBSD 7.0 Release
если в процессе прерать первоподнятую впн, получим (на экране второй)
Код: Выделить всё
kittyfuck# ./pppd call vpnlocal nodetach
Using interface ppp0
Connect: ppp0 <--> /dev/ttyp3
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Remote message: Welcome
Couldn't set interface address: Address 77.79.172.128 already exists
local IP address 77.79.172.128
remote IP address 10.8.0.8
Modem hangup
Connection terminated.
Connect time 0.3 minutes.
Sent 382 bytes, received 379 bytes.
Using interface ppp1
Connect: ppp1 <--> /dev/ttyp1
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Remote message: Welcome
local IP address 92.50.186.76
remote IP address 10.8.0.8
есть идеи?