mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 08:44:05 +01:00
Fix similar problem with tcrules
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7919 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
161d2df924
commit
c36a24f201
@ -8,6 +8,8 @@ Changes in 4.1.3
|
||||
|
||||
4) Fall back to /bin/sh if SHOREWALL_SHELL isn't viable.
|
||||
|
||||
5) Fix mis-handling of <interface>:<mac>
|
||||
|
||||
Changes in 4.1.2
|
||||
|
||||
1) Enhanced Operational Logging
|
||||
|
@ -22,6 +22,14 @@ Problems corrected in Shorewall 4.1.3.
|
||||
3) If LOG_VERBOSITY is specified without STARTUP_LOG, run-time error
|
||||
messages are produced.
|
||||
|
||||
4) Shorewall-shell was mishandling the entries in /etc/shorewall/rules
|
||||
and in /etc/shorewall/tcrules where both a SOURCE interface and MAC
|
||||
address were specified.
|
||||
|
||||
Example:
|
||||
|
||||
ACCEPT net:eth0:~01-02-03-04-05-06 $FW tcp 22
|
||||
|
||||
Other changes in Shorewall 4.1.3.
|
||||
|
||||
1) If the program named in SHOREWALL_SHELL doesn't exist or is not
|
||||
|
@ -105,6 +105,11 @@ process_tc_rule()
|
||||
$FW:*)
|
||||
r="$(source_ip_range ${source#*:}) "
|
||||
;;
|
||||
*:~*|*:!~*)
|
||||
interface=${source%:*}
|
||||
verify_interface $interface || fatal_error "Unknown interface $interface in rule \"$rule\""
|
||||
r="$(match_source_dev $interface) $(mac_match ${source#*:}) "
|
||||
;;
|
||||
*:*)
|
||||
interface=${source%:*}
|
||||
verify_interface $interface || fatal_error "Unknown interface $interface in rule \"$rule\""
|
||||
|
Loading…
Reference in New Issue
Block a user