Monday, September 18, 2017

CENTOS firewalld

https://www.liquidweb.com/kb/how-to-start-and-enable-firewalld-on-centos-7/

sudo systemctl enable firewalld
sudo systemctl start firewalld

sudo systemctl status firewalld

sudo firewall-cmd --zone=public --add-port=8983/tcp --permanent

sudo firewall-cmd --reload

 sudo yum install nmap

#scan the ports

sudo nmap -sT -O localhost

https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7

https://www.centos.org/forums/viewtopic.php?t=56369

you need to affect the network interface to the firewalld zone:

public (default)
interfaces: 
sources: 
services: dhcpv6-client dns http ssh
ports: 443/tcp 80/tcp
masquerade: no
forward-ports: 
icmp-blocks: 
rich rules: 

With
firewall-cmd --permanent --zone=public --change-interface=NAMEOFINTERFACEand reload
Do you actually have something running and listening on port 443?

ss -antup | grep LISTEN.*443

No comments:

Post a Comment