>[оверквотинг удален]
> set auth password PASSWORD
> set link keep-alive 60 180
> set link accept chap
> set link no pap
> set link max-redial 0
> set bundle disable multilink
> set bundle disable crypt-reqd
> set bundle disable noretry
> set ipcp no vjcomp
> open если засада в дхцп ,что мешает выставить статический адрес .
вот мои настройки пров билайн - бывшая корбина . freebsd 8.1 mpd 5.5
rc.conf
defaultrouter="10.87.16.1"
ifconfig_rl1="DHCP"
mpd.conf с натом
startup:
set user webtest qwerty
set console self 127.0.0.1 5005
set console open
set web self 127.0.0.1 5006
set web close
default:
load vpn-l2tp
vpn-l2tp:
create bundle static L2TP
set iface enable nat
set nat enable log
set nat enable same-ports
set bundle enable ipcp
set bundle disable multilink
set iface idle 0
set iface enable tcpmssfix
set iface up-script /usr/local/etc/mpd5/io-up-l2tp.sh
set iface down-script /usr/local/etc/mpd5/io-down-l2tp.sh
set ipcp no vjcomp
create link static L2 l2tp
set link action bundle L2TP
set link accept chap-md5
set link latency 0
set link max-redial 0
set link mtu 1460
set link keep-alive 10 60
set l2tp peer 78.107.1.255 <-- куда
set auth authname *******
set auth password *******
open
io-up-l2tp.sh
#!/bin/sh
LocalGW=`GW`
route delete $4
route add $4 10.87.16.1
route delete default
route add default $4
route add 10.0.0.0/8 10.87.16.1 пиринг
route add 85.21.79.0/24 10.87.16.1 пиринг
route add 85.21.90.0/24 10.87.16.1 пиринг
io-down-l2tp.sh
#!/bin/sh
LocalGW=`GW`
dr=`cat /tmp/dr`
route delete $dr
route delete default
route add default 10.87.16.1
rm -f /tmp/dr