Skip to content

Instantly share code, notes, and snippets.

@dineshsprabu
Created February 13, 2016 02:27
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 dineshsprabu/fd20e08bf087ce3fa53d to your computer and use it in GitHub Desktop.
Save dineshsprabu/fd20e08bf087ce3fa53d to your computer and use it in GitHub Desktop.
[IPTable] Make Mongo Accessible only by localhost
iptables -A INPUT -p tcp -s localhost --dport 27017 -j ACCEPT
iptables -A INPUT -p tcp --dport 27017 -j REJECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment