Skip to content

Instantly share code, notes, and snippets.

@yangchi
Created September 25, 2013 02:52
Show Gist options
  • Save yangchi/6694621 to your computer and use it in GitHub Desktop.
Save yangchi/6694621 to your computer and use it in GitHub Desktop.
Config Fedora firewall to make hg go through
#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