Révision 0d0c01ca
Ajouté par jim-p il y a presque 10 ans
usr/local/www/firewall_rules_edit.php | ||
---|---|---|
91 | 91 |
); |
92 | 92 |
} |
93 | 93 |
|
94 |
$specialsrcdst = explode(" ", "any pptp pppoe l2tp openvpn"); |
|
94 |
$specialsrcdst = explode(" ", "any (self) pptp pppoe l2tp openvpn");
|
|
95 | 95 |
$ifdisp = get_configured_interface_with_descr(); |
96 | 96 |
foreach ($ifdisp as $kif => $kdescr) { |
97 | 97 |
$specialsrcdst[] = "{$kif}"; |
... | ... | |
1048 | 1048 |
?> |
1049 | 1049 |
> <?=gettext("Single host or alias");?></option> |
1050 | 1050 |
<option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network");?></option> |
1051 |
<?PHP if (isset($a_filter[$id]['floating']) || $if == "FloatingRules"): ?> |
|
1052 |
<option value="(self)" <?PHP if ($pconfig['src'] == "(self)") echo "selected=\"selected\""; ?>><?=gettext("This Firewall (self)");?></option> |
|
1053 |
<?PHP endif;?> |
|
1051 | 1054 |
<?php if(have_ruleint_access("pptp")): ?> |
1052 | 1055 |
<option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients");?></option> |
1053 | 1056 |
<?php endif; ?> |
... | ... | |
1148 | 1151 |
?> |
1149 | 1152 |
><?=gettext("Single host or alias");?></option> |
1150 | 1153 |
<option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network");?></option> |
1154 |
<option value="(self)" <?PHP if ($pconfig['dst'] == "(self)") echo "selected=\"selected\""; ?>><?=gettext("This Firewall (self)");?></option> |
|
1151 | 1155 |
<?php if(have_ruleint_access("pptp")): ?> |
1152 | 1156 |
<option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients");?></option> |
1153 | 1157 |
<?php endif; ?> |
Formats disponibles : Unified diff
Add (self) keyword for specifying "any IP address on this firewall" as a rule choice.