Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save mattantonelli/6e214566353ee4cc7bb6 to your computer and use it in GitHub Desktop.

Select an option

Save mattantonelli/6e214566353ee4cc7bb6 to your computer and use it in GitHub Desktop.
Open a port in CentOS
# Open port 3001, which will accept communication on localhost:3001
sudo iptables -I INPUT -p tcp --dport 3001 -j ACCEPT
sudo service iptables save
# Detailed How-To for iptables can be found at: http://wiki.centos.org/HowTos/Network/IPTables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment