Доброе время суток, заметил что при активном VPN соединении на винде пользователя перезагрузить ПК, то после перезагрузки, подключение проходит а но Интернета нет, после этого я обнаружил что данная сессия еще висит на сервере, и она затухает через минуты 3-5, после того все становится ок! В чем может быть причина? Может есть какая хитрость при настройке pptpd.conf ? :rolleyes:
Проблема с pptpd...
Длина сессии не зависит от настройки pptpd.conf и определяется параметрами сетевого стека ядра ОС (если ошибаюсь поправьте меня). Так что длину сессии можно изменить в файле /etc/sysctl.conf
или настругать скриптик убивающий виртуальное псевдоустройство после закрытия сессии.
Длина сессии не зависит от настройки pptpd.conf и определяется параметрами сетевого стека ядра ОС (если ошибаюсь поправьте меня). Так что длину сессии можно изменить в файле /etc/sysctl.conf
Любезный, не могли бы вы сказать какой параметр поправить, добавить?
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additonal system variables
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
kernel.printk = 4 4 1 7
##############################################################3
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# This disables TCP Window Scaling (http://lkml.org/lkml/2008/2/5/167),
# and is not recommended.
net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Ignore ICMP broadcasts
net.ipv4.icmp_echo_ignore_broadcasts = 1
#
# Ignore bogus ICMP errors
net.ipv4.icmp_ignore_bogus_error_responses = 1
#
# Do not accept ICMP redirects (prevent MITM attacks)
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
net.ipv4.conf.all.secure_redirects = 0
#
# Do not send ICMP redirects (we are not a router)
net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
net.ipv4.conf.all.log_martians = 0
#
# The contents of /proc/<pid>/maps and smaps files are only visible to
# readers that are allowed to ptrace() the process
# kernel.maps_protect = 1
net.ipv4.neigh.default.gc_thresh1 = 1024
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.core.message_burst = 10
net.core.rmem_default=262144
net.core.wmem_default=262144
# increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
# increase Linux autotuning TCP buffer limits
# min, default, and max number of bytes to use
# set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 8192 87380 16777216
net.ipv4.tcp_wmem = 8192 65536 16777216
net.ipv4.udp_rmem_min = 16384
net.ipv4.udp_wmem_min = 16384
net.ipv4.tcp_mem = 16777216 25165824 33554432
net.ipv4.udp_mem = 16777216 25165824 33554432
net.ipv4.netfilter.ip_conntrack_max = 196605
net.ipv4.tcp_fin_timeout = 5
net.ipv4.tcp_keepalive_intvl=5
net.ipv4.tcp_keepalive_probes=3
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_window_scaling = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_abort_on_overflow = 1
net.ipv4.tcp_max_orphans = 8192
net.core.netdev_max_backlog=4096
net.ipv4.ip_local_port_range=1024 65000
net.ipv4.tcp_mtu_probing=1
vm.swappiness = 30
vm.dirty_ratio = 50
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_no_metrics_save = 0
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4..netfilter.ip_conntrack_max = 589815
kernel.shmall = 268435456
kernel.shmmax = 536870912
kernel.sysrq = 0
net.core.somaxconn = 131072
vm.min_free_kbytes = 131072
или настругать скриптик убивающий виртуальное псевдоустройство после закрытия сессии.
Можешь таким поделиться если есть у тебя? :cool: