mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
IPsec: Allow sending DNS server addresses to RW clients
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -889,6 +889,7 @@ WARNING: untranslated string: guardian logtarget_file = unknown string
|
|||||||
WARNING: untranslated string: guardian logtarget_syslog = unknown string
|
WARNING: untranslated string: guardian logtarget_syslog = unknown string
|
||||||
WARNING: untranslated string: guardian no entries = unknown string
|
WARNING: untranslated string: guardian no entries = unknown string
|
||||||
WARNING: untranslated string: guardian service = unknown string
|
WARNING: untranslated string: guardian service = unknown string
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec invalid ip address or fqdn for rw endpoint = Invalid IP address or FQDN for Host-to-Net Endpoint
|
WARNING: untranslated string: ipsec invalid ip address or fqdn for rw endpoint = Invalid IP address or FQDN for Host-to-Net Endpoint
|
||||||
WARNING: untranslated string: ipsec roadwarrior endpoint = Host-to-Net Endpoint
|
WARNING: untranslated string: ipsec roadwarrior endpoint = Host-to-Net Endpoint
|
||||||
WARNING: untranslated string: netbios nameserver daemon = NetBIOS Nameserver Daemon
|
WARNING: untranslated string: netbios nameserver daemon = NetBIOS Nameserver Daemon
|
||||||
|
|||||||
@@ -1141,6 +1141,7 @@ WARNING: untranslated string: ipfires hostname = IPFire's Hostname
|
|||||||
WARNING: untranslated string: ipinfo = IP info
|
WARNING: untranslated string: ipinfo = IP info
|
||||||
WARNING: untranslated string: ipsec = IPsec
|
WARNING: untranslated string: ipsec = IPsec
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -1224,6 +1224,7 @@ WARNING: untranslated string: ip basic info = Basic IP information
|
|||||||
WARNING: untranslated string: ip info for = IP information for
|
WARNING: untranslated string: ip info for = IP information for
|
||||||
WARNING: untranslated string: ipsec = IPsec
|
WARNING: untranslated string: ipsec = IPsec
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -924,6 +924,7 @@ WARNING: untranslated string: guardian logtarget_file = unknown string
|
|||||||
WARNING: untranslated string: guardian logtarget_syslog = unknown string
|
WARNING: untranslated string: guardian logtarget_syslog = unknown string
|
||||||
WARNING: untranslated string: guardian no entries = unknown string
|
WARNING: untranslated string: guardian no entries = unknown string
|
||||||
WARNING: untranslated string: guardian service = unknown string
|
WARNING: untranslated string: guardian service = unknown string
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec invalid ip address or fqdn for rw endpoint = Invalid IP address or FQDN for Host-to-Net Endpoint
|
WARNING: untranslated string: ipsec invalid ip address or fqdn for rw endpoint = Invalid IP address or FQDN for Host-to-Net Endpoint
|
||||||
WARNING: untranslated string: ipsec roadwarrior endpoint = Host-to-Net Endpoint
|
WARNING: untranslated string: ipsec roadwarrior endpoint = Host-to-Net Endpoint
|
||||||
WARNING: untranslated string: pakfire ago = ago.
|
WARNING: untranslated string: pakfire ago = ago.
|
||||||
|
|||||||
@@ -1063,6 +1063,7 @@ WARNING: untranslated string: invalid logserver protocol = Invalid syslogd serve
|
|||||||
WARNING: untranslated string: ip basic info = Basic IP information
|
WARNING: untranslated string: ip basic info = Basic IP information
|
||||||
WARNING: untranslated string: ip info for = IP information for
|
WARNING: untranslated string: ip info for = IP information for
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -1072,6 +1072,7 @@ WARNING: untranslated string: invalid logserver protocol = Invalid syslogd serve
|
|||||||
WARNING: untranslated string: ip basic info = Basic IP information
|
WARNING: untranslated string: ip basic info = Basic IP information
|
||||||
WARNING: untranslated string: ip info for = IP information for
|
WARNING: untranslated string: ip info for = IP information for
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -1229,6 +1229,7 @@ WARNING: untranslated string: ip basic info = Basic IP information
|
|||||||
WARNING: untranslated string: ip info for = IP information for
|
WARNING: untranslated string: ip info for = IP information for
|
||||||
WARNING: untranslated string: ipsec = IPsec
|
WARNING: untranslated string: ipsec = IPsec
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -1227,6 +1227,7 @@ WARNING: untranslated string: ip basic info = Basic IP information
|
|||||||
WARNING: untranslated string: ip info for = IP information for
|
WARNING: untranslated string: ip info for = IP information for
|
||||||
WARNING: untranslated string: ipsec = IPsec
|
WARNING: untranslated string: ipsec = IPsec
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -999,6 +999,7 @@ WARNING: untranslated string: invalid ip or hostname = Invalid IP Address or Hos
|
|||||||
WARNING: untranslated string: ip basic info = Basic IP information
|
WARNING: untranslated string: ip basic info = Basic IP information
|
||||||
WARNING: untranslated string: ip info for = IP information for
|
WARNING: untranslated string: ip info for = IP information for
|
||||||
WARNING: untranslated string: ipsec connection = IPsec Connection
|
WARNING: untranslated string: ipsec connection = IPsec Connection
|
||||||
|
WARNING: untranslated string: ipsec dns server address is invalid = Invalid DNS server IP address(es)
|
||||||
WARNING: untranslated string: ipsec interface mode gre = GRE
|
WARNING: untranslated string: ipsec interface mode gre = GRE
|
||||||
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
WARNING: untranslated string: ipsec interface mode none = - None (Default) -
|
||||||
WARNING: untranslated string: ipsec interface mode vti = VTI
|
WARNING: untranslated string: ipsec interface mode vti = VTI
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
< g.dtm
|
< g.dtm
|
||||||
< g.lite
|
< g.lite
|
||||||
< insert removable device
|
< insert removable device
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec invalid ip address or fqdn for rw endpoint
|
< ipsec invalid ip address or fqdn for rw endpoint
|
||||||
< ipsec roadwarrior endpoint
|
< ipsec roadwarrior endpoint
|
||||||
< netbios nameserver daemon
|
< netbios nameserver daemon
|
||||||
@@ -540,6 +541,7 @@
|
|||||||
< ip info for
|
< ip info for
|
||||||
< ipsec
|
< ipsec
|
||||||
< ipsec connection
|
< ipsec connection
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec interface mode gre
|
< ipsec interface mode gre
|
||||||
< ipsec interface mode none
|
< ipsec interface mode none
|
||||||
< ipsec interface mode vti
|
< ipsec interface mode vti
|
||||||
@@ -929,6 +931,7 @@
|
|||||||
< download apple profile
|
< download apple profile
|
||||||
< g.dtm
|
< g.dtm
|
||||||
< g.lite
|
< g.lite
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec invalid ip address or fqdn for rw endpoint
|
< ipsec invalid ip address or fqdn for rw endpoint
|
||||||
< ipsec roadwarrior endpoint
|
< ipsec roadwarrior endpoint
|
||||||
< upload fcdsl.o
|
< upload fcdsl.o
|
||||||
@@ -1142,6 +1145,7 @@
|
|||||||
< ip basic info
|
< ip basic info
|
||||||
< ip info for
|
< ip info for
|
||||||
< ipsec connection
|
< ipsec connection
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec interface mode gre
|
< ipsec interface mode gre
|
||||||
< ipsec interface mode none
|
< ipsec interface mode none
|
||||||
< ipsec interface mode vti
|
< ipsec interface mode vti
|
||||||
@@ -1555,6 +1559,7 @@
|
|||||||
< ip basic info
|
< ip basic info
|
||||||
< ip info for
|
< ip info for
|
||||||
< ipsec connection
|
< ipsec connection
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec interface mode gre
|
< ipsec interface mode gre
|
||||||
< ipsec interface mode none
|
< ipsec interface mode none
|
||||||
< ipsec interface mode vti
|
< ipsec interface mode vti
|
||||||
@@ -2291,6 +2296,7 @@
|
|||||||
< ip info for
|
< ip info for
|
||||||
< ipsec
|
< ipsec
|
||||||
< ipsec connection
|
< ipsec connection
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec interface mode gre
|
< ipsec interface mode gre
|
||||||
< ipsec interface mode none
|
< ipsec interface mode none
|
||||||
< ipsec interface mode vti
|
< ipsec interface mode vti
|
||||||
@@ -3188,6 +3194,7 @@
|
|||||||
< ip info for
|
< ip info for
|
||||||
< ipsec
|
< ipsec
|
||||||
< ipsec connection
|
< ipsec connection
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec interface mode gre
|
< ipsec interface mode gre
|
||||||
< ipsec interface mode none
|
< ipsec interface mode none
|
||||||
< ipsec interface mode vti
|
< ipsec interface mode vti
|
||||||
@@ -3652,6 +3659,7 @@
|
|||||||
< ip basic info
|
< ip basic info
|
||||||
< ip info for
|
< ip info for
|
||||||
< ipsec connection
|
< ipsec connection
|
||||||
|
< ipsec dns server address is invalid
|
||||||
< ipsec interface mode gre
|
< ipsec interface mode gre
|
||||||
< ipsec interface mode none
|
< ipsec interface mode none
|
||||||
< ipsec interface mode vti
|
< ipsec interface mode vti
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ $cgiparams{'MODE'} = "tunnel";
|
|||||||
$cgiparams{'INTERFACE_MODE'} = "";
|
$cgiparams{'INTERFACE_MODE'} = "";
|
||||||
$cgiparams{'INTERFACE_ADDRESS'} = "";
|
$cgiparams{'INTERFACE_ADDRESS'} = "";
|
||||||
$cgiparams{'INTERFACE_MTU'} = 1500;
|
$cgiparams{'INTERFACE_MTU'} = 1500;
|
||||||
|
$cgiparams{'DNS_SERVERS'} = "";
|
||||||
&Header::getcgihash(\%cgiparams, {'wantfile' => 1, 'filevar' => 'FH'});
|
&Header::getcgihash(\%cgiparams, {'wantfile' => 1, 'filevar' => 'FH'});
|
||||||
|
|
||||||
my %APPLE_CIPHERS = (
|
my %APPLE_CIPHERS = (
|
||||||
@@ -511,6 +512,13 @@ sub writeipsecfiles {
|
|||||||
# Fragmentation
|
# Fragmentation
|
||||||
print CONF "\tfragmentation=yes\n";
|
print CONF "\tfragmentation=yes\n";
|
||||||
|
|
||||||
|
# DNS Servers for RW
|
||||||
|
if ($lconfighash{$key}[3] eq 'host') {
|
||||||
|
my @servers = split(/\|/, $lconfighash{$key}[39]);
|
||||||
|
|
||||||
|
print CONF "\trightdns=" . join(",", @servers) . "\n";
|
||||||
|
}
|
||||||
|
|
||||||
print CONF "\n";
|
print CONF "\n";
|
||||||
} #foreach key
|
} #foreach key
|
||||||
|
|
||||||
@@ -1612,6 +1620,7 @@ END
|
|||||||
$cgiparams{'INTERFACE_MODE'} = $confighash{$cgiparams{'KEY'}}[36];
|
$cgiparams{'INTERFACE_MODE'} = $confighash{$cgiparams{'KEY'}}[36];
|
||||||
$cgiparams{'INTERFACE_ADDRESS'} = $confighash{$cgiparams{'KEY'}}[37];
|
$cgiparams{'INTERFACE_ADDRESS'} = $confighash{$cgiparams{'KEY'}}[37];
|
||||||
$cgiparams{'INTERFACE_MTU'} = $confighash{$cgiparams{'KEY'}}[38];
|
$cgiparams{'INTERFACE_MTU'} = $confighash{$cgiparams{'KEY'}}[38];
|
||||||
|
$cgiparams{'DNS_SERVERS'} = $confighash{$cgiparams{'KEY'}}[39];
|
||||||
|
|
||||||
if (!$cgiparams{'DPD_DELAY'}) {
|
if (!$cgiparams{'DPD_DELAY'}) {
|
||||||
$cgiparams{'DPD_DELAY'} = 30;
|
$cgiparams{'DPD_DELAY'} = 30;
|
||||||
@@ -1745,6 +1754,16 @@ END
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($cgiparams{'TYPE'} eq 'host') {
|
||||||
|
my @servers = split(",", $cgiparams{'DNS_SERVERS'});
|
||||||
|
foreach my $server (@servers) {
|
||||||
|
unless (&Network::check_ip_address($server)) {
|
||||||
|
$errormessage = $Lang::tr{'ipsec dns server address is invalid'};
|
||||||
|
goto VPNCONF_ERROR;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($cgiparams{'ENABLED'} !~ /^(on|off)$/) {
|
if ($cgiparams{'ENABLED'} !~ /^(on|off)$/) {
|
||||||
$errormessage = $Lang::tr{'invalid input'};
|
$errormessage = $Lang::tr{'invalid input'};
|
||||||
goto VPNCONF_ERROR;
|
goto VPNCONF_ERROR;
|
||||||
@@ -2147,7 +2166,7 @@ END
|
|||||||
my $key = $cgiparams{'KEY'};
|
my $key = $cgiparams{'KEY'};
|
||||||
if (! $key) {
|
if (! $key) {
|
||||||
$key = &General::findhasharraykey (\%confighash);
|
$key = &General::findhasharraykey (\%confighash);
|
||||||
foreach my $i (0 .. 38) { $confighash{$key}[$i] = "";}
|
foreach my $i (0 .. 39) { $confighash{$key}[$i] = "";}
|
||||||
}
|
}
|
||||||
$confighash{$key}[0] = $cgiparams{'ENABLED'};
|
$confighash{$key}[0] = $cgiparams{'ENABLED'};
|
||||||
$confighash{$key}[1] = $cgiparams{'NAME'};
|
$confighash{$key}[1] = $cgiparams{'NAME'};
|
||||||
@@ -2198,6 +2217,7 @@ END
|
|||||||
$confighash{$key}[36] = $cgiparams{'INTERFACE_MODE'};
|
$confighash{$key}[36] = $cgiparams{'INTERFACE_MODE'};
|
||||||
$confighash{$key}[37] = $cgiparams{'INTERFACE_ADDRESS'};
|
$confighash{$key}[37] = $cgiparams{'INTERFACE_ADDRESS'};
|
||||||
$confighash{$key}[38] = $cgiparams{'INTERFACE_MTU'};
|
$confighash{$key}[38] = $cgiparams{'INTERFACE_MTU'};
|
||||||
|
$confighash{$key}[39] = join("|", split(",", $cgiparams{'DNS_SERVERS'}));
|
||||||
|
|
||||||
# free unused fields!
|
# free unused fields!
|
||||||
$confighash{$key}[15] = 'off';
|
$confighash{$key}[15] = 'off';
|
||||||
@@ -2280,6 +2300,7 @@ END
|
|||||||
$cgiparams{'INTERFACE_MODE'} = "";
|
$cgiparams{'INTERFACE_MODE'} = "";
|
||||||
$cgiparams{'INTERFACE_ADDRESS'} = "";
|
$cgiparams{'INTERFACE_ADDRESS'} = "";
|
||||||
$cgiparams{'INTERFACE_MTU'} = 1500;
|
$cgiparams{'INTERFACE_MTU'} = 1500;
|
||||||
|
$cgiparams{'DNS_SERVERS'} = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
VPNCONF_ERROR:
|
VPNCONF_ERROR:
|
||||||
@@ -2376,11 +2397,8 @@ END
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
my $disabled;
|
my $blob = "";
|
||||||
my $blob;
|
if ($cgiparams{'TYPE'} eq 'net') {
|
||||||
if ($cgiparams{'TYPE'} eq 'host') {
|
|
||||||
$disabled = "disabled='disabled'";
|
|
||||||
} elsif ($cgiparams{'TYPE'} eq 'net') {
|
|
||||||
$blob = "<img src='/blob.gif' alt='*' />";
|
$blob = "<img src='/blob.gif' alt='*' />";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2390,6 +2408,9 @@ EOF
|
|||||||
my @remote_subnets = split(/\|/, $cgiparams{'REMOTE_SUBNET'});
|
my @remote_subnets = split(/\|/, $cgiparams{'REMOTE_SUBNET'});
|
||||||
my $remote_subnets = join(",", @remote_subnets);
|
my $remote_subnets = join(",", @remote_subnets);
|
||||||
|
|
||||||
|
my @dns_servers = split(/\|/, $cgiparams{'DNS_SERVERS'});
|
||||||
|
my $dns_servers = join(",", @dns_servers);
|
||||||
|
|
||||||
print <<END;
|
print <<END;
|
||||||
<tr>
|
<tr>
|
||||||
<td width='20%'>$Lang::tr{'enabled'}</td>
|
<td width='20%'>$Lang::tr{'enabled'}</td>
|
||||||
@@ -2425,10 +2446,26 @@ END
|
|||||||
<td width='30%'>
|
<td width='30%'>
|
||||||
<input type='text' name='LOCAL_SUBNET' value='$local_subnets' size="25" />
|
<input type='text' name='LOCAL_SUBNET' value='$local_subnets' size="25" />
|
||||||
</td>
|
</td>
|
||||||
<td class='boldbase' nowrap='nowrap' width='20%'>$Lang::tr{'remote subnet'} $blob</td>
|
END
|
||||||
|
|
||||||
|
if ($cgiparams{'TYPE'} eq "net") {
|
||||||
|
print <<END;
|
||||||
|
<td class='boldbase' nowrap='nowrap' width='20%'>$Lang::tr{'remote subnet'} <img src='/blob.gif' alt='*' /></td>
|
||||||
<td width='30%'>
|
<td width='30%'>
|
||||||
<input $disabled type='text' name='REMOTE_SUBNET' value='$remote_subnets' size="25" />
|
<input type='text' name='REMOTE_SUBNET' value='$remote_subnets' size="25" />
|
||||||
</td>
|
</td>
|
||||||
|
END
|
||||||
|
|
||||||
|
} elsif ($cgiparams{'TYPE'} eq "host") {
|
||||||
|
print <<END;
|
||||||
|
<td class='boldbase' nowrap='nowrap' width='20%'>$Lang::tr{'dns servers'}:</td>
|
||||||
|
<td width='30%'>
|
||||||
|
<input type='text' name='DNS_SERVERS' value='$dns_servers' size="25" />
|
||||||
|
</td>
|
||||||
|
END
|
||||||
|
}
|
||||||
|
|
||||||
|
print <<END;
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='boldbase' width='20%'>$Lang::tr{'vpn local id'}:</td>
|
<td class='boldbase' width='20%'>$Lang::tr{'vpn local id'}:</td>
|
||||||
@@ -2764,6 +2801,7 @@ if(($cgiparams{'ACTION'} eq $Lang::tr{'advanced'}) ||
|
|||||||
$cgiparams{'INTERFACE_MODE'} = $confighash{$cgiparams{'KEY'}}[36];
|
$cgiparams{'INTERFACE_MODE'} = $confighash{$cgiparams{'KEY'}}[36];
|
||||||
$cgiparams{'INTERFACE_ADDRESS'} = $confighash{$cgiparams{'KEY'}}[37];
|
$cgiparams{'INTERFACE_ADDRESS'} = $confighash{$cgiparams{'KEY'}}[37];
|
||||||
$cgiparams{'INTERFACE_MTU'} = $confighash{$cgiparams{'KEY'}}[38];
|
$cgiparams{'INTERFACE_MTU'} = $confighash{$cgiparams{'KEY'}}[38];
|
||||||
|
$cgiparams{'DNS_SERVERS'} = $confighash{$cgiparams{'KEY'}}[39];
|
||||||
|
|
||||||
if (!$cgiparams{'DPD_DELAY'}) {
|
if (!$cgiparams{'DPD_DELAY'}) {
|
||||||
$cgiparams{'DPD_DELAY'} = 30;
|
$cgiparams{'DPD_DELAY'} = 30;
|
||||||
|
|||||||
@@ -1547,6 +1547,7 @@
|
|||||||
'ipinfo' => 'IP info',
|
'ipinfo' => 'IP info',
|
||||||
'ipsec' => 'IPsec',
|
'ipsec' => 'IPsec',
|
||||||
'ipsec connection' => 'IPsec Connection',
|
'ipsec connection' => 'IPsec Connection',
|
||||||
|
'ipsec dns server address is invalid' => 'Invalid DNS server IP address(es)',
|
||||||
'ipsec interface mode gre' => 'GRE',
|
'ipsec interface mode gre' => 'GRE',
|
||||||
'ipsec interface mode none' => '- None (Default) -',
|
'ipsec interface mode none' => '- None (Default) -',
|
||||||
'ipsec interface mode vti' => 'VTI',
|
'ipsec interface mode vti' => 'VTI',
|
||||||
|
|||||||
Reference in New Issue
Block a user