Commit ad5065e0 authored by Franco Fichtner's avatar Franco Fichtner

firewall: remove arbitrary restriction; pf(4) can cope with it

parent ec89f5ec
<?php <?php
/* /*
Copyright (C) 2014 Deciso B.V. Copyright (C) 2014 Deciso B.V.
Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com) Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com)
...@@ -283,10 +284,6 @@ if ($_POST) { ...@@ -283,10 +284,6 @@ if ($_POST) {
} }
} }
if (($_POST['proto'] != "tcp") && ($_POST['proto'] != "udp") && ($_POST['proto'] != "tcp/udp") && ($_POST['proto'] != "icmp")) {
if($_POST['ipprotocol'] == "inet46")
$input_errors[] = gettext("You can not assign a protocol other then ICMP, TCP, UDP or TCP/UDP to a rule that applies to IPv4 and IPv6");
}
if (($_POST['proto'] == "icmp") && ($_POST['icmptype'] <> "")){ if (($_POST['proto'] == "icmp") && ($_POST['icmptype'] <> "")){
if($_POST['ipprotocol'] == "inet46") if($_POST['ipprotocol'] == "inet46")
$input_errors[] = gettext("You can not assign a ICMP type to a rule that applies to IPv4 and IPv6"); $input_errors[] = gettext("You can not assign a ICMP type to a rule that applies to IPv4 and IPv6");
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>. Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
...@@ -342,7 +343,7 @@ function enable_change(whichone) { ...@@ -342,7 +343,7 @@ function enable_change(whichone) {
<td width="22%" valign="top" class="vncellreq">Write community string</td> <td width="22%" valign="top" class="vncellreq">Write community string</td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="rwcommunity" type="text" class="formfld unknown" id="rwcommunity" size="40" value="<?=htmlspecialchars($pconfig['rwcommunity']);?>" /> <input name="rwcommunity" type="text" class="formfld unknown" id="rwcommunity" size="40" value="<?=htmlspecialchars($pconfig['rwcommunity']);?>" />
<br />Please use something other then &quot;private&quot; here<br /> <br />Please use something other than &quot;private&quot; here<br />
</td> </td>
</tr> </tr>
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment