Enhanced Iptable Rules
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
# 3. Only Allow 2 SSH Connections per user
iptables -A INPUT -p tcp --syn --dport 23235 -m connlimit --connlimit-above 2 -j ACCEPT
- Read more about Enhanced Iptable Rules
- Log in or register to post comments