RE::IPTables::IPv4
am 02.07.2005 09:32:08 von amreshHi to all
I am using IPTables::IPv4
but i have problem when i run file iptable.pl than iptable rule will be
overwrite on previous iptable rule. I have also problem regarding how to
delete iptables rules in use IPTables::IPv4 and how to create iptable rule
I am writing my code*************************8
#iptable.pl
************************************************
$table = IPTables::IPv4::init('filter');
use IPTables::IPv4;
$table = IPTables::IPv4::init('filter');
%IPTables::IPv4 = (
filter => {
INPUT => {
rules => [
{
source => '10.10.10.10/8',
jump => 'ACCEPT'
}
],
pcnt => 50000,
bcnt => 100000,
policy => 'DROP'
}
}
);
Thanks...