mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 04:32:01 +02:00
Fix ORIGINAL DEST issue
This commit is contained in:
parent
f723bc2ef1
commit
440cc08802
@ -1293,10 +1293,12 @@ sub process_rule1 ( $$$$$$$$$$$$$ ) {
|
|||||||
$loglevel = '';
|
$loglevel = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
unless ( $origdest eq '-' ) {
|
if ( $origdest ) {
|
||||||
require_capability( 'CONNTRACK_MATCH', 'ORIGINAL DEST in a non-NAT rule', 's' ) unless $actiontype & NATRULE;
|
unless ( $origdest eq '-' ) {
|
||||||
} else {
|
require_capability( 'CONNTRACK_MATCH', 'ORIGINAL DEST in a non-NAT rule', 's' ) unless $actiontype & NATRULE;
|
||||||
$origdest = '';
|
} else {
|
||||||
|
$origdest = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$rule .= "-m conntrack --ctorigdstport $origdstports " if $capabilities{NEW_CONNTRACK_MATCH} && $origdstports;
|
$rule .= "-m conntrack --ctorigdstport $origdstports " if $capabilities{NEW_CONNTRACK_MATCH} && $origdstports;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user