Здравствуйте. Настраиваю во внутренней сети vpn сервер (mandriva 2009), ip шлюз dns выдаются динамически провайдером. На моем сервере соединение с интернетом идет через vpn . На этом же сервере крутится squid. Подключение к моему vpn серверу vpn клиентом проходит без проблем, появляется интерфейс ppp1. Но при отключении на vpn сервере соединение с нетом ppp0 висит, но squid уже его не видит, инет через него на другие компы уже не раздается. Помогите, пожалуйста, разобраться с маршрутизацией. Вот таблицы маршрутизации до подключения клиентом, во время подключения и после отключения:
10.100.222.77 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
xxx.xxxx.xxx.xxx xxx.xxx.xxx.1 255.255.255.255 UGH 0 0 0 eth0
xxx.xxx.0.0 xxx.xxx.xxx.1 255.255.255.0 UG 0 0 0 eth0
xxx.xxx.xxx.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.0.0.0 xxx.xxx.xxx.1 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
192.168.0.25 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1
10.100.222.77 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
xxx.xxx.xxx.xxx xxx.xxx.xxx.1 255.255.255.255 UGH 0 0 0 eth0
xxx.xxx.0.0 xxx.xxx.xxx.1 255.255.255.0 UG 0 0 0 eth0
xxx.xxx.xxx.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.0.0.0 xxx.xxx.xxx.1 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
10.100.222.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
xxx.xxx.xxx.xxx xxx.xxx.xxx.1 255.255.255.255 UGH 0 0 0 eth0
xxx.xxx.0.0 10.52.32.1 255.255.255.0 UG 0 0 0 eth0
xxx.xxx.xxx.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.0.0.0 xxx.xxx.xxx.1 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 xxx.xxx.xxx.1 0.0.0.0 UG 0 0 0 eth0
Вот конфиги:
pptpd.conf
option /etc/ppp/options.pptpd
debug
logwtmp
localip 192.168.0.1
remoteip 192.168.0.25-30
options.pptpd:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
proxyarp
nodeflate
nodefaultroute
debug
dump
lock
nobsdcomp
novj
novjccom
nologfd
chap-secrets:
12345 * 12345 *
/etc/ppp/peers/provider (это конфиг подключения к vpn провайдера)
pty "pptp xxx.xxx.xxx --nolaunchpppd"
remotename pptp
user "xxx"
password "xxx"
lock
unit 0
usepeerdns
nodeflate
nobsdcomp
noauth
persist
maxfail 10
defaultroute