LINUX Security with LINUX ..Firewalls are used to ensure that unauthorized access to enterprise through its externally facing access points are prevented. Firewalls technology is more than 10 years old. Using different methods and different technologies, we can configure firewalls to protect the networks and the servers from unauthorized access. Mainly there are two firewalls types. Those are Hardware firewall and Software firewalls. To build a firewall(software)in LINUX we have to use
IPTables .... .

But Guys you do not worry...

it is very easy to than configuring Hardware firewall ...
We will start from basic
IPtable commands...
Basic IPTables commands.To check existing IPTables in your server iptables -L [chain] - Lists your current iptables configuration
To Making modification. iptables -A [chain] - Append a rule to a desired chain in the current configuration
iptables -D [chain] - Delete a rule from a desired chain in the current configuration
iptables -R [chain] - Replace an existing rule from a desired chain in the current configuration
iptables - I [chain] - (that's a capital I as in Insert) Insert a new rule into a desired chain of the current configuration
iptables -N [chain] - Create a new chain
iptables -X [chain] - Delete a chain
iptables -F - Flush the table of all contents
iptables -p - Match protocol. Types include, icmp, tcp,udp, all
iptables –s - Match source IP address
iptables –d - Match destination IP address
iptables – i - Match "input" interface on which the packet enters.
Iptables- o - Match "output"packet exits
Ok. Guys now pls refer this example using above mention commands.iptables -A INPUT -s 0/0 -i eth0 -d 192.168.128.2 -p TCP -j ACCEPTThis command says ……………
In this example, iptables is being configured to allow the firewall to accept TCP packets coming in on
interface eth0 from any IP address destined for the firewall's IP address of 192.168.128.2 The "0/0"
representation of an IP address means "any".