mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-21 02:08:48 +02:00
Improve error message on maclist upgraded record
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5231 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
3688865dcb
commit
cb2287437f
@ -4,6 +4,8 @@ Changes in 3.4.0 Beta 3
|
|||||||
|
|
||||||
2) Fix ipp2p:udp handling in action body.
|
2) Fix ipp2p:udp handling in action body.
|
||||||
|
|
||||||
|
3) Be more careful about converting pre-3.2 maclist records.
|
||||||
|
|
||||||
Changes in 3.4.0 Beta 2
|
Changes in 3.4.0 Beta 2
|
||||||
|
|
||||||
1) Fix for empty blacklist file.
|
1) Fix for empty blacklist file.
|
||||||
|
@ -144,11 +144,21 @@ setup_mac_lists() # $1 = Phase Number
|
|||||||
target=DROP
|
target=DROP
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
addresses="$mac"
|
case "$interface" in
|
||||||
mac="$interface"
|
*:*:*|~*-*-*)
|
||||||
interface="$disposition"
|
#
|
||||||
disposition=ACCEPT
|
# Pre-3.2 record format
|
||||||
target=RETURN
|
#
|
||||||
|
addresses="$mac"
|
||||||
|
mac="$interface"
|
||||||
|
interface="$disposition"
|
||||||
|
disposition=ACCEPT
|
||||||
|
target=RETURN
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
fatal_error "Invalid DISPOSITION ($disposition) in rule \"$disposition $interface $mac $addresses\""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -36,6 +36,24 @@ Problems Corrected in 3.4.0 Beta 3
|
|||||||
2) Previously, "ipp2p:udp" was incorrectly rejected in the PROTO
|
2) Previously, "ipp2p:udp" was incorrectly rejected in the PROTO
|
||||||
column of an action definition.
|
column of an action definition.
|
||||||
|
|
||||||
|
3) Previously, if an invalid DISPOSITION was specified in a record in
|
||||||
|
/etc/shorewall/maclist, then a confusing error message would
|
||||||
|
result.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
/etc/shorewall/mac:
|
||||||
|
|
||||||
|
ALOW:info eth0 02:0C:03:04:05:06
|
||||||
|
|
||||||
|
Error message:
|
||||||
|
|
||||||
|
ERROR: No hosts on ALOW:info have the maclist option specified
|
||||||
|
|
||||||
|
The new error message is:
|
||||||
|
|
||||||
|
ERROR: Invalid DISPOSITION (ALOW:info) in rule "ALOW:info eth0 02:0C:03:04:05:06"
|
||||||
|
|
||||||
Migration Considerations:
|
Migration Considerations:
|
||||||
|
|
||||||
1) Shorewall supports the notion of "default actions". A default
|
1) Shorewall supports the notion of "default actions". A default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user