Skip to content

Instantly share code, notes, and snippets.

@shamim71
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shamim71/52e1b09f55f22edfc5f0 to your computer and use it in GitHub Desktop.
Save shamim71/52e1b09f55f22edfc5f0 to your computer and use it in GitHub Desktop.
Opening port in Linux
Opening port in Linux
iptables -I INPUT 5 -i eth0 -p tcp --dport 8080 -m state --state NEW,ESTABLISHED -j ACCEPT
service iptables save
service iptables restart
iptables --line -vnL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment