Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Disable Firewall
- service firewalld stop
- #List the default zone
- firewall-cmd --get-default-zone
- #Get current zone
- firewall-cmd --get-active-zone
- #Move to internal
- firewall-cmd --set-default-zone=internal
- #Enable samba on a zone
- firewall-cmd --zone=internal --add-service=samba
- firewall-cmd --permanent --zone=internal --add-service=samba
- firewall-cmd --permanent --zone=internal --add-service=http
- firewall-cmd --zone=internal --add-port=41872/tcp
- #Firewall reload from the permanent settings
- firewall-cmd --reload
- #View settings
- firewall-cmd --list-all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement