LinuxForum.Fans
Тема

Теряется пинг к PPTP серверу у подключенных клиентов

Автор: mc-sim 3 сообщений 6104 просмотров
#50534

Доброго времени, уважаемые форумчане!!!
Очень нужна помощь!
Ситуация следующая:
Имеется старенький ALT Compact 3, на нем настроен PPTP север. настройки сервера следующие:
\etc\ppp\options.pptp

text

####################
lock
debug
name pptpd
proxyarp
####################
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
####################
ms-dns 10.0.0.4
ms-wins 10.0.0.4
####################
mtu 1000
mru 1000
####################
ipcp-accept-local
ipcp-accept-remote
lcp-echo-failure 3
#lcp-echo-failure 5
#lcp-echo-interval 10
lcp-echo-interval 5
####################
nobsdcomp
nodeflate
nodefaultroute
####################

\etc\ppp\options.pptpd

text

###############################################################################
# $Id: options.pptpd,v 1.5 2004/04/23 07:11:33 quozl Exp $
#
# Sample Poptop PPP options file /etc/ppp/options.pptpd
# Options used by PPP when a connection arrives from a client.
# This file is pointed to by /etc/pptpd.conf option keyword.
# 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 and the kernel MPPE module.
###############################################################################

# Authentication

# Name of the local system for authentication purposes # (must match the second field in /etc/ppp/chap-secrets entries) name pptpd

# Strip the domain prefix from the username before authentication. # (applies if you use pppd with chapms-strip-domain patch) #chapms-strip-domain

# Encryption # (There have been multiple versions of PPP with encryption support, # choose with of the following sections you will use.)

# BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o # {{{ refuse-pap refuse-chap refuse-mschap # Require the peer to authenticate itself using MS-CHAPv2 [Microsoft # Challenge Handshake Authentication Protocol, Version 2] authentication. require-mschap-v2 # Require MPPE 128-bit encryption # (note that MPPE requires the use of MSCHAP-V2 during authentication) require-mppe-128 # }}}

# OpenSSL licensed ppp-2.4.1 fork with MPPE only, kernel module mppe.o # {{{ #-chap #-chapms # Require the peer to authenticate itself using MS-CHAPv2 [Microsoft # Challenge Handshake Authentication Protocol, Version 2] authentication. #+chapms-v2 # Require MPPE encryption # (note that MPPE requires the use of MSCHAP-V2 during authentication) #mppe-40 # enable either 40-bit or 128-bit, not both #mppe-128 #mppe-stateless # }}}

# Network and Routing

# If pppd is acting as a server for Microsoft Windows clients, this # option allows pppd to supply one or two DNS (Domain Name Server) # addresses to the clients. The first instance of this option # specifies the primary DNS address; the second instance (if given) # specifies the secondary DNS address. ms-dns 10.0.0.1

# If pppd is acting as a server for Microsoft Windows or "Samba" # clients, this option allows pppd to supply one or two WINS (Windows # Internet Name Services) server addresses to the clients. The first # instance of this option specifies the primary WINS address; the # second instance (if given) specifies the secondary WINS address. ms-wins 10.0.0.1

# Add an entry to this system's ARP [Address Resolution Protocol] # table with the IP address of the peer and the Ethernet address of this # system. This will have the effect of making the peer appear to other # systems to be on the local ethernet. # (you do not need this if your PPTP server is responsible for routing # packets to the clients -- James Cameron) proxyarp

# Logging

# Enable connection debugging facilities. # (see your syslog configuration for where pppd sends to) debug

# Print out all the option values which have been set. # (often requested by mailing list to verify options) # dump

# Miscellaneous

# Create a UUCP-style lock file for the pseudo-tty to ensure exclusive # access. lock

# Disable BSD-Compress compression nobsdcomp

\etc\ppp\pptpd.conf

text
debug
localip 10.0.0.254
remoteip 10.0.0.200-250

есть порядка 30-40 внешних клиентов на WinXP? которые по разным каналам снаружи подключается к данному серверу по PPTP.
Проблема:
У некоторых клиентов через неопределенный промежуток времени после подключения к серверу (иногда 10 секунд, иногда 1-2 часа, иногда соединение держится сутки) теряется связь с сервером. Каким образом это проявляется? примерно так:


Объясняю: пинг до IP адреса, присвоенного клиенту (10.0.0.231) идет, а до самого сервера (10.0.0.254) нет, трассировка до 10.0.0.254 умирает на первом же шаге.
С ног сбился в поиске решения проблемы...
Закономерности в проявлении проблемы не заметил... Может проявляться может нет...
Помогите, пожалуйста с решением?
Спасибо заранее!

#50561

1. /etc/ppp/errors приложите пожалуйста. Возможно в нем можно будет найти где ошибка.

2. Гулял по моей локалке вирус, который как раз рубил pptp соединения. Симптомы схожие и страдали, естественно, только win-машины. Попробуйте проверить их на вирусы загрузившись с антивирусного livecd

#50563
elve написал:
1. /etc/ppp/errors приложите пожалуйста. Возможно в нем можно будет найти где ошибка.

к сожадению нет такого:

text
[root@fw ppp]# ls -l /etc/ppp/
total 100
-rwxr-x---  1 root root  131 Dec 26  2005 adsl-lost
-rwxr-x---  1 root root  199 Jun 26  2001 callback-client
-rwxr-x---  1 root root  229 Jun 26  2001 callback-server
-rwxr-x---  1 root root  334 Jun 26  2001 callback-users
-rw-------  1 root root 1620 Jun  9 10:12 chap-secrets
-rw-------  1 root root 2114 May 26  2006 connect-errors
-rw-r--r--  1 root root  938 Dec 26  2005 firewall-masq
-rw-r--r--  1 root root 2130 May 21  2002 firewall-masq-iptables
-rw-r--r--  1 root root  836 Dec 26  2005 firewall-standalone
-rw-r--r--  1 root root 1470 May 21  2002 firewall-standalone-iptables
-rwxr-xr-x  1 root root 1334 Jul 29  2005 ip-down
drwxr-xr-x  2 root root   48 Jan  3  2005 ip-down.d
-rwxr-xr-x  1 root root 4685 May 26  2006 ip-up
drwxr-xr-x  2 root root   72 May 18  2006 ip-up.d
-rwxr-xr-x  1 root root  710 May 26  2006 ip-up.local
-rw-r--r--  1 root root   44 Apr 28  2009 options
-rw-r--r--  1 root root  454 Mar 28 03:16 options.pptp
-rw-r--r--  1 root root 3339 Apr 28  2009 options.pptpd
-rw-------  1 root root   77 Jun 23  1995 pap-secrets
drwx--x--x  2 root root  136 May 26  2006 peers
-rw-r--r--  1 root root    0 Sep 27  2006 ping
-rw-r--r--  1 root root 4631 Apr 28  2009 pppoe.conf
-rw-r--r--  1 root root   48 Jun  4 11:18 pptpd.conf
elve написал:

2. Гулял по моей локалке вирус, который как раз рубил pptp соединения. Симптомы схожие и страдали, естественно, только win-машины. Попробуйте проверить их на вирусы загрузившись с антивирусного livecd

За вирус ручаюсь! Нет его, в корпоративной сети стоит DrWeb ES, дома KIS и то же есть проблема.

Войдите или зарегистрируйтесь, чтобы ответить.