CDH iptables 配置

iptables

# Generated by iptables-save 2019/4/4
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]

# example 
-A INPUT -s 192.168.0.192 -p tcp -m tcp -m multiport --dports 60010,50090,19888,10002,8084,50070,8086,8888,11000,8088,50075,8091,60030,8042,7180 -j ACCEPT
-A INPUT -s 192.168.0.192 -p tcp -m tcp -m multiport --dports 873,25020,25010,18088,64689,80,63751,50075,7183,7072,8889,25000,8084,12321,8081 -j ACCEPT
-A INPUT -s 192.168.0.192 -p tcp -m tcp -m multiport --dports 8050,3181,50977,31079,4181,9010,8051,9095,4040,9868,9864,9870 -j ACCEPT


#drop
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m multiport --dports 60010,50090,19888,10002,8084,50070,8086,8888,11000,8088,50075,8091,60030,8042,7180 -j DROP
-A INPUT -p tcp -m multiport --dports 873,25020,25010,18088,64689,80,63751,50075,7183,7072,8889,25000,8084,12321,8081 -j DROP
-A INPUT -p tcp -m multiport --dports 8050,3181,50977,31079,4181,9010,8051,9095,4040,9868,9864,9870 -j DROP

COMMIT
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值