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 年前檢視次數 876 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南