IPsec: Use left/rightprotoport in GRE mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-12-03 11:21:29 +00:00
parent b89ae1a4e3
commit 90aa4f1083

View File

@@ -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 {