首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

服务器防火墙配备

2012-08-17 
服务器防火墙配置[root@qs-xept-app bin]# iptables -LChain INPUT (policy ACCEPT)target ? ? prot opt s

服务器防火墙配置

[root@qs-xept-app bin]# iptables -L

Chain INPUT (policy ACCEPT)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

RH-Firewall-1-INPUT ?all ?-- ?anywhere ? ? ? ? ? ? anywhere ? ? ? ? ? ?

?

Chain FORWARD (policy ACCEPT)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

RH-Firewall-1-INPUT ?all ?-- ?anywhere ? ? ? ? ? ? anywhere ? ? ? ? ? ?

?

Chain OUTPUT (policy ACCEPT)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

?

Chain RH-Firewall-1-INPUT (2 references)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

ACCEPT ? ? tcp ?-- ?anywhere ? ? ? ? ? ? anywhere ? ? ? ? ? ?tcp dpt:http?

?

?

[root@qs-xept-app bin]# iptables -I RH-Firewall-1-INPUT -p tcp --dport 8080 -j ACCEPT

[root@qs-xept-app bin]# iptables -L

Chain INPUT (policy ACCEPT)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

RH-Firewall-1-INPUT ?all ?-- ?anywhere ? ? ? ? ? ? anywhere ? ? ? ? ? ?

?

Chain FORWARD (policy ACCEPT)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

RH-Firewall-1-INPUT ?all ?-- ?anywhere ? ? ? ? ? ? anywhere ? ? ? ? ? ?

?

Chain OUTPUT (policy ACCEPT)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

?

Chain RH-Firewall-1-INPUT (2 references)

target ? ? prot opt source ? ? ? ? ? ? ? destination ? ? ? ??

ACCEPT ? ? tcp ?-- ?anywhere ? ? ? ? ? ? anywhere ? ? ? ? ? ?tcp dpt:webcache?

?

[root@qs-xept-app bin]# service iptables save

将当前规则保存到 /etc/sysconfig/iptables: ? ? ? ? ? ? ? ? [确定]


热点排行