hotsanic |
Subversion Repositories: |
Rev 6 | Rev 8 | |
---|---|---|
Line 31... | Line 31... | |
|
| |
print "\nclearing old and setting up new accounting chains\n"; |
print "\nclearing old and setting up new accounting chains\n"; | |
foreach $prt ("tcp","udp","other") { |
foreach $prt ("tcp","udp","other") { | |
system("$IPTABLES -F acct_ext_$prt > /dev/null"); |
system("$IPTABLES -F acct_ext_$prt > /dev/null"); | |
system("$IPTABLES -X acct_ext_$prt > /dev/null"); |
system("$IPTABLES -X acct_ext_$prt > /dev/null"); | |
system("$IPTABLES -F acct_int_$prt > /dev/null "); |
system("$IPTABLES -F acct_int_$prt > /dev/null"); | |
system("$IPTABLES -X acct_int_$prt > /dev/null"); |
system("$IPTABLES -X acct_int_$prt > /dev/null"); | |
system("$IPTABLES -N acct_ext_$prt > /dev/null"); |
system("$IPTABLES -N acct_ext_$prt > /dev/null"); | |
system("$IPTABLES -N acct_int_$prt > /dev/null"); |
system("$IPTABLES -N acct_int_$prt > /dev/null"); | |
} |
} | |
|
|