Home

Content was moved from it's original location @ jamnetltd.com.


— site/server administrator

Photos

Twink
  

 Boys |  Jamie McClure |  06/25/2017 06:58 AM |  0

Forums

Linux: Firewall

Reload firewall after making changes: firewall-cmd --reload

List open firewall ports: firewall-cmd --list-port

List the blocked ip's in the drop zone: firewall-cmd --zone=drop --list-all

Add port xxxx permanently as tcp type: firewall-cmd --zone=public --permanent --add-port=xxxx/tcp

Temporarily block the x.x.x.x ip: firewall-cmd --zone=drop --add-source=x.x.x.x

Temporarily unblock the x.x.x.x ip: firewall-cmd --zone=drop --remove-source=x.x.x.x

Block a port. Substitute xxxx for port number: firewall-cmd --zone=drop --remove-port=xxxx/tcp

Block a port permanently. Substitute xxxx for port number: firewall-cmd --zone=public --remove-port=xxxx/tcp --permanent