How to find the IP address I blocked on LightSail (Bitnami)?

0

My domain https://www.pinbargain.com is hosted on lightsail received some suspicious IP addresses, therefore, I followed this document
https://docs.bitnami.com/aws/faq/configuration/block-suspicious-ip/
to block some suspicious IP address
I use this command to block the IP address:
iptables -A INPUT -s 1.2.3.4 -j DROP

Now the problem is I cannot remember the IP addresses I blocked. therefore, I want to find the IP address I blocked.
After that, I want to unlock some IP addresses.

How to do that?

Zhan
已提问 3 年前868 查看次数
2 回答
0
已接受的回答

This command will list all your iptables rules...

iptables -L -n

To remove a rule, just re-run the iptables command except replace '-A' with '-D'.

profile picture
David G
已回答 3 年前
0

Thanks, it works. I hope it could be documented somewhere on Bitnami while it introduces how to block an IP.

Zhan
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则