forked from extern/shorewall_code
Verify interface names in the SOURCE column of /etc/shorewall/tcrules
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@318 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
507fa8069d
commit
c44cb44f7c
@ -1569,18 +1569,22 @@ process_tc_rule()
|
|||||||
|
|
||||||
if [ "x$source" != "x-" ]; then
|
if [ "x$source" != "x-" ]; then
|
||||||
case $source in
|
case $source in
|
||||||
*.*.*)
|
*.*.*)
|
||||||
r="-s $source "
|
r="-s $source "
|
||||||
;;
|
;;
|
||||||
~*)
|
~*)
|
||||||
r=`mac_match $source`
|
r=`mac_match $source`
|
||||||
;;
|
;;
|
||||||
$FW)
|
$FW)
|
||||||
chain=tcout
|
chain=tcout
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
r="-i $source "
|
if ! list_search $source $all_interfaces; then
|
||||||
;;
|
fatal_error "Error: Unknown interface $source"
|
||||||
|
fi
|
||||||
|
|
||||||
|
r="-i $source "
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
[ "x$dest" = "x-" ] || r="${r}-d $dest "
|
[ "x$dest" = "x-" ] || r="${r}-d $dest "
|
||||||
|
Loading…
Reference in New Issue
Block a user