Lines 225-231
Link Here
|
225 |
for chain in "$table"/*; do |
225 |
for chain in "$table"/*; do |
226 |
[ "`basename $chain`" = "loadorder" ] && continue |
226 |
[ "`basename $chain`" = "loadorder" ] && continue |
227 |
if [ -f "$chain" ] && [ -s "$chain" ]; then |
227 |
if [ -f "$chain" ] && [ -s "$chain" ]; then |
228 |
egrep -q "([^-]\b|^)$chain(\b[^-]|$)" < <(echo "$IPTABLES_SYSTEM_CHAINS") || |
228 |
egrep -q "([^-]\b|^)`basename $chain`(\b[^-]|$)" < <(echo "$IPTABLES_SYSTEM_CHAINS") || |
229 |
{ |
229 |
{ |
230 |
print_message "Creating chain `basename $chain` in table `basename $table`" |
230 |
print_message "Creating chain `basename $chain` in table `basename $table`" |
231 |
iptables_create_chain `basename $chain` -t `basename $table` |
231 |
iptables_create_chain `basename $chain` -t `basename $table` |
Lines 316-322
Link Here
|
316 |
for chain in "$table"/*; do |
316 |
for chain in "$table"/*; do |
317 |
[ "`basename $chain`" = "loadorder" ] && continue |
317 |
[ "`basename $chain`" = "loadorder" ] && continue |
318 |
if [ -f "$chain" ] && [ -s "$chain" ] ; then |
318 |
if [ -f "$chain" ] && [ -s "$chain" ] ; then |
319 |
egrep -q "([^-]\b|^)$chain(\b[^-]|$)" < <(echo "$IPTABLES_SYSTEM_CHAINS") || |
319 |
egrep -q "([^-]\b|^)`basename $chain`(\b[^-]|$)" < <(echo "$IPTABLES_SYSTEM_CHAINS") || |
320 |
{ |
320 |
{ |
321 |
print_message "Deleting chain `basename $chain` from table `basename $table`" |
321 |
print_message "Deleting chain `basename $chain` from table `basename $table`" |
322 |
iptables_delete_chain `basename $chain` -t `basename $table` |
322 |
iptables_delete_chain `basename $chain` -t `basename $table` |