Révision b7988b29
Ajouté par jim-p il y a presque 10 ans
usr/local/www/firewall_nat_edit.php | ||
---|---|---|
44 | 44 |
require_once("filter.inc"); |
45 | 45 |
require("shaper.inc"); |
46 | 46 |
|
47 |
$specialsrcdst = explode(" ", "any pptp pppoe l2tp openvpn"); |
|
47 |
$specialsrcdst = explode(" ", "any (self) pptp pppoe l2tp openvpn");
|
|
48 | 48 |
$ifdisp = get_configured_interface_with_descr(); |
49 | 49 |
foreach ($ifdisp as $kif => $kdescr) { |
50 | 50 |
$specialsrcdst[] = "{$kif}"; |
... | ... | |
654 | 654 |
<option value="any" <?php if ($pconfig['dst'] == "any") { echo "selected=\"selected\""; } ?>><?=gettext("any"); ?></option> |
655 | 655 |
<option value="single" <?php if (($pconfig['dstmask'] == 32) && !$sel) { echo "selected=\"selected\""; $sel = 1; } ?>><?=gettext("Single host or alias"); ?></option> |
656 | 656 |
<option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network"); ?></option> |
657 |
<option value="(self)" <?PHP if ($pconfig['dst'] == "(self)") echo "selected=\"selected\""; ?>><?=gettext("This Firewall (self)");?></option> |
|
657 | 658 |
<?php if(have_ruleint_access("pptp")): ?> |
658 | 659 |
<option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients"); ?></option> |
659 | 660 |
<?php endif; ?> |
Formats disponibles : Unified diff
Let (self) be used on port forward destinations also