# Generated by iptables-save v1.4.7 on Wed Jul 11 22:25:28 2018
*filter
:INPUT ACCEPT [59:2968]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1146:102429]
-A INPUT -i lo -j ACCEPT 
-A INPUT -s 192.168.1.1/32 -j ACCEPT 
-A INPUT -s 192.169.1.2/32 -p tcp -m tcp --dport 3306 -j ACCEPT 
-A INPUT -p tcp -m multiport --dports 80,22,10051 -j ACCEPT 
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT 
-A INPUT -p tcp -j DROP
COMMIT
# Completed on Wed Jul 11 22:25:28 2018

-i lo 收数据的网卡,上面设置的这条规则指的是允许我本地的环回网络接口即eth0 eth1这些网卡访问,对应的IP即为127.0.0.1,这样在服务器telnet 127.0.0.1 9000就可以telnet成功 ,而mongo直接127.0.0.1登陆也没有问题