How to block and unblock the IP Address using HMC Firewall as root ?

To block or unblock the IP address using HMC Firewall we need to sign in as root user. There will be a default PE user named hscpe in HMC we need to login to hscpe. Then login as root user and follow below commands

Block the IP Address using HMC Firewall where your ip address is 9.x.x.x
iptables -I INPUT -s 9.x.x.x  -j DROP

Unblock the IP Address using HMC Firewall where your ip address if 9.x.x.x
iptables -D INPUT -s 9.x.x.x -j DROP

If you block the IP Address you will not be able to ping from either side of the HMC, i.e, from and to the 9.x.x.x ip addresses.

Once the IP address is blocked all the network traffic from and to the IP address gets blocked and if it gets unblocked the network traffic gets moving.


Post a Comment

0 Comments