Check and Show Firewall Setting using iptables Command



Computer Configuration GNU Linux Fedora using Linux Command

The step by step example below use the iptables command tool to display the firewall setting or show the iptables configuration on Linux Fedora 9. To display the firewall rules on Linux Fedora machine , you need to have root acces. The example below show the firewall rules that allow all or have no rules, you may get the same setting of firewall rule if you not configure or set the firewall setting to Disable.

Display list of iptables firewall rules:

iptables show firewall rules

[root@fedora ~]# iptables -L

Chain INPUT (policy ACCEPT)

target prot opt source destination

ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

ACCEPT icmp -- anywhere anywhere

ACCEPT all -- anywhere anywhere

ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh

REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)

target prot opt source destination

REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

[root@fedora ~]#




2 comments:

alinaskoin said...

It's very great to see your post!I like it .I'm looking forward to you in the next post.Thank you .There is a dell recovery software to you.

sayhi said...

Wow, so thankful! I like your blog very much. By the way, you can choose some discount ray ban sunglasses here.