| Firewall on Fedora Linux |
|
| Security |
In a nutshellThe core of the Linux firewall is the netfilter kernel module. To add or remove firewall rules you need the "iptables" application (should already be installed).
where is the configuration file for iptables?The actual configuration file is here: /etc/sysconfig/iptables-config. But the firewall rules are saved here: /etc/sysconfig/iptables.
What are Chains?A set of firewall rules is called a chain. With "iptables -L" you can list all chains: --> no chains defined at the moment.
There are 3 predefined (built-in) chains for the filter table (packet filtering):
What is a Target?The target defines what to do with a packet that matches the rule.
There are 2 important rules:
Some ExamplesWe want to drop all outgoing packages to IP 62.112.154.29. To do this we have to add a rule to the (predefined) OUTPUT chain which drops all packes with target IP 62.112.154.29.
Before:
Now we add the rule:
After:
Now we delete the rule:
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |

