{{tag>firewall iptables}} ====== iptables commands ====== Drop new TCP connection from single IP if it exceeds 10 simultaneous connections. iptables -I INPUT 1 -p tcp --syn -m connlimit --connlimit-above 10 -j DROP Allow from IP on port 10050 over TCP protocol iptables -A INPUT -s 79.137.64.226 -p tcp --dport 10050 -j ACCEPT ====== Tested on ====== * ====== See also ====== * [[save_iptables_rules_clear_firewall|Save iptables rules and clear firewall]] ====== References ======