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

Исходное сообщение
"Помогите настроить PPTPClient для FreeBSD"

Отправлено DeMoX , 08-Ноя-05 16:27 
Необходимо подключить сервер FreeBSD к интернету через VPN. Для последующей раздачи компам организации через squid и NAT. Я вроде всё настроил правильно, но инте так и не работает, а процесс pptp, после запуска, через короткое время исчезает из активных.

Выкладываю ppp.conf:
____________________________________________________________________
#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
#################################################################

default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

# Ensure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
set device /dev/cuaa1

set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180            # 3 minute idle timer (the default)
enable dns                # request DNS info (for resolv.conf)


papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#

set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD

set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR            # Add a (sticky) default route

# Моё
vpn:
set authname *****
set authkey ******
set timeout 0
set ifaddr 0 0
add default HISADDR
alias enable yes

__________________________________________________________________________

А вот что он пишет в ppp.log:
__________________________________________________________________________
Nov  8 20:04:34 aldi ppp[194]: Phase: Using interface: tun0
Nov  8 20:04:34 aldi ppp[194]: Phase: deflink: Created in closed state
Nov  8 20:04:34 aldi ppp[194]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Nov  8 20:04:34 aldi ppp[194]: tun0: Command: default: set device /dev/cuaa1
Nov  8 20:04:34 aldi ppp[194]: tun0: Command: default: set speed 115200
Nov  8 20:04:34 aldi ppp[194]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5            "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Nov  8 20:04:34 aldi ppp[194]: tun0: Command: default: set timeout 180
Nov  8 20:04:34 aldi ppp[194]: tun0: Command: default: enable dns
Nov  8 20:04:34 aldi ppp[194]: tun0: Warning: Bad label in /etc/ppp/ppp.conf (line 41) - missing colon
Nov  8 20:04:34 aldi ppp[194]: tun0: Phase: PPP Started (direct mode).
Nov  8 20:04:34 aldi ppp[194]: tun0: Phase: bundle: Establish
Nov  8 20:04:34 aldi ppp[194]: tun0: Phase: deflink: closed -> opening
Nov  8 20:04:34 aldi ppp[194]: tun0: Phase: deflink: Connected!
Nov  8 20:04:34 aldi ppp[194]: tun0: Phase: deflink: opening -> carrier
Nov  8 20:04:35 aldi ppp[194]: tun0: Phase: deflink: carrier -> lcp
Nov  8 20:04:35 aldi ppp[194]: tun0: LCP: FSM: Using "deflink" as a transport
Nov  8 20:04:35 aldi ppp[194]: tun0: LCP: deflink: State change Initial --> Closed
Nov  8 20:04:35 aldi ppp[194]: tun0: LCP: deflink: State change Closed --> Stopped
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MRU[4] 1490
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACCMAP[6] 0x00000000
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MAGICNUM[6] 0x72ff3048
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  PROTOCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACFCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACFCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  PROTOCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACCMAP[6] 0x00000000
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MRU[4] 1500
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MAGICNUM[6] 0x874ac305
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: SendConfigAck(1) state = Stopped
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MRU[4] 1490
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACCMAP[6] 0x00000000
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MAGICNUM[6] 0x72ff3048
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  PROTOCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACFCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: LayerStart
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: State change Stopped --> Ack-Sent
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACFCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  PROTOCOMP[2]
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  ACCMAP[6] 0x00000000
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MRU[4] 1500
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MAGICNUM[6] 0x874ac305
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: LayerUp
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: SendIdent(0) state = Opened
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  MAGICNUM 874ac305
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP:  TEXT user-ppp 3.2 (built Jan 21 2005)
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: bundle: Authenticate
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from vpn1)
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: Chap Output: RESPONSE ()
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: RecvCodeRej(2) state = Opened
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: Chap Input: FAILURE (I don't like you.  Go 'way.)
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: LayerDown
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: SendTerminateReq(2) state = Opened
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: State change Opened --> Closing
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: RecvTerminateReq(3) state = Closing
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: SendTerminateAck(3) state = Closing
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: RecvTerminateAck(2) state = Closing
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: LayerFinish
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: State change Closing --> Closed
Nov  8 20:04:36 aldi ppp[194]: tun0: LCP: deflink: State change Closed --> Initial
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: deflink: Disconnected!
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: deflink: Connect time: 2 secs: 311 octets in, 229 octets out
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: deflink: 7 packets in, 6 packets out
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase:  total 270 bytes/sec, peak 0 bytes/sec on Tue Nov  8 20:04:34 2005
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: deflink: lcp -> closed
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: bundle: Dead
Nov  8 20:04:36 aldi ppp[194]: tun0: Phase: PPP Terminated (normal).
__________________________________________________________________________

Процесс PPTP запускаю коммандой:
pptp vpn.*****.net vpn

Подскажите в чём может быть дело?


Содержание

Сообщения в этом обсуждении
"Помогите настроить PPTPClient для FreeBSD"
Отправлено MoHaX , 09-Ноя-05 06:57 
А не парь себе мозг. Воткни mpd.

"Помогите настроить PPTPClient для FreeBSD"
Отправлено lenin , 11-Ноя-05 00:08 
Угу согласен mpd!
Работет как вол и каши есть не просит (т.к. на нетграфе, т.е. в ядре почти все)

Посмотри пример настройки, там все бодробно написано.
Траблы у mpd могут возникнуть только с MS серверами и клиентами, но и это уже выличили в последних версиях - опция tcpmsfix