Server Topic
   >  Introduction to Firewalls
   >  Listing Firewall Rules
   >  Changing Default Rules
   >  Changing Specific Rules
   >  Example Firewall Script

 

Checking your Firewall Rules

Listing out your current Firewall Rules

To list out the current firewall rules on your PC, use the following command:

$ sudo iptables -L

On a brand new system (-i.e. with no rules defined), the output will look like the following:

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 
$ 

From the above, you can see that the default is wide open : the default access is allowed (ACCEPT) for all three categories. This means that (-in theory) anyone can access resources on your PC and you can access any resource on your network that will allow you to! This is why it is important to change the default!



HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button