Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

System and Network configuration • iptables and connection limit

$
0
0
Try this: Allow the two IPs

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



Viewing all articles
Browse latest Browse all 3567

Trending Articles