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년 전879회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인