mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove auto establish. It's never worked.
This commit is contained in:
parent
3fdb04a65d
commit
c25a575f1d
@ -552,21 +552,6 @@ EOD;
|
||||
|
||||
/* start racoon */
|
||||
mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf");
|
||||
|
||||
usleep(100);
|
||||
|
||||
if (is_array($ipseccfg['tunnel'])) {
|
||||
foreach ($ipseccfg['tunnel'] as $tunnel) {
|
||||
if (isset($tunnel['auto'])) {
|
||||
$remotehost = substr($tunnel['remote-subnet'],0,strpos($tunnel['remote-subnet'],"/"));
|
||||
$srchost = vpn_endpoint_determine($tunnel, $curwanip);
|
||||
if ($srchost) {
|
||||
log_error("Bringing ipsec tunnel up with ping -c 10 -S {$srchost} {$remotehost}");
|
||||
mwexec_bg("/sbin/ping -c 10 -S {$srchost} {$remotehost}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -187,7 +187,7 @@ if ($_POST) {
|
||||
|
||||
if (!$input_errors) {
|
||||
$ipsecent['disabled'] = $_POST['disabled'] ? true : false;
|
||||
$ipsecent['auto'] = $_POST['auto'] ? true : false;
|
||||
//$ipsecent['auto'] = $_POST['auto'] ? true : false;
|
||||
$ipsecent['interface'] = $pconfig['interface'];
|
||||
pconfig_to_address($ipsecent['local-subnet'], $_POST['localnet'], $_POST['localnetmask']);
|
||||
$ipsecent['remote-subnet'] = $_POST['remotenet'] . "/" . $_POST['remotebits'];
|
||||
@ -304,14 +304,7 @@ function methodsel_change() {
|
||||
<span class="vexpl">Set this option to disable this tunnel without
|
||||
removing it from the list.</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq">Auto-establish</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="auto" type="checkbox" id="auto" value="yes" <?php if ($pconfig['auto']) echo "checked"; ?>>
|
||||
<strong>Automatically establish this tunnel</strong><br>
|
||||
<span class="vexpl">Set this option to automatically re-establish this tunnel after reboots/reconfigures. If this is not set, the tunnel is established on demand.</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq">Interface</td>
|
||||
<td width="78%" class="vtable"><select name="interface" class="formfld">
|
||||
<?php $interfaces = array('wan' => 'WAN', 'lan' => 'LAN');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user