Verification done on Xenial.
- server:
root@shuckle:~# uname -a Linux shuckle 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux root@shuckle:~# iptables -F root@shuckle:~# iptables -A INPUT -p tcp -m tcp --syn --dport 7777 -m connlimit --connlimit-above 2000 --connlimit-mask 0 -j DROP root@shuckle:~# ulimit -SHn 65000 root@shuckle:~# ruby server.rb
- client:
root@dixie:~# ruby client.rb 10.230.56.116 7777 6000 3 Connecting to ["10.230.56.116"]:7777 6000 times with 3 1 2 3 ... 2000 <blocks>
Verification done on Xenial.
- server:
root@shuckle:~# uname -a
Linux shuckle 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@shuckle:~# iptables -F
root@shuckle:~# iptables -A INPUT -p tcp -m tcp --syn --dport 7777 -m connlimit --connlimit-above 2000 --connlimit-mask 0 -j DROP
root@shuckle:~# ulimit -SHn 65000
root@shuckle:~# ruby server.rb
- client:
root@dixie:~# ruby client.rb 10.230.56.116 7777 6000 3 56.116" ]:7777 6000 times with 3
Connecting to ["10.230.
1
2
3
...
2000
<blocks>