Created
October 11, 2019 10:25
-
-
Save lorne-luo/3a288af5d155d108124ba5fcbb2de547 to your computer and use it in GitHub Desktop.
Centos7 firewall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open port | |
firewall-cmd --zone=public --add-port=55555/tcp --permanent | |
firewall-cmd --reload | |
# remove port | |
$ firewall-cmd --zone=public --remove-port=10050/tcp | |
$ firewall-cmd --runtime-to-permanent | |
$ firewall-cmd --reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment