D
D
DangerMan2017-10-10 16:50:14
iptables
DangerMan, 2017-10-10 16:50:14

How to unblock a specific ip when using iptables geoip?

I block some countries and my site does not ping my server, how do I allow my site to connect without removing blocked countries

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krosh, 2017-10-11
@krosh

Start with this rule:
The -I switch adds a rule to the beginning of the chain, and it should work ahead of the rest, which are blocking.
If only pings are needed:

iptables -A INPUT -s [SERVER_IP] -p icmp -m icmp --icmp-type 8 -j ACCEPT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question