0

How to block IP in firewalld command

hi am new to Centos7 i need to block specific IP address by using firewalld command to prevent ssh login .. in centos 6 i tried this by using iptables command .., i dont know how to do this on Centos7 i need some guidance...

Firewall Firewalld Add a comment
wilson
asked Sep 23 2017

Answer

0

try below firewalld command to block specific ip address...

# firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='192.168.5.5' reject"

Add a comment
arunkumarak
asked Sep 24 2017
edited Oct 05 2018
Post your Answer