Created
December 25, 2015 10:00
-
-
Save suxiaogang/14acb0f47836f8fd2ec9 to your computer and use it in GitHub Desktop.
iptables for mongodb
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
# Generated by iptables-save v1.4.7 on Thu Jan 22 12:02:20 2009 | |
*filter | |
:INPUT DROP [62:7014] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [212:25039] | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p tcp -m tcp -m multiport --dports 21,22,69,80,177,3306,8008,8080,11211,30000,30010 -j ACCEPT | |
-A INPUT -s 192.168.123.4 -p tcp -m tcp --dport 27017 -m state --state NEW,ESTABLISHED -j ACCEPT | |
COMMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment