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

Исходное сообщение
"pptpclient опять ..."

Отправлено andreo , 30-Дек-08 22:35 
Приветсвую всех.
Free BSD 7 pptp 1.72

Скорее всего ни кто таким не пользуется pptpclient от Free BSD
но я решил поробовать ибо 2 ppoe подключения на нем ...

имеются 2 ppooe соединения
хочу поднять vpn тунель до сервера в инете


ppp.conf
vpn:
set device "!pptp 81.25.167.30 --nolaunchpppd"
set authname andrew
set authkey ***
# set timeout 0
# set ifaddr 0 0
# add default HISADDR
set server /var/run/ppp/loop "" 0177
# set timeout 3600
# set reconnect 120 0
# enable lqr
disable mppe
# add default HISADDR


7o# ppp -quiet -ddial -unit2 vpn
Loading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
Warning: Local: bind: Address already in use
Warning: set server: Failed 2

7o#ifconfig
tun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
        Opened by PID 86543

собственно вот что он вываливает
Dec 30 22:04:00 7o ppp[77874]: Phase: Using interface: tun2
Dec 30 22:04:00 7o ppp[77874]: Phase: deflink: Created in closed state
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: set device PPPoE:vr0
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: set dial
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: set login
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: set mru 1492
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: set mtu 1492
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: set speed sync
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: default: disable ipv6cp
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: vpn: set device !pptp 81.25.167.30 --nolaunchpppd
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: vpn: set authname andrew
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: vpn: set authkey ********
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: vpn: set server /var/run/ppp/loop ******** 0177
Dec 30 22:04:00 7o ppp[77874]: tun2: Warning: Local: bind: Address already in use
Dec 30 22:04:00 7o ppp[77874]: tun2: Warning: set server: Failed 2
Dec 30 22:04:00 7o ppp[77874]: tun2: Command: vpn: disable mppe
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: PPP Started (ddial mode).
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: bundle: Establish
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: deflink: closed -> opening
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: deflink: Connected!
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: deflink: opening -> dial
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: deflink: dial -> carrier
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: deflink: carrier -> login
Dec 30 22:04:00 7o ppp[77875]: tun2: Phase: deflink: login -> lcp
Dec 30 22:04:01 7o ppp[77875]: tun2: Phase: Unknown protocol 0x7eff (unrecognised protocol)
Dec 30 22:04:03 7o last message repeated 12 times
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: read (0): Connection reset by peer
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: Disconnected!
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: lcp -> logout
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: Disconnected!
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: logout -> hangup
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: Connect time: 4 secs: 692 octets in, 794 octets out
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: 15 packets in, 15 packets out
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase:  total 371 bytes/sec, peak 296 bytes/sec on Tue Dec 30 22:04:04 2008
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: HUPing 77877
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: hangup -> opening
Dec 30 22:04:04 7o ppp[77875]: tun2: Phase: deflink: Enter pause (3) for redialing.
Dec 30 22:04:07 7o ppp[77875]: tun2: Phase: deflink: Connected!
Dec 30 22:04:07 7o ppp[77875]: tun2: Phase: deflink: opening -> dial
Dec 30 22:04:07 7o ppp[77875]: tun2: Phase: deflink: dial -> carrier
Dec 30 22:04:07 7o ppp[77875]: tun2: Phase: deflink: carrier -> login
Dec 30 22:04:07 7o ppp[77875]: tun2: Phase: deflink: login -> lcp
Dec 30 22:04:08 7o ppp[77875]: tun2: Phase: Unknown protocol 0x7eff (unrecognised protocol)
Dec 30 22:04:10 7o last message repeated 12 times
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: read (0): Connection reset by peer
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: Disconnected!
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: lcp -> logout
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: Disconnected!
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: logout -> hangup
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: Connect time: 4 secs: 696 octets in, 798 octets out
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase: deflink: 30 packets in, 30 packets out
Dec 30 22:04:11 7o ppp[77875]: tun2: Phase:  total 373 bytes/sec, peak 298 bytes/sec on Tue Dec 30 22:04:11 2008

Покапал форум
у всех обычно шаттаские проблемы
такого не было ни у кого
как понимаю все упирается в Warning: Local: bind: Address already in use

вот логи с сервака ...
Dec 30 22:32:09 inet mpd: [L-1] Accepting PPTP connection
Dec 30 22:32:09 inet mpd: [L-1] link: OPEN event
Dec 30 22:32:09 inet mpd: [L-1] LCP: Open event
Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Initial --> Starting
Dec 30 22:32:09 inet mpd: [L-1] LCP: LayerStart
Dec 30 22:32:09 inet mpd: [L-1] PPTP: attaching to peer's outgoing call
Dec 30 22:32:09 inet mpd: [L-1] link: UP event
Dec 30 22:32:09 inet mpd: [L-1] link: origination is remote
Dec 30 22:32:09 inet mpd: [L-1] LCP: Up event
Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Starting --> Req-Sent
Dec 30 22:32:09 inet mpd: [L-1] LCP: SendConfigReq #1
Dec 30 22:32:09 inet mpd:  ACFCOMP
Dec 30 22:32:09 inet mpd:  PROTOCOMP
Dec 30 22:32:09 inet mpd:  MRU 1500
Dec 30 22:32:09 inet mpd:  MAGICNUM 727a7c12
Dec 30 22:32:09 inet mpd:  AUTHPROTO CHAP MSOFTv2
Dec 30 22:32:09 inet mpd:  MP MRRU 1600
Dec 30 22:32:09 inet mpd:  ENDPOINTDISC [802.1] 00 c0 26 2e a8 98
Dec 30 22:32:09 inet mpd: [L-1] LCP: rec'd Configure Request #1 (Req-Sent)
Dec 30 22:32:09 inet mpd:  MRU 1492
Dec 30 22:32:09 inet mpd:  MAGICNUM 3fb4338f
Dec 30 22:32:09 inet mpd: [L-1] LCP: SendConfigAck #1
Dec 30 22:32:09 inet mpd:  MRU 1492
Dec 30 22:32:09 inet mpd:  MAGICNUM 3fb4338f
Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Req-Sent --> Ack-Sent
Dec 30 22:32:09 inet mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
Dec 30 22:32:09 inet mpd:  ACFCOMP
Dec 30 22:32:09 inet mpd:  PROTOCOMP
Dec 30 22:32:09 inet mpd:  MRU 1500
Dec 30 22:32:09 inet mpd:  MAGICNUM 727a7c12
Dec 30 22:32:09 inet mpd:    Same magic! Detected loopback condition
Dec 30 22:32:09 inet mpd:  AUTHPROTO CHAP MSOFTv2
Dec 30 22:32:09 inet mpd:  MP MRRU 1600
Dec 30 22:32:09 inet mpd:  ENDPOINTDISC [802.1] 00 c0 26 2e a8 98
Dec 30 22:32:09 inet mpd: [L-1] LCP: SendConfigNak #1
Dec 30 22:32:09 inet mpd:  MAGICNUM 8d8583ed
Dec 30 22:32:09 inet mpd:  AUTHPROTO EAP
Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Ack-Sent --> Req-Sent
Dec 30 22:32:09 inet mpd: [L-1] LCP: runt packet: 2 bytes
Dec 30 22:32:09 inet mpd: [L-1] LCP: rec'd Configure Ack #1 (Req-Sent)
Dec 30 22:32:09 inet mpd:  MRU 1492
Dec 30 22:32:09 inet mpd:  MAGICNUM 3fb4338f
Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Req-Sent --> Ack-Rcvd


помогите пожалуйста разобраться ...


Содержание

Сообщения в этом обсуждении
"pptpclient опять ..."
Отправлено marat , 05-Янв-09 09:22 
>[оверквотинг удален]
>Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Ack-Sent --> Req-Sent
>Dec 30 22:32:09 inet mpd: [L-1] LCP: runt packet: 2 bytes
>Dec 30 22:32:09 inet mpd: [L-1] LCP: rec'd Configure Ack #1 (Req-Sent)
>
>Dec 30 22:32:09 inet mpd:  MRU 1492
>Dec 30 22:32:09 inet mpd:  MAGICNUM 3fb4338f
>Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Req-Sent --> Ack-Rcvd
>
>
>помогите пожалуйста разобраться ...

Привет!
СТавь mpd5 он стабильнее и производительнее.
Могу дать рабочий конфиг.


"pptpclient опять ..."
Отправлено yurchello , 08-Янв-09 10:35 
vpn:
set device "!pptp 81.25.167.30 --nolaunchpppd"
set authname andrew
set authkey ***
# set timeout 0
# set ifaddr 0 0
# add default HISADDR
set server /var/run/ppp/loop "" 0177
# set timeout 3600
# set reconnect 120 0
# enable lqr
disable mppe
# add default HISADDR

Доброго времени суток... Говорю сразу - начинающий только - по этому к Вам сам с вопросом... disable mppe - что делает этот параметр? и почему enable lqr заремлен - он же слушает качество линии... вроде же параметр не вредный?


"pptpclient опять ..."
Отправлено andreo , 15-Янв-09 15:49 
>[оверквотинг удален]
>>Dec 30 22:32:09 inet mpd:  MRU 1492
>>Dec 30 22:32:09 inet mpd:  MAGICNUM 3fb4338f
>>Dec 30 22:32:09 inet mpd: [L-1] LCP: state change Req-Sent --> Ack-Rcvd
>>
>>
>>помогите пожалуйста разобраться ...
>
>Привет!
>СТавь mpd5 он стабильнее и производительнее.
>Могу дать рабочий конфиг.

у меня стоит mpd5
использую его как сервер
клиента не поднимал на нем...
буду оч рад коли поделитесь конфигами...

но тут вопросы:
1 есть ли поддержка с консоли отдельно перезапустить соединение
2 что делать если оно упало

или просто делать рестарт процессу mpd5 ?