Не работает VPN соединение. В чем проблема может быть?
[root@ziro terick]# pptp-command start
1.) nln
Start a tunnel to which server?: 1
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
EAP: Identity prompt "Name"
local IP address 10.0.146.37
remote IP address 172.16.0.1
primary DNS address 10.192.0.25
secondary DNS address 10.192.0.25
pptp-command: added route add default gw 10.192.15.1
pptp-command: added route add -host vpn.nln.ru gw 10.192.15.1
Tunnel nln is active on ppp0. Local IP Address: 10.0.146.37
Installed /etc/resolv.conf.pptp as /etc/resolv.conf
[root@ziro terick]# pptp-command stop
Installed /etc/resolv.conf.real as /etc/resolv.conf
после старта инет не работает и перестает работать сеть
pptp-command stop и сеть сново работает (чудеса)))
[root@ziro terick]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.1 * 255.255.255.255 UH 0 0 0 ppp0
217.197.112.3 10.192.15.1 255.255.255.255 UGH 0 0 0 eth0
10.192.15.0 * 255.255.255.0 U 10 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.192.15.1 0.0.0.0 UG 0 0 0 eth0
default 10.192.15.1 0.0.0.0 UG 10 0 0 eth0
настраиваю так
командная строка: pptp-command setup и жму Enter. Появиться меню:
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?:
Выбираю пункт 1. Появится меню:
1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
?:
Выбираю пункт 2.
Local Name: МОЙ_ЛОГИН
Remote Name [PPTP]: <Enter>
Password: МОЙ_ПАРОЛЬ
В главном меню выбираю пункт 4.
Add a NEW PPTP Tunnel.
1.) Other
Which configuration would you like to use?:
Выбираю1.
Tunnel Name: nln
Server IP: vpn.nln.ru
What route(s) would you like to add when the tunnel comes up?
This is usually a route to your internal network behind the PPTP server.
You can use TUNNEL_DEV and DEF_GW as in /etc/pptp.d/ config file
TUNNEL_DEV is replaced by the device of the tunnel interface.
DEF_GW is replaced by the existing default gateway.
The syntax to use is the same as the route( command.
Enter a blank line to stop.
route: add default gw 10.192.15.1
route: add -host vpn.nln.ru gw 10.192.15.1
route: <Enter>
Local Name and Remote Name should match a configured CHAP or PAP secret.
Local Name is probably your NT domain\username.
NOTE: Any backslashes (\) must be doubled (\\).
Local Name: МОЙ_ЛОГИН
Remote Name [PPTP]: <Enter>
З.Ы. поиском пользовался не помагло
Неправильно настроил VPN (Причина неработаспособности)
Модератор: Bizdelnick
-
oiraM
- Сообщения: 52
- ОС: mandriva
Re: Неправильно настроил VPN
напиши какой из IP чего значит, а то каша... и вывод route до установления vpn.
-
terick
- Сообщения: 19
Re: Неправильно настроил VPN
local IP address 10.0.146.37
remote IP address 172.16.0.1
primary DNS address 10.192.0.25
secondary DNS address 10.192.0.25
шлюз 10.192.15.1
route до старта vpn
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.192.15.0 * 255.255.255.0 U 10 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default core-192-15.int 0.0.0.0 UG 0 0 0 eth0
default core-192-15.int 0.0.0.0 UG 10 0 0 eth0
remote IP address 172.16.0.1
primary DNS address 10.192.0.25
secondary DNS address 10.192.0.25
шлюз 10.192.15.1
route до старта vpn
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.192.15.0 * 255.255.255.0 U 10 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default core-192-15.int 0.0.0.0 UG 0 0 0 eth0
default core-192-15.int 0.0.0.0 UG 10 0 0 eth0
-
oiraM
- Сообщения: 52
- ОС: mandriva
Re: Неправильно настроил VPN
> default core-192-15.int 0.0.0.0 UG 0 0 0 eth0
> default core-192-15.int 0.0.0.0 UG 10 0 0 eth0
странно как-то - два одинаковых df gw )
> route: add default gw 10.192.15.1
почему в качестве dg ставиться стандартный от эзернета ? если через впн должен идти инет то в качестве шлюза по умолчанию надо ставить шлюз впна, предварительно удалив текущий dg, т.к. pppd сам не умеет его удалять. Вообще советую не использовать эти "route:" из pptp-command, лучше, имхо, прописать всё скриптом в ip-up.d по аналогии с тем как сделано тут http://chelcom.ru/modules/smartsection/item.php?itemid=88
> default core-192-15.int 0.0.0.0 UG 10 0 0 eth0
странно как-то - два одинаковых df gw )
> route: add default gw 10.192.15.1
почему в качестве dg ставиться стандартный от эзернета ? если через впн должен идти инет то в качестве шлюза по умолчанию надо ставить шлюз впна, предварительно удалив текущий dg, т.к. pppd сам не умеет его удалять. Вообще советую не использовать эти "route:" из pptp-command, лучше, имхо, прописать всё скриптом в ip-up.d по аналогии с тем как сделано тут http://chelcom.ru/modules/smartsection/item.php?itemid=88