Firewall linux iptables

Witam jak odblokować jeden adres ip z całego zablokowanego kraju, przez polecenie w linux “iptables”?
Ponieważ zablokowałem niektóre państwa na swoim serwerze dedykowanym i nie wiem jak mogę jednemu z państw zablokowanych odblokować poszczególne adresy ip.

Hello @KokeKoke1 and welcome to the community.

We’ve recently added support for automatic translation of many, many languages. So, follow the instructions in the linked topic and then feel free to post in whatever language you’re most comfortable communicating in!

In principle: Add an ACCEPT rule for that source address before the blocking rules. Iptables applies rules in the order they are in the chains. To make the ACCEPT rule the very first rule in the INPUT chain you can do something like this (the 0 is the position in the chain):

iptables -I INPUT 0 --source $ALLOWED_IP -j ACCEPT

The best place to put the rule depends on how you manage your firewall, so I can’t give a general answer.

2 Likes