iptables命令

扫码查看
[root@localhost log]# iptables -P INPUT ACCEPT------------------------------------------------------------------------------------------------
[root@localhost /]# iptables -L      ----------------------------------------------------------------------------------查看iptables规则
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
VETRIX_FIREWALL_INPUT  all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
VETRIX_POLICY  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain VETRIX_FIREWALL_INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 8006,ndmp,safetynetp,40001,40002,40003,40004,40011
ACCEPT     udp  --  anywhere             anywhere             multiport dports 40010
VETRIX_FIREWALL_INPUT_br0  all  --  anywhere             anywhere            

Chain VETRIX_FIREWALL_INPUT_br0 (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:hbci

Chain VETRIX_POLICY (1 references)
target     prot opt source               destination         
[root@localhost /]#
02-01 15:02
查看更多