Created
September 25, 2013 02:52
-
-
Save yangchi/6694621 to your computer and use it in GitHub Desktop.
Config Fedora firewall to make hg go through
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
#the command to config Fedora firewalld service is firewall-cmd. It's super easy to use. | |
#Read "https://fedoraproject.org/wiki/FirewallD#Using_firewall-cmd" for details | |
#list default firewall zone | |
firewall-cmd --get-default-zone | |
#make hg go through, suppose hg use port 8000 and HTTP, and the default firewall zone is 'public' | |
sudo firewall-cmd --zone=public --add-port=8000/tcp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment