hello every one here,
I dont know if this is the right place
I have an issue with iptables... i am trying to understand how iptables works I was downloaded the iptables tutorial 1.2.2 and read it but still have some problemes understanding the whole rule set (code)...
I used fwbuilder to generate the code for me for study issue but as i said i have problem to figureout the nine rule set
in fwbuilder i select: new firewall>> iptable firewall software & linux 2.4/2.6 OS >> and i use preconfigure templets firewall object (/usr/share/fwbuilder-3.0.7/templates.xml )>> templet 2>>
and i just want to understand the fires rule set with breif explanation
and this is the code generated by the firewall builder :
# Rule 0 (eth0)
#
echo "Rule 0 (eth0)"
#
# anti spoofing rule
#
$IPTABLES -N In_RULE_0
test -n "$i_eth0" && $IPTABLES -A INPUT -i eth0 -s $i_eth0 -m state --state NEW -j In_RULE_0
$IPTABLES -A INPUT -i eth0 -s 192.168.1.1 -m state --state NEW -j In_RULE_0
$IPTABLES -A INPUT -i eth0 -s 192.168.1.0/24 -m state --state NEW -j In_RULE_0
test -n "$i_eth0" && $IPTABLES -A FORWARD -i eth0 -s $i_eth0 -m state --state NEW -j In_RULE_0
$IPTABLES -A FORWARD -i eth0 -s 192.168.1.1 -m state --state NEW -j In_RULE_0
$IPTABLES -A FORWARD -i eth0 -s 192.168.1.0/24 -m state --state NEW -j In_RULE_0
$IPTABLES -A In_RULE_0 -j LOG --log-level info --log-prefix "RULE 0 -- DENY "
$IPTABLES -A In_RULE_0 -j DROP
help me understanding this or give me liks to follow.... thanx
Bookmarks