mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
IPsec: Use left/rightprotoport in GRE mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -301,7 +301,7 @@ sub writeipsecfiles {
|
||||
print CONF "\tleft=$localside\n";
|
||||
|
||||
if ($interface_mode eq "gre") {
|
||||
print CONF "\tleftsubnet=%dynamic[gre]\n";
|
||||
print CONF "\tleftprotoport=gre\n";
|
||||
} elsif ($interface_mode eq "vti") {
|
||||
print CONF "\tleftsubnet=0.0.0.0/0\n";
|
||||
} else {
|
||||
@@ -314,7 +314,7 @@ sub writeipsecfiles {
|
||||
|
||||
if ($lconfighash{$key}[3] eq 'net') {
|
||||
if ($interface_mode eq "gre") {
|
||||
print CONF "\trightsubnet=%dynamic[gre]\n";
|
||||
print CONF "\trightprotoport=gre\n";
|
||||
} elsif ($interface_mode eq "vti") {
|
||||
print CONF "\trightsubnet=0.0.0.0/0\n";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user