iptables允许whois和host

iptables允许whois和host

作者:LAMP小白  点击:1718  发布日期:2013-11-18 22:37:27  返回列表

[root@ebs-19760 ~]# iptables -A OUTPUT -p tcp --dport 43 -j ACCEPT

[root@ebs-19760 ~]# iptables -A INPUT -p tcp --sport 43 -j ACCEPT

[root@ebs-19760 ~]# iptables -A OUTPUT -p tcp --sport 43 -j ACCEPT

[root@ebs-19760 ~]# iptables -A INPUT -p tcp --dport 43 -j ACCEPT


[root@ebs-19760 ~]# iptables -A OUTPUT -p udp --dport 53 -j ACCEPT

[root@ebs-19760 ~]# iptables -A INPUT -p udp --sport 53 -j ACCEPT

[root@ebs-19760 ~]# iptables -A INPUT -p udp --dport 53 -j ACCEPT

[root@ebs-19760 ~]# iptables -A OUTPUT -p udp --sport 53 -j ACCEPT




上一篇:没有host和whois命令 下一篇:快递查询API
0