From faa859e84a39efc353c1284898725b151f295d7e Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 10 Dec 2002 22:48:04 +0000 Subject: [PATCH] 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 --- Shorewall/changelog.txt | 3 +++ Shorewall/firewall | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Shorewall/changelog.txt b/Shorewall/changelog.txt index 2ed1e52cd..5d93733d1 100755 --- a/Shorewall/changelog.txt +++ b/Shorewall/changelog.txt @@ -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. diff --git a/Shorewall/firewall b/Shorewall/firewall index d7c029ea8..3033c3b39 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -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=