URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID15
Нить номер: 255
[ Назад ]

Исходное сообщение
"настройка mpd (подключение к инету через vpn в локалке)"

Отправлено user , 22-Апр-06 18:31 
замусоленная тема :) но всё равно туплю..

В винде ipconfig /all
Ethernet adapter Local Area Connection:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethernet NIC
        Physical Address. . . . . . . . . : 00-11-2F-99-A4-47
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.56.97
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.56.2
PPP adapter naranet:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 172.16.4.142
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 172.16.4.142
        DNS Servers . . . . . . . . . . . : 212.5.66.14
                                            195.128.64.3

Адрес Vpn сервера 192.168.0.1
на закладке security - security options - typical reуquire
data encryption отключена

Во фре, установил mpd-3.18_2 из портов

mpd.conf
default:
    load vpn

vpn:

new -i ng0 vpn vpn
set iface disable on-demand
set link no acfcomp protocomp
set iface idle 0
set iface disable proxy-arp
set bundle disable multilink
set bundle authname USER
set link accept pap chap
set link disable pap chap
set ipcp yes vjcomp
open iface

mpd.links
vpn:
set link type pptp
set pptp peer 192.168.0.1
set pptp disable incoming outcoming
set pptp enable originate


запускаю mpd
test# mpd
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 888, version 3.18 (root@freebsd.org 02:13 12-Oct-2005)
[vpn] ppp node is "mpd888-vpn"
mpd: option "outcoming" unknown
[vpn] using interface ng0
mpd: warning: line too long, truncated
[vpn] IFACE: Open event
[vpn] IPCP: Open event
[vpn] IPCP: state change Initial --> Starting
[vpn] IPCP: LayerStart
[vpn:vpn] [vpn] bundle: OPEN event in state CLOSED
[vpn] opening link "vpn"...
[vpn] link: OPEN event
[vpn] LCP: Open event
[vpn] LCP: state change Initial --> Starting
[vpn] LCP: LayerStart
[vpn] device: OPEN event in state DOWN
pptp0: connecting to 192.168.0.1:1723
[vpn] device is now in state OPENING
pptp0: connected to 192.168.0.1:1723
pptp0: attached to connection with 192.168.0.1:1723
pptp0-0: outgoing call connected at 64000 bps
[vpn] PPTP call successful
[vpn] device: UP event in state OPENING
[vpn] device is now in state UP
[vpn] link: UP event
[vpn] link: origination is local
[vpn] LCP: Up event
[vpn] LCP: state change Starting --> Req-Sent
[vpn] LCP: phase shift DEAD --> ESTABLISH
[vpn] LCP: SendConfigReq #1
MRU 1500
MAGICNUM b7f03490
[vpn] LCP: rec'd Configure Request #1 link 0 (Req-Sent)
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 536f827d
AUTHPROTO CHAP MD5
[vpn] LCP: SendConfigRej #1
ACFCOMP
PROTOCOMP
[vpn] LCP: rec'd Configure Request #2 link 0 (Req-Sent)
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 536f827d
AUTHPROTO CHAP MD5
[vpn] LCP: SendConfigAck #2
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 536f827d
AUTHPROTO CHAP MD5
[vpn] LCP: state change Req-Sent --> Ack-Sent
[vpn] LCP: SendConfigReq #2
MRU 1500
MAGICNUM b7f03490
[vpn] LCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
MRU 1500
MAGICNUM b7f03490
[vpn] LCP: state change Ack-Sent --> Opened
[vpn] LCP: phase shift ESTABLISH --> AUTHENTICATE
[vpn] LCP: auth: peer wants CHAP, I want nothing
[vpn] LCP: LayerUp
[vpn] CHAP: rec'd CHALLENGE #1
Name: ""
Using authname "USER"
mpd: warning: line too long, truncated
[vpn] CHAP: sending RESPONSE
[vpn] CHAP: rec'd SUCCESS #1
MESG: Welcome!!
[vpn] LCP: authorization successful
[vpn] LCP: phase shift AUTHENTICATE --> NETWORK
[vpn] setting interface ng0 MTU to 1500 bytes
[vpn] up: 1 link, total bandwidth 64000 bps
[vpn] IPCP: Up event
[vpn] IPCP: state change Starting --> Req-Sent
[vpn] IPCP: SendConfigReq #1
IPADDR 192.168.56.97
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] rec'd unexpected protocol CCP on link 0, rejecting
[vpn] IPCP: rec'd Configure Request #1 link 0 (Req-Sent)
IPADDR 172.16.254.1
172.16.254.1 is OK
COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
[vpn] IPCP: SendConfigAck #1
IPADDR 172.16.254.1
COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
[vpn] IPCP: state change Req-Sent --> Ack-Sent
[vpn] rec'd unexpected protocol 0x8057 on link 0, rejecting
[vpn] IPCP: rec'd Configure Nak #1 link 0 (Ack-Sent)
IPADDR 172.16.4.142
172.16.4.142 is OK
[vpn] IPCP: SendConfigReq #2
IPADDR 172.16.4.142
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] rec'd unexpected protocol 0x8057 on link 0, rejecting
[vpn] IPCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
IPADDR 172.16.4.142
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: state change Ack-Sent --> Opened
[vpn] IPCP: LayerUp
172.16.4.142 -> 172.16.254.1
[vpn] IFACE: Up event
[vpn] setting interface ng0 MTU to 1500 bytes
[vpn] exec: /sbin/ifconfig ng0 172.16.4.142 172.16.254.1 netmask 0xffffffff -lin
k0
[vpn] exec: /sbin/route add 172.16.4.142 -iface lo0
[vpn] IFACE: Up event
[vpn] rec'd unexpected protocol 0x8057 on link 0, rejecting
[vpn] rec'd unexpected protocol 0x8057 on link 0, rejecting
[vpn] rec'd unexpected protocol 0x8057 on link 0, rejecting
[vpn] rec'd unexpected protocol 0x8057 on link 0, rejecting


и собственно всё, интерфейс  ng0 появляется, но инета нет



Содержание

Сообщения в этом обсуждении
"настройка mpd (подключение к инету через vpn в локалке)"
Отправлено он же , 23-Апр-06 00:13 
всё, разобрался..

запутался в route add  :))