Try this: Allow the two IPs
Only allow two connections to port 1080, reject everything else:
Code:
# iptables -A INPUT -p tcp --dport 1080 -s <IP_Address1> -j ACCEPT# iptables -A INPUT -p tcp --dport 1080 -s <IP_Address2> -j ACCEPT
Only allow two connections to port 1080, reject everything else:
Code:
# iptables -A INPUT -p tcp --dport 1080 -m connlimit --connlimit-above 2 -j REJECT
Statistics: Posted by Hallvor — 2024-02-18 12:10 — Replies 7 — Views 205