Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Общий по FreeBSD (http://forum.oszone.net/forumdisplay.php?f=10)
-   -   Проблема с настройкой маршрутов при поднятии vpn клиента (http://forum.oszone.net/showthread.php?t=100204)

vdweller 08-02-2008 12:31 735730

Проблема с настройкой маршрутов при поднятии vpn клиента
 
Добрый день!
Пытаюсь поднять vpn клиент на базе mpd. Соединение устанавливается нормально интерфейс ng0 поднимается, но пинги наружу не идут. Я думаю что неправильно настроены маршруты.

Вот таблица маршрутов после поднятия соединения (моих изменений нет, только те что делает mpd):
===================
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 89.249.48.6 UGS 0 26 ng0
89.249.48.6 89.249.54.64 UH 1 0 ng0
89.249.48.132 192.168.202.254 UGHS 0 521 fxp0
89.249.54.64 lo0 UHS 0 0 lo0
localhost.mogames localhost.mogames UH 0 26 lo0
192.168.202 link#1 UC 0 0 fxp0
192.168.202.18 00:80:48:30:ca:7a UHLW 1 2 fxp0 929
192.168.202.254 00:5a:3f:08:b4:ee UHLW 2 54 fxp0 900
===================

Здесь:
89.249.54.64 - ip который vpn выдает мне при коннекте
89.249.48.132 - ip адрес vpn сервера к которому идет коннект

во время коннекта появляется еще некий 89.249.48.6, который как я понял и служит окончательным vpn сервером.
192.168.202.254 - шлюз в локальной сети, через который доступны vpn сервера провайдера.
Мне не совсем понятно значение маршрута
89.249.48.6 89.249.54.64 UH 1 0 ng0

вот логи mpd

Feb 7 20:03:29 mogames mpd: mpd: pid 723, version 3.18 (root@mogames.ru 14:57 2-Feb-2008)
Feb 7 20:03:29 mogames mpd: [pptp1] ppp node is "mpd723-pptp1"
Feb 7 20:03:29 mogames mpd: [pptp1] using interface ng0
Feb 7 20:03:29 mogames mpd: [pptp1] IFACE: Open event
Feb 7 20:03:29 mogames mpd: [pptp1] IPCP: Open event
Feb 7 20:03:29 mogames mpd: [pptp1] IPCP: state change Initial --> Starting
Feb 7 20:03:29 mogames mpd: [pptp1] IPCP: LayerStart
Feb 7 20:03:29 mogames mpd: set pptp mode: unknown command. Try "help".
Feb 7 20:03:29 mogames mpd: [pptp1] bundle: OPEN event in state CLOSED
Feb 7 20:03:29 mogames mpd: [pptp1] opening link "pptp1"...
Feb 7 20:03:29 mogames mpd: [pptp1] link: OPEN event
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: Open event
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: state change Initial --> Starting
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: LayerStart
Feb 7 20:03:29 mogames mpd: [pptp1] device: OPEN event in state DOWN
Feb 7 20:03:29 mogames mpd: pptp0: connecting to 89.249.48.132:1723
Feb 7 20:03:29 mogames mpd: [pptp1] device is now in state OPENING
Feb 7 20:03:29 mogames mpd: pptp0: connected to 89.249.48.132:1723
Feb 7 20:03:29 mogames mpd: pptp0: attached to connection with 89.249.48.132:1723
Feb 7 20:03:29 mogames mpd: pptp0-0: outgoing call connected at 64000 bps
Feb 7 20:03:29 mogames mpd: [pptp1] PPTP call successful
Feb 7 20:03:29 mogames mpd: [pptp1] device: UP event in state OPENING
Feb 7 20:03:29 mogames mpd: [pptp1] device is now in state UP
Feb 7 20:03:29 mogames mpd: [pptp1] link: UP event
Feb 7 20:03:29 mogames mpd: [pptp1] link: origination is local
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: Up event
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: state change Starting --> Req-Sent
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: phase shift DEAD --> ESTABLISH
Feb 7 20:03:29 mogames mpd: [pptp1] LCP: SendConfigReq #1
Feb 7 20:03:29 mogames mpd: ACFCOMP
Feb 7 20:03:29 mogames mpd: PROTOCOMP
Feb 7 20:03:29 mogames mpd: MRU 1500
Feb 7 20:03:29 mogames mpd: MAGICNUM d4af1bdc
Feb 7 20:03:30 mogames mpd: [pptp1] LCP: rec'd Configure Request #1 link 0 (Req-Sent)
Feb 7 20:03:30 mogames mpd: ACFCOMP
Feb 7 20:03:30 mogames mpd: PROTOCOMP
Feb 7 20:03:30 mogames mpd: ACCMAP 0x00000000
Feb 7 20:03:30 mogames mpd: MRU 1500
Feb 7 20:03:30 mogames mpd: MAGICNUM 074fc473
Feb 7 20:03:30 mogames mpd: QUALPROTO
Feb 7 20:03:30 mogames mpd: Not supported
Feb 7 20:03:30 mogames mpd: AUTHPROTO CHAP MD5
Feb 7 20:03:30 mogames mpd: MP MRRU 1500
Feb 7 20:03:30 mogames mpd: MP SHORTSEQ
Feb 7 20:03:30 mogames mpd: [pptp1] LCP: SendConfigRej #1
Feb 7 20:03:30 mogames mpd: QUALPROTO
Feb 7 20:03:30 mogames mpd: MP MRRU 1500
Feb 7 20:03:30 mogames mpd: MP SHORTSEQ
Feb 7 20:03:30 mogames mpd: [pptp1] LCP: rec'd Ident #0 link 0 (Req-Sent)
Feb 7 20:03:30 mogames mpd: MESG: user-ppp 3.2 (built Aug 4 2005)
Feb 7 20:03:30 mogames mpd: [pptp1] LCP: rec'd Configure Request #2 link 0 (Req-Sent)
Feb 7 20:03:30 mogames mpd: ACFCOMP
Feb 7 20:03:30 mogames mpd: PROTOCOMP
Feb 7 20:03:30 mogames mpd: ACCMAP 0x00000000
Feb 7 20:03:30 mogames mpd: MRU 1500
Feb 7 20:03:30 mogames mpd: MAGICNUM 074fc473
Feb 7 20:03:30 mogames mpd: AUTHPROTO CHAP MD5
Feb 7 20:03:30 mogames mpd: [pptp1] LCP: SendConfigAck #2
Feb 7 20:03:30 mogames mpd: ACFCOMP
Feb 7 20:03:30 mogames mpd: PROTOCOMP
Feb 7 20:03:30 mogames mpd: ACCMAP 0x00000000
Feb 7 20:03:30 mogames mpd: MRU 1500
Feb 7 20:03:30 mogames mpd: MAGICNUM 074fc473
Feb 7 20:03:30 mogames mpd: AUTHPROTO CHAP MD5
Feb 7 20:03:30 mogames mpd: [pptp1] LCP: state change Req-Sent --> Ack-Sent
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: SendConfigReq #2
Feb 7 20:03:31 mogames mpd: ACFCOMP
Feb 7 20:03:31 mogames mpd: PROTOCOMP
Feb 7 20:03:31 mogames mpd: MRU 1500
Feb 7 20:03:31 mogames mpd: MAGICNUM d4af1bdc
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
Feb 7 20:03:31 mogames mpd: ACFCOMP
Feb 7 20:03:31 mogames mpd: PROTOCOMP
Feb 7 20:03:31 mogames mpd: MRU 1500
Feb 7 20:03:31 mogames mpd: MAGICNUM d4af1bdc
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: state change Ack-Sent --> Opened
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: phase shift ESTABLISH --> AUTHENTICATE
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: auth: peer wants CHAP, I want nothing
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: LayerUp
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: rec'd Ident #1 link 0 (Opened)
Feb 7 20:03:31 mogames mpd: MESG: user-ppp 3.2 (built Aug 4 2005)
Feb 7 20:03:31 mogames mpd: [pptp1] CHAP: rec'd CHALLENGE #1
Feb 7 20:03:31 mogames mpd: Name: ""
Feb 7 20:03:31 mogames mpd: Using authname "vpnteran"
Feb 7 20:03:31 mogames mpd: [pptp1] CHAP: sending RESPONSE
Feb 7 20:03:31 mogames mpd: [pptp1] CHAP: rec'd SUCCESS #1
Feb 7 20:03:31 mogames mpd: MESG: You have 61.57 rur.
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: authorization successful
Feb 7 20:03:31 mogames mpd: [pptp1] LCP: phase shift AUTHENTICATE --> NETWORK
Feb 7 20:03:31 mogames mpd: [pptp1] setting interface ng0 MTU to 1460 bytes
Feb 7 20:03:31 mogames mpd: [pptp1] up: 1 link, total bandwidth 64000 bps
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: Up event
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: state change Starting --> Req-Sent
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: SendConfigReq #1
Feb 7 20:03:31 mogames mpd: IPADDR 192.168.202.10
Feb 7 20:03:31 mogames mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 7 20:03:31 mogames mpd: PRIDNS 0.0.0.0
Feb 7 20:03:31 mogames mpd: SECDNS 0.0.0.0
Feb 7 20:03:31 mogames mpd: [pptp1] rec'd unexpected protocol CCP on link 0, rejecting
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: rec'd Configure Request #1 link 0 (Req-Sent)
Feb 7 20:03:31 mogames mpd: IPADDR 89.249.48.6
Feb 7 20:03:31 mogames mpd: 89.249.48.6 is OK
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: SendConfigAck #1
Feb 7 20:03:31 mogames mpd: IPADDR 89.249.48.6
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: state change Req-Sent --> Ack-Sent
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: rec'd Configure Nak #1 link 0 (Ack-Sent)
Feb 7 20:03:31 mogames mpd: IPADDR 89.249.54.64
Feb 7 20:03:31 mogames mpd: 89.249.54.64 is OK
Feb 7 20:03:31 mogames mpd: PRIDNS 89.248.48.158
Feb 7 20:03:31 mogames mpd: SECDNS 89.249.49.158
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: SendConfigReq #2
Feb 7 20:03:31 mogames mpd: IPADDR 89.249.54.64
Feb 7 20:03:31 mogames mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 7 20:03:31 mogames mpd: PRIDNS 89.248.48.158
Feb 7 20:03:31 mogames mpd: SECDNS 89.249.49.158
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
Feb 7 20:03:31 mogames mpd: IPADDR 89.249.54.64
Feb 7 20:03:31 mogames mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 7 20:03:31 mogames mpd: PRIDNS 89.248.48.158
Feb 7 20:03:31 mogames mpd: SECDNS 89.249.49.158
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: state change Ack-Sent --> Opened
Feb 7 20:03:31 mogames mpd: [pptp1] IPCP: LayerUp
Feb 7 20:03:31 mogames mpd: 89.249.54.64 -> 89.249.48.6
Feb 7 20:03:31 mogames mpd: [pptp1] IFACE: Up event
Feb 7 20:03:31 mogames mpd: [pptp1] setting interface ng0 MTU to 1460 bytes
Feb 7 20:03:31 mogames mpd: [pptp1] exec: /sbin/ifconfig ng0 89.249.54.64 89.249.48.6 netmask 0xffffffff -link0
Feb 7 20:03:31 mogames mpd: [pptp1] exec: /sbin/route add 89.249.54.64 -iface lo0
Feb 7 20:03:31 mogames mpd: [pptp1] exec: /sbin/route add 0.0.0.0 89.249.48.6
Feb 7 20:03:31 mogames mpd: [pptp1] IFACE: Up event
Feb 7 20:32:26 mogames mpd: [pptp1] LCP: no reply to 1 echo request(s)

конфиг mpd

default:
load pptp1
pptp1:
new pptp1 pptp1
load standart
standart:
set bundle authname "***"
set bundle password "***"
set bundle disable multilink
set iface route default
set iface enable tcpmssfix
set iface mtu 1460
set ipcp enable req-pri-dns
set ipcp enable req-sec-dns
open
set link type pptp
set link disable chap-md5
set link accept chap-md5
set pptp enable origin outcall
set pptp peer 89.249.48.132
set pptp self 192.168.202.10
set pptp disable incoming
set pptp mode active
set pptp enable always-ack


Время: 13:05.

Время: 13:05.
© OSzone.net 2001-