Revision 70085c73
Added by Carlos Eduardo Ramos about 15 years ago
usr/local/www/vpn_pptp.php | ||
---|---|---|
303 | 303 |
<td width="22%" valign="top" class="vtable"> </td> |
304 | 304 |
<td width="78%" class="vtable"> |
305 | 305 |
<input name="mode" type="radio" onclick="enable_change(false)" value="off" |
306 |
<?php if (($pconfig['mode'] != "server") && ($pconfig['mode'] != "redir")) echo gettext("checked");?>>
|
|
307 |
<?=gettext("Off");?></td>
|
|
306 |
<?php if (($pconfig['mode'] != "server") && ($pconfig['mode'] != "redir")) echo "checked";?>>
|
|
307 |
Off</td>
|
|
308 | 308 |
<tr> |
309 | 309 |
<td width="22%" valign="top" class="vtable"> </td> |
310 | 310 |
<td width="78%" class="vtable"> |
311 |
<input type="radio" name="mode" value="redir" onclick="enable_change(false)" <?php if ($pconfig['mode'] == "redir") echo gettext("checked"); ?>> |
|
311 |
|
|
312 |
<input type="radio" name="mode" value="redir" onclick="enable_change(false)" <?php if ($pconfig['mode'] == "redir") echo "checked" ?>> |
|
312 | 313 |
<?=gettext("Redirect incoming PPTP connections to");?>:</td> |
313 |
<tr> |
|
314 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("PPTP redirection");?></td> |
|
314 |
|
|
315 | 315 |
<td width="78%" class="vtable"> |
316 | 316 |
<?=$mandfldhtml;?><input name="redir" type="text" class="formfld unknown" id="redir" size="20" value="<?=htmlspecialchars($pconfig['redir']);?>"> |
317 | 317 |
<br> |
318 |
<?=gettext("Enter the IP address of a host which will accept incoming ". |
|
319 |
"PPTP connections.");?></td>
|
|
318 |
<?=gettext("Enter the IP address of a host which will accept incoming " .
|
|
319 |
"PPTP connections"); ?>.</td>
|
|
320 | 320 |
<tr> |
321 | 321 |
<td width="22%" valign="top" class="vtable"> </td> |
322 | 322 |
<td width="78%" class="vtable"> |
323 |
<input type="radio" name="mode" value="server" onclick="enable_change(false)" <?php if ($pconfig['mode'] == "server") echo gettext("checked"); ?>>
|
|
324 |
<?=gettext("Enable PPTP server");?></td> |
|
323 |
<input type="radio" name="mode" value="server" onclick="enable_change(false)" <?php if ($pconfig['mode'] == "server") echo "checked"; ?>>
|
|
324 |
<?=gettext("Enable PPTP server"); ?></td>
|
|
325 | 325 |
</tr> |
326 | 326 |
<tr> |
327 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("No. PPTP users");?></td> |
|
327 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("No. PPTP users"); ?></td>
|
|
328 | 328 |
<td width="78%" class="vtable"> |
329 | 329 |
<select id="n_pptp_units" name="n_pptp_units"> |
330 | 330 |
<?php |
... | ... | |
338 | 338 |
} |
339 | 339 |
?> |
340 | 340 |
</select> |
341 |
<br><?=gettext("Hint: 10 is TEN pptp clients");?> |
|
341 |
<br><?=gettext("Hint: 10 is TEN pptp clients"); ?>
|
|
342 | 342 |
</td> |
343 | 343 |
</tr> |
344 | 344 |
<tr> |
345 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Server address");?></td> |
|
345 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Server address"); ?></td>
|
|
346 | 346 |
<td width="78%" class="vtable"> |
347 | 347 |
<?=$mandfldhtml;?><input name="localip" type="text" class="formfld unknown" id="localip" size="20" value="<?=htmlspecialchars($pconfig['localip']);?>"> |
348 | 348 |
<br> |
349 |
<?=gettext("Enter the IP address the PPTP server should use on its side ". |
|
350 |
"for all clients.");?></td>
|
|
349 |
<?=gettext("Enter the IP address the PPTP server should use on its side " .
|
|
350 |
"for all clients"); ?>.</td>
|
|
351 | 351 |
</tr> |
352 | 352 |
<tr> |
353 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Remote address ". |
|
354 |
"range");?></td> |
|
353 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Remote address " .
|
|
354 |
"range"); ?></td>
|
|
355 | 355 |
<td width="78%" class="vtable"> |
356 | 356 |
<?=$mandfldhtml;?><input name="remoteip" type="text" class="formfld unknown" id="remoteip" size="20" value="<?=htmlspecialchars($pconfig['remoteip']);?>"> |
357 | 357 |
<br> |
358 |
<?=gettext("Specify the starting address for the client IP subnet.");?><br>
|
|
358 |
<?=gettext("Specify the starting address for the client IP subnet"); ?>.<br>
|
|
359 | 359 |
</tr> |
360 | 360 |
<tr> |
361 |
<td width="22%" valign="top" class="vncell"><?=gettext("PPTP DNS Servers");?></td> |
|
361 |
<td width="22%" valign="top" class="vncell"><?=gettext("PPTP DNS Servers"); ?></td>
|
|
362 | 362 |
<td width="78%" class="vtable"> |
363 | 363 |
<?=$mandfldhtml;?><input name="pptp_dns1" type="text" class="formfld unknown" id="pptp_dns1" size="20" value="<?=htmlspecialchars($pconfig['pptp_dns1']);?>"> |
364 | 364 |
<br> |
365 | 365 |
<input name="pptp_dns2" type="text" class="formfld unknown" id="pptp_dns2" size="20" value="<?=htmlspecialchars($pconfig['pptp_dns2']);?>"> |
366 | 366 |
<br> |
367 |
<?=gettext("primary and secondary DNS servers assigned to PPTP clients");?><br> |
|
367 |
<?=gettext("primary and secondary DNS servers assigned to PPTP clients"); ?><br>
|
|
368 | 368 |
</tr> |
369 | 369 |
<tr> |
370 |
<td width="22%" valign="top" class="vncell"><?=gettext("WINS Server");?></td> |
|
370 |
<td width="22%" valign="top" class="vncell"><?=gettext("WINS Server"); ?></td> |
|
371 |
<td width="78%" valign="top" class="vtable"> |
|
371 | 372 |
<input name="wins" class="formfld unknown" id="wins" size="20" value="<?=htmlspecialchars($pconfig['wins']);?>"> |
372 | 373 |
</td> |
373 | 374 |
</tr> |
374 | 375 |
<tr> |
375 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS");?></td> |
|
376 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS"); ?></td>
|
|
376 | 377 |
<td width="78%" class="vtable"> |
377 | 378 |
<input name="radiusenable" type="checkbox" id="radiusenable" onclick="enable_change(false)" value="yes" <?php if ($pconfig['radiusenable']) echo "checked"; ?>> |
378 |
<strong><?=gettext("Use a RADIUS server for authentication");?></strong><br> |
|
379 |
<?=gettext("When set, all users will be authenticated using ". |
|
380 |
"the RADIUS server specified below. The local user database ". |
|
381 |
"will not be used.");?><br>
|
|
379 |
<strong><?=gettext("Use a RADIUS server for authentication"); ?></strong><br>
|
|
380 |
<?=gettext("When set, all users will be authenticated using " .
|
|
381 |
"the RADIUS server specified below. The local user database " .
|
|
382 |
"will not be used"); ?>.<br>
|
|
382 | 383 |
<br> |
383 |
<input name="radacct_enable" type="checkbox" id="radacct_enable" onclick="enable_change(false)" value="yes" <?php if ($pconfig['radacct_enable']) echo gettext("checked"); ?>>
|
|
384 |
<strong><?=gettext("Enable RADIUS accounting ");?><br>
|
|
385 |
</strong><?=gettext("Sends accounting packets to the RADIUS server.");?><br>
|
|
384 |
<input name="radacct_enable" type="checkbox" id="radacct_enable" onclick="enable_change(false)" value="yes" <?php if ($pconfig['radacct_enable']) echo "checked"; ?>>
|
|
385 |
<strong><?=gettext("Enable RADIUS accounting"); ?> <br>
|
|
386 |
</strong><?=gettext("Sends accounting packets to the RADIUS server"); ?>.<br>
|
|
386 | 387 |
<br> |
387 |
<input name="radiussecenable" type="checkbox" id="radiussecenable" onclick="enable_change(false)" value="yes" <?php if ($pconfig['radiussecenable']) echo gettext("checked"); ?>>
|
|
388 |
<strong><?=gettext("Secondary RADIUS server for failover authentication");?></strong><br> |
|
389 |
<?=gettext("When set, all requests will go to the secondary server when primary fails");?><br> |
|
388 |
<input name="radiussecenable" type="checkbox" id="radiussecenable" onclick="enable_change(false)" value="yes" <?php if ($pconfig['radiussecenable']) echo "checked"; ?>>
|
|
389 |
<strong><?=gettext("Secondary RADIUS server for failover authentication"); ?></strong><br>
|
|
390 |
<?=gettext("When set, all requests will go to the secondary server when primary fails"); ?><br>
|
|
390 | 391 |
<br> |
391 | 392 |
<input name="radiusissueips" value="yes" type="checkbox" class="formfld" id="radiusissueips"<?php if($pconfig['radiusissueips']) echo " CHECKED"; ?>> |
392 |
<strong><?=gettext("RADIUS issued IPs");?></strong> |
|
393 |
<br><?=gettext("Issue IP addresses via RADIUS server.");?>
|
|
393 |
<strong><?=gettext("RADIUS issued IPs"); ?></strong>
|
|
394 |
<br><?=gettext("Issue IP addresses via RADIUS server"); ?>.
|
|
394 | 395 |
</td> |
395 | 396 |
</td> |
396 | 397 |
</tr> |
397 | 398 |
<tr> |
398 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS NAS IP");?></td> |
|
399 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS NAS IP"); ?></td>
|
|
399 | 400 |
<td width="78%" valign="top" class="vtable"> |
400 | 401 |
<input name="radius_nasip" class="formfld unknown" id="radius_nasip" size="20" value="<?=htmlspecialchars($pconfig['radius_nasip']);?>"> |
401 | 402 |
</td> |
402 | 403 |
</tr> |
403 | 404 |
<tr> |
404 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS Accounting Update");?></td> |
|
405 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS Accounting Update"); ?></td>
|
|
405 | 406 |
<td width="78%" valign="top" class="vtable"> |
406 | 407 |
<input name="radius_acct_update" class="formfld unknown" id="radius_acct_update" size="20" value="<?=htmlspecialchars($pconfig['radius_acct_update']);?>"> |
407 | 408 |
</td> |
408 | 409 |
</tr> |
409 | 410 |
<tr> |
410 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS Server ");?></td>
|
|
411 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS Server"); ?> </td>
|
|
411 | 412 |
<td width="78%" class="vtable"> |
412 | 413 |
<input name="radiusserver" type="text" class="formfld unknown" id="radiusserver" size="20" value="<?=htmlspecialchars($pconfig['radiusserver']);?>"> |
413 | 414 |
<input name="radiusserverport" type="text" class="formfld unknown" id="radiusserverport" size="4" value="<?=htmlspecialchars($pconfig['radiusserverport']);?>"> |
414 | 415 |
<input name="radiusserveracctport" type="text" class="formfld unknown" id="radiusserveracctport" size="4" value="<?=htmlspecialchars($pconfig['radiusserveracctport']);?>"> |
415 | 416 |
<br> |
416 |
<?=gettext("Enter the IP address, RADIUS port, and RADIUS accounting port of the RADIUS server.");?></td>
|
|
417 |
<?=gettext("Enter the IP address, RADIUS port, and RADIUS accounting port of the RADIUS server"); ?>.</td>
|
|
417 | 418 |
</tr> |
418 | 419 |
<tr> |
419 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS shared secret");?></td> |
|
420 |
<td width="22%" valign="top" class="vncell"><?=gettext("RADIUS shared secret"); ?></td>
|
|
420 | 421 |
<td width="78%" valign="top" class="vtable"> |
421 | 422 |
<input name="radiussecret" type="password" class="formfld pwd" id="radiussecret" size="20" value="<?=htmlspecialchars($pconfig['radiussecret']);?>"> |
422 | 423 |
<br> |
423 |
<?=gettext("Enter the shared secret that will be used to authenticate ". |
|
424 |
"to the RADIUS server.");?></td>
|
|
424 |
<?=gettext("Enter the shared secret that will be used to authenticate " .
|
|
425 |
"to the RADIUS server"); ?>.</td>
|
|
425 | 426 |
</tr> |
426 | 427 |
<tr> |
427 |
<td width="22%" valign="top" class="vncell"><?=gettext("Secondary RADIUS server ");?></td>
|
|
428 |
<td width="22%" valign="top" class="vncell"><?=gettext("Secondary RADIUS server"); ?> </td>
|
|
428 | 429 |
<td width="78%" class="vtable"> |
429 | 430 |
<input name="radiusserver2" type="text" class="formfld unknown" id="radiusserver2" size="20" value="<?=htmlspecialchars($pconfig['radiusserver2']);?>"> |
430 | 431 |
<input name="radiusserver2port" type="text" class="formfld unknown" id="radiusserver2port" size="4" value="<?=htmlspecialchars($pconfig['radiusserver2port']);?>"> |
431 | 432 |
<input name="radiusserver2acctport" type="text" class="formfld unknown" id="radiusserver2acctport" size="4" value="<?=htmlspecialchars($pconfig['radiusserver2acctport']);?>"> |
432 | 433 |
<br> |
433 |
<?=gettext("Enter the IP address, RADIUS port, and RADIUS accounting port of the RADIUS server.");?></td>
|
|
434 |
<?=gettext("Enter the IP address, RADIUS port, and RADIUS accounting port of the RADIUS server"); ?>.</td>
|
|
434 | 435 |
</tr> |
435 | 436 |
<tr> |
436 |
<td width="22%" valign="top" class="vncell"><?=gettext("Secondary RADIUS shared secret");?></td> |
|
437 |
<td width="22%" valign="top" class="vncell"><?=gettext("Secondary RADIUS shared secret"); ?></td>
|
|
437 | 438 |
<td width="78%" valign="top" class="vtable"> |
438 | 439 |
<input name="radiussecret2" type="password" class="formfld pwd" id="radiussecret2" size="20" value="<?=htmlspecialchars($pconfig['radiussecret2']);?>"> |
439 | 440 |
<br> |
440 |
<?=gettext("Enter the shared secret that will be used to authenticate ". |
|
441 |
"to the secondary RADIUS server.");?></td>
|
|
441 |
<?=gettext("Enter the shared secret that will be used to authenticate " .
|
|
442 |
"to the secondary RADIUS server"); ?>.</td>
|
|
442 | 443 |
</tr> |
443 | 444 |
<tr> |
444 | 445 |
<td height="16" colspan="2" valign="top"></td> |
... | ... | |
446 | 447 |
<tr> |
447 | 448 |
<td width="22%" valign="middle"> </td> |
448 | 449 |
<td width="78%" class="vtable"> |
449 |
<input name="req128" type="checkbox" id="req128" value="yes" <?php if ($pconfig['req128']) echo gettext("checked"); ?>>
|
|
450 |
<strong><?=gettext("Require 128-bit encryption");?></strong><br> |
|
451 |
<?=gettext("When set, only 128-bit encryption will be accepted. Otherwise ". |
|
452 |
"40-bit and 56-bit encryption will be accepted as well. Note that ". |
|
453 |
"encryption will always be forced on PPTP connections (i.e. ". |
|
454 |
"unencrypted connections will not be accepted).");?></td>
|
|
450 |
<input name="req128" type="checkbox" id="req128" value="yes" <?php if ($pconfig['req128']) echo "checked"; ?>>
|
|
451 |
<strong><?=gettext("Require 128-bit encryption"); ?></strong><br>
|
|
452 |
<?=gettext("When set, only 128-bit encryption will be accepted. Otherwise " .
|
|
453 |
"40-bit and 56-bit encryption will be accepted as well. Note that " .
|
|
454 |
"encryption will always be forced on PPTP connections (i.e. " .
|
|
455 |
"unencrypted connections will not be accepted)"); ?>.</td>
|
|
455 | 456 |
</tr> |
456 | 457 |
<tr> |
457 | 458 |
<td width="22%" valign="top"> </td> |
458 | 459 |
<td width="78%"> |
459 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" onclick="enable_change(true)"> |
|
460 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" onclick="enable_change(true)">
|
|
460 | 461 |
</td> |
461 | 462 |
</tr> |
462 | 463 |
<tr> |
463 | 464 |
<td width="22%" valign="top"> </td> |
464 |
<td width="78%"><span class="vexpl"><span class="red"><strong><?=gettext("Note:");?><br>
|
|
465 |
<td width="78%"><span class="vexpl"><span class="red"><strong><?=gettext("Note");?>:<br>
|
|
465 | 466 |
</strong></span><?=gettext("don't forget to ");?><a href="firewall_rules.php?if=pptp"><?=gettext("add a firewall rule"); ?></a> <?=gettext("to permit ". |
466 | 467 |
"traffic from PPTP clients");?>!</span></td> |
467 |
</tr> |
|
468 |
</tr>
|
|
468 | 469 |
</table> |
469 | 470 |
</div> |
470 | 471 |
</td> |
Also available in: Unified diff
Implement gettext() calls on vpn_pptp.php