mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 10:51:02 +01:00
Added error message for MAC address in rule destination
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@361 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
3ce524d2d8
commit
faa859e84a
@ -28,4 +28,7 @@ Changes since 1.3.11
|
||||
|
||||
13. Added "shorewall show classifiers" command and added packet
|
||||
classification filter display to "shorewall monitor"
|
||||
|
||||
14. Added an error message when the destination in a rule contained a
|
||||
MAC address.
|
||||
|
||||
|
@ -708,7 +708,7 @@ validate_rule() {
|
||||
serv=$server
|
||||
;;
|
||||
~*)
|
||||
fatal_error "Error: Rule \"$rule\" - Server may not be specified by MAC Address"
|
||||
startup_error "Error: Rule \"$rule\" - Destination may not be specified by MAC Address"
|
||||
;;
|
||||
*)
|
||||
dest_interface="-o $server"
|
||||
@ -2027,6 +2027,9 @@ add_a_rule()
|
||||
*.*.*)
|
||||
serv=$server
|
||||
;;
|
||||
~*)
|
||||
fatal_error "Error: Rule \"$rule\" - Destination may not be specified by MAC Address"
|
||||
;;
|
||||
*)
|
||||
dest_interface="-o $server"
|
||||
serv=
|
||||
|
Loading…
Reference in New Issue
Block a user