my server disconnect tcp

Asked by Gan Leon

i had 150+ IP connect on the server
and i open the socks5 Server

my client connect to the server ,on 5~10min it will disconnect,

what is my problem?

this is my sysctl

kernel.panic = 1
kernel.pid_max = 60000
kernel.shmmax = 4294967296
kernel.shmall = 1073741824
kernel.core_pattern = core_%e
vm.panic_on_oom = 1
vm.min_free_kbytes = 1048576
vm.vfs_cache_pressure = 250
vm.swappiness = 20
vm.dirty_ratio = 20
fs.file-max = 2048575
net.core.somaxconn = 65535
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 76777216
net.core.wmem_max = 76777216
net.core.netdev_max_backlog = 65535
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.ip_local_port_range = 9000 60000
net.ipv4.ip_default_ttl = 64
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 32768 8388608
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_max_syn_backlog = 60000
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_syn_retries = 3
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_keepalive_probes = 2
net.ipv4.tcp_keepalive_intvl = 2
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_max_tw_buckets = 25000
net.ipv4.neigh.default.gc_thresh1 = 128
net.ipv4.neigh.default.gc_thresh2 = 512
net.ipv4.neigh.default.gc_thresh3 = 4096

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you mean you are running a SOCKS5 proxy and had 150+ systems connecting to your server? Is this what is occurring please?

Revision history for this message
Gan Leon (guardian536) said :
#2

Yes, i'm running a SOCKS5 Proxy,and this is occurring.
i had 150+ PPPOE connect on RouteOS and distribution the private for public ip
then my ubuntu server setting netplan to connect

this is my setting

network:
        ethernets:
                enp4s0:
                        dhcp4: false
                        addresses: [192.168.90.1/16,192.168.90.2/16,192.168.90.3/16,192.168.90.4/16,192.168.90.5/16,192.168.90.6/16,192.168.90.7/16,192.168.90.8/16,192.168.90.9/16,192.168.90.10/16,192.168.90.11/16,192.168.90.12/16,192.168.90.13/16,192.168.90.14/16,192.168.90.15/16,192.168.90.16/16,192.168.90.17/16,192.168.90.18/16,192.168.90.19/16,192.168.90.20/16,192.168.90.21/16,192.168.90.22/16,192.168.90.23/16,192.168.90.24/16,192.168.90.25/16,192.168.90.26/16,192.168.90.27/16,192.168.90.28/16,192.168.90.29/16,192.168.90.30/16,192.168.90.31/16,192.168.90.32/16,192.168.90.33/16,192.168.90.34/16,192.168.90.35/16,192.168.90.36/16,192.168.90.37/16,192.168.90.38/16,192.168.90.39/16,192.168.90.40/16,192.168.90.41/16,192.168.90.42/16,192.168.90.43/16,192.168.90.44/16,192.168.90.45/16,192.168.90.46/16,192.168.90.47/16,192.168.90.48/16,192.168.90.49/16,192.168.90.50/16,192.168.90.51/16,192.168.90.52/16,192.168.90.53/16,192.168.90.54/16,192.168.90.55/16,192.168.90.56/16,192.168.90.57/16,192.168.90.58/16,192.168.90.59/16,192.168.90.60/16,192.168.90.61/16,192.168.90.62/16,192.168.90.63/16,192.168.90.64/16,192.168.90.65/16,192.168.90.66/16,192.168.90.67/16,192.168.90.68/16,192.168.90.69/16,192.168.90.70/16,192.168.90.71/16,192.168.90.72/16,192.168.90.73/16,192.168.90.74/16,192.168.90.75/16,192.168.90.76/16,192.168.90.77/16,192.168.90.78/16,192.168.90.79/16,192.168.90.80/16,192.168.90.81/16,192.168.90.82/16,192.168.90.83/16,192.168.90.84/16,192.168.90.85/16,192.168.90.86/16,192.168.90.87/16,192.168.90.88/16,192.168.90.89/16,192.168.90.90/16,192.168.90.91/16,192.168.90.92/16,192.168.90.93/16,192.168.90.94/16,192.168.90.95/16,192.168.90.96/16,192.168.90.97/16,192.168.90.98/16,192.168.90.99/16,192.168.90.100/16,192.168.90.101/16,192.168.90.102/16,192.168.90.103/16,192.168.90.104/16,192.168.90.105/16,192.168.90.106/16,192.168.90.107/16,192.168.90.108/16,192.168.90.109/16,192.168.90.110/16,192.168.90.111/16,192.168.90.112/16,192.168.90.113/16,192.168.90.114/16,192.168.90.115/16,192.168.90.116/16,192.168.90.117/16,192.168.90.118/16,192.168.90.119/16,192.168.90.120/16,192.168.90.121/16,192.168.90.122/16,192.168.90.123/16,192.168.90.124/16,192.168.90.125/16,192.168.90.126/16,192.168.90.127/16,192.168.90.128/16,192.168.90.129/16,192.168.90.130/16,192.168.90.131/16,192.168.90.132/16,192.168.90.133/16,192.168.90.134/16,192.168.90.135/16,192.168.90.136/16,192.168.90.137/16,192.168.90.138/16,192.168.90.139/16,192.168.90.140/16,192.168.90.141/16,192.168.90.142/16,192.168.90.143/16,192.168.90.144/16,192.168.90.145/16,192.168.90.146/16,192.168.90.147/16,192.168.90.148/16,192.168.90.149/16,192.168.90.150/16,192.168.90.151/16,192.168.90.152/16,192.168.90.153/16,192.168.90.154/16,192.168.90.155/16,192.168.90.156/16,192.168.90.157/16,192.168.90.158/16,192.168.90.159/16,192.168.90.160/16,192.168.90.161/16,192.168.90.162/16,192.168.90.163/16,192.168.90.164/16,192.168.90.165/16,192.168.90.166/16,192.168.90.167/16,192.168.90.168/16,192.168.90.169/16,192.168.90.170/16,192.168.90.171/16,192.168.90.172/16,192.168.90.173/16,192.168.90.174/16,192.168.90.175/16,192.168.90.176/16,192.168.90.177/16,192.168.90.190/16]
                        gateway4: 192.168.0.1
                        nameservers:
                                addresses: [1.1.1.1,8.8.8.8]
        version: 2

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.