Hello -
I'm trying to limit the number of "ESTABLISHED" ssh connections from a specific ip address with iptables. For example. I'm trying to say ip x.x.x.x can have up to 10 established connections to my sftp-server (openssh). Here is the command I've been using.
root@server:/proc> iptables -I INPUT -p tcp -s x.x.x.x --dport 22 -i bond0 -m state --state ESTABLISHED -m recent --hitcount 10 --set
(1) I don't know if this is correct and
(2) if it is correct, I get a ambiguous/non-standard error.
Here is the error I get.
iptables: Unknown error 18446744073709551615
Can you help? I've read that sometimes this is a bug, but I'm at the latest iptables level.
I'm trying to limit the number of "ESTABLISHED" ssh connections from a specific ip address with iptables. For example. I'm trying to say ip x.x.x.x can have up to 10 established connections to my sftp-server (openssh). Here is the command I've been using.
root@server:/proc> iptables -I INPUT -p tcp -s x.x.x.x --dport 22 -i bond0 -m state --state ESTABLISHED -m recent --hitcount 10 --set
(1) I don't know if this is correct and
(2) if it is correct, I get a ambiguous/non-standard error.
Here is the error I get.
iptables: Unknown error 18446744073709551615
Can you help? I've read that sometimes this is a bug, but I'm at the latest iptables level.