forked from extern/shorewall_code
Cleaner fix for ipsec/vserver issue
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
261af19b4e
commit
9e81a5101f
@ -2556,12 +2556,8 @@ sub match_ipsec_in( $$ ) {
|
||||
my $zoneref = find_zone( $zone );
|
||||
my $optionsref = $zoneref->{options};
|
||||
|
||||
unless ( $optionsref->{super} ) {
|
||||
unless ( $optionsref->{super} || $zoneref->{type} == VSERVER ) {
|
||||
$match = '-m policy --dir in --pol ';
|
||||
|
||||
if ( $zoneref->{type} eq 'vserver' ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( $zoneref->{type} eq 'ipsec' ) {
|
||||
$match .= "ipsec $optionsref->{in_out}{ipsec}$optionsref->{in}{ipsec}";
|
||||
@ -2584,13 +2580,9 @@ sub match_ipsec_out( $$ ) {
|
||||
my $zoneref = find_zone( $zone );
|
||||
my $optionsref = $zoneref->{options};
|
||||
|
||||
unless ( $optionsref->{super} ) {
|
||||
unless ( $optionsref->{super} || $zoneref->{type} == VSERVER ) {
|
||||
$match = '-m policy --dir out --pol ';
|
||||
|
||||
if ( $zoneref->{type} eq 'vserver' ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( $zoneref->{type} eq 'ipsec' ) {
|
||||
$match .= "ipsec $optionsref->{in_out}{ipsec}$optionsref->{out}{ipsec}";
|
||||
} elsif ( have_ipsec ) {
|
||||
|
Loading…
Reference in New Issue
Block a user