364 |
364 |
<div class="col-sm-2">
|
365 |
365 |
<select id="l2tp_subnet" name="l2tp_subnet" class="form-control">
|
366 |
366 |
<?php
|
367 |
|
for($x=0; $x<33; $x++) {
|
|
367 |
for($x=0; $x<33; $x++) {
|
368 |
368 |
if($x == $pconfig['l2tp_subnet'])
|
369 |
369 |
$SELECTED = " selected=\"selected\"";
|
370 |
370 |
else
|
371 |
371 |
$SELECTED = "";
|
372 |
372 |
echo "<option value=\"{$x}\"{$SELECTED}>{$x}</option>\n";
|
373 |
|
}
|
|
373 |
}
|
374 |
374 |
?>
|
375 |
375 |
</select>
|
376 |
376 |
<span class="help-block">
|
... | ... | |
384 |
384 |
<div class="col-sm-2">
|
385 |
385 |
<select id="n_l2tp_units" name="n_l2tp_units" class="form-control">
|
386 |
386 |
<?php
|
387 |
|
for($x=0; $x<255; $x++) {
|
|
387 |
for($x=0; $x<255; $x++) {
|
388 |
388 |
if($x == $pconfig['n_l2tp_units'])
|
389 |
389 |
$SELECTED = " selected=\"selected\"";
|
390 |
390 |
else
|
391 |
391 |
$SELECTED = "";
|
392 |
392 |
echo "<option value=\"{$x}\"{$SELECTED}>{$x}</option>\n";
|
393 |
|
}
|
|
393 |
}
|
394 |
394 |
?>
|
395 |
395 |
</select>
|
396 |
396 |
<span class="help-block">
|
... | ... | |
414 |
414 |
<div class="col-sm-2">
|
415 |
415 |
<?=$mandfldhtml?><select name="paporchap" id="paporchap" class="form-control">
|
416 |
416 |
<option value='chap'<?php if($pconfig['paporchap'] == "chap") echo " selected=\"selected\""?>><?=gettext("CHAP")?></option>
|
|
417 |
<option value='chap-msv2'<?php if ($pconfig['paporchap'] == "chap-msv2") echo " selected=\"selected\""?>><?=gettext("MS-CHAPv2")?></option>
|
417 |
418 |
<option value='pap'<?php if($pconfig['paporchap'] == "pap") echo " selected=\"selected\""?>><?=gettext("PAP")?></option>
|
418 |
419 |
</select>
|
419 |
420 |
<span class="help-block">
|
... | ... | |
426 |
427 |
<label for="l2tp_dns1" class="col-sm-2 control-label"><?=gettext("L2TP DNS Servers")?></label>
|
427 |
428 |
<div class="col-sm-10">
|
428 |
429 |
<?=$mandfldhtml?><input name="l2tp_dns1" type="text" class="formfld unknown form-control" id="l2tp_dns1" size="20" value="<?=htmlspecialchars($pconfig['l2tp_dns1'])?>" />
|
429 |
|
<input name="l2tp_dns2" type="text" class="formfld unknown form-control" id="l2tp_dns2" size="20" value="<?=htmlspecialchars($pconfig['l2tp_dns2'])?>" />
|
|
430 |
<input name="l2tp_dns2" type="text" class="formfld unknown form-control" id="l2tp_dns2" size="20" value="<?=htmlspecialchars($pconfig['l2tp_dns2'])?>" />
|
430 |
431 |
<span class="help-block">
|
431 |
|
<?=gettext("primary and secondary DNS servers assigned to L2TP clients")?>
|
|
432 |
<?=gettext("primary and secondary DNS servers assigned to L2TP clients")?>
|
432 |
433 |
</span>
|
433 |
|
</div>
|
|
434 |
</div>
|
434 |
435 |
</div>
|
435 |
436 |
|
436 |
437 |
<div class="form-group">
|
437 |
438 |
<label for="wins" class="col-sm-2 control-label"><?=gettext("WINS Server")?></label>
|
438 |
439 |
<div class="col-sm-10">
|
439 |
440 |
<input name="wins" class="formfld unknown form-control" id="wins" size="20" value="<?=htmlspecialchars($pconfig['wins'])?>" />
|
440 |
|
</div>
|
|
441 |
</div>
|
441 |
442 |
</div>
|
442 |
443 |
</div>
|
443 |
444 |
</div>
|
... | ... | |
456 |
457 |
<?=gettext("Use a RADIUS server for authentication")?>
|
457 |
458 |
</label>
|
458 |
459 |
<span class="help-block">
|
459 |
|
<?=gettext("When set, all users will be authenticated using the RADIUS server specified below. The local user database will not be used.")?>
|
|
460 |
<?=gettext("When set, all users will be authenticated using the RADIUS server specified below. The local user database will not be used.")?>
|
460 |
461 |
</span>
|
461 |
462 |
</div>
|
462 |
463 |
</div>
|
... | ... | |
522 |
523 |
//]]>
|
523 |
524 |
</script>
|
524 |
525 |
|
525 |
|
<?php include("foot.inc")?>
|
|
526 |
<?php include("foot.inc")?>
|
Add MS-CHAPv2 option to L2TP Configuration
See [#4732](https://redmine.pfsense.org/issues/4732)