Hello,
How to check if an IP is blocked in IPTABLES?
How to check if an IP is blocked in IPTABLES
Moderator: Staff
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: How to check if an IP is blocked in IPTABLES
Hello Jackk,
You can check below command to verify your IP is blocked or not in IPTABLES
iptables -L -n --line | grep [IP Address]
if IP appears as DROP or REJECT, the IP has been blocked
also you can use the below command to unblock IP
iptables -I INPUT -s [IP Address] -j ACCEPT
You can check below command to verify your IP is blocked or not in IPTABLES
iptables -L -n --line | grep [IP Address]
if IP appears as DROP or REJECT, the IP has been blocked
also you can use the below command to unblock IP
iptables -I INPUT -s [IP Address] -j ACCEPT
Re: How to check if an IP is blocked in IPTABLES
Hello Tommy,
Thank you for your reply.
can you please let me know also how to block IP manually using IPTABLES?
Thank you for your reply.
can you please let me know also how to block IP manually using IPTABLES?
Re: How to check if an IP is blocked in IPTABLES
Hello Jackk,
Please use the below command to blocking back an IP address in IPTABLES
iptables -A INPUT -d [IP Address] -j DROP
Please use the below command to blocking back an IP address in IPTABLES
iptables -A INPUT -d [IP Address] -j DROP