Доброго времени суток,
Имеется машина с pptp клиентом (10.32.14.108).
Нужно подключиться к pptp серверу (10.1.1.10) двумя или тремя аккаунтами одновременно.
Но вот какая проблема: подключено 2 аккаунта. Роняем любой из них - падают оба и потом ни один из них не может подключиться.
Apr 6 17:41:23 newubuntu pppd[2139]: using channel 44
Apr 6 17:41:23 newubuntu pppd[2139]: Using interface ppp901
Apr 6 17:41:23 newubuntu pppd[2139]: Connect: ppp901 <--> /dev/pts/1
Apr 6 17:41:23 newubuntu pptp[2181]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Apr 6 17:41:23 newubuntu pptp[2189]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Apr 6 17:41:23 newubuntu pptp[2189]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Apr 6 17:41:23 newubuntu pptp[2189]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Apr 6 17:41:24 newubuntu pppd[2139]: sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x70aa40b1> <pcomp> <accomp>]
Apr 6 17:41:24 newubuntu pptp[2189]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Apr 6 17:41:24 newubuntu pptp[2189]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Apr 6 17:41:24 newubuntu pptp[2189]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Apr 6 17:41:24 newubuntu pptp[2189]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Apr 6 17:41:24 newubuntu pppd[2139]: Modem hangup
Apr 6 17:41:24 newubuntu pppd[2139]: Connection terminated.
Apr 6 17:41:24 newubuntu pptp[2189]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Apr 6 17:41:24 newubuntu pptp[2189]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Apr 6 17:41:24 newubuntu pppd[2139]: Script pptp 10.1.1.10 --nolaunchpppd finished (pid 2179), status = 0x8f
Если ребутнуть машину - все подключится.
С одним аккаунтом таких проблем вроде не замечено.
root@newubuntu:~# uname -a
Linux newubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux
asyncmap 0
noauth
crtscts
lock
hide-password
modem
lcp-echo-interval 30
lcp-echo-failure 4
noipx
###############################################################################
# $Id: options.pptp,v 1.3 2006/03/26 23:11:05 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection. See "man pppd".
#
# You are expected to change this file to suit your system. As
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################
# Lock the port
lock
# Authentication
# We don't need the tunnel server to authenticate itself
noauth
# We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
# (you may need to remove these refusals if the server is not using MPPE)
refuse-pap
refuse-eap
refuse-chap
refuse-mschap
# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate
# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use. Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}
# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}
pty "pptp 10.1.1.10 --nolaunchpppd"
user secret1
password "SuperSecret"
nodeflate
nobsdcomp
noauth
noipdefault
ipparam ppp901
unit 901
persist
nodefaultroute
lcp-echo-failure 0
lcp-echo-interval 0
debug
maxfail 0
holdoff 20
pty "pptp 10.1.1.10 --nolaunchpppd"
user secret2
password "SuperSecret"
nodeflate
nobsdcomp
noauth
noipdefault
ipparam ppp902
unit 902
persist
nodefaultroute
lcp-echo-failure 0
lcp-echo-interval 0
debug
maxfail 0
holdoff 20
root@newubuntu:~# ip route show
default via 10.32.14.105 dev eth0
10.0.0.0/9 via 10.32.14.1 dev eth0
10.1.1.10 via 10.32.14.1 dev eth0 src 10.32.14.108
10.32.14.0/24 dev eth0 proto kernel scope link src 10.32.14.108
92.88.176.0/20 via 10.32.14.1 dev eth0
Доступа до сервера, к которому подключаюсь, не имеется.
Как можно исправить это?
Пользователь решил продолжить мысль 06 Апреля 2014, 20:09:59:
Поправка - минут через 5-15 соединение таки удается установить, не производя перезагрузку машины.
Ну и еще проверил, как windows ведет себя с двумя соединениями к этому серверу - все ок. Моментально поднимает.