发布者认证信息(营业执照和身份证)未完善,请登录后完善信息登录
iptables 默认设置-亿华网
首页 » 资讯 » 编程开发 > iptables 默认设置

iptables 默认设置

  发布时间 : 2017-10-28 20:17:03 23
内容提要
# Generated by iptables-save v1.6.0 on Sat Oct 28 20:00:27 2017*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT AC
# Generated by iptables-save v1.6.0 on Sat Oct 28 20:00:27 2017
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1105:407183]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 6379 -j DROP
COMMIT
# Completed on Sat Oct 28 20:00:27 2017

layui

微信扫码关注 亿华联众 公众号

头条推荐