Linux Whitelist and Blacklist IP's in CentOS 7

krishnandu

Level F
I want to setup CentOS 7 firewall such that, all the incoming requests will be blocked except from the originating IP's that I whitelist. And for the Whitelist IP's all the ports should be accessible. Can anyone guide me for that?

I'm able to find few solutions (not sure whether they will work) for iptables. But CentOS 7 uses firewalld. So can't find something similar to achieve with firewall-cmd command.

The interfaces are in Public Zone. I have also moved all the services to Public zone already.
 
Wow, I didn't see the date. It was on the first page, I figured it was a recent thread. x_x
Glad you got it resolved though.
 
Back
Top