Answer the question
In order to leave comments, you need to log in
Iptables bans those on the whitelist. How to fix?
there are ip in the whitelist, you need to deny access to everyone, EXCEPT for those who are in the whitelist
, I write like this:
sudo iptables -A INPUT -m set ! --match-set whitelist src -j DROP
Answer the question
In order to leave comments, you need to log in
If you want to disable everything except whitelist, then first
DROP ALL
And then iptables -A INPUT -m set ! --match-set whitelist src -j ACCEPT
And what you are doing now is denying access to those who are in the whitelist (since the command is at the end of DROP)
Look / google manuals on this topic (first 3 links in Google by: iptables allow only whitelist)
iptables -A INPUT -m set --set whitelist src -j ACCEPT
iptables -A INPUT -j REJECT
do not use "!"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question