Last active
August 29, 2015 14:17
-
-
Save mattantonelli/6e214566353ee4cc7bb6 to your computer and use it in GitHub Desktop.
Open a port in CentOS
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 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