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

This commit is contained in:
Franco Fichtner 2015-04-01 13:52:35 +02:00
parent ec89f5ec86
commit ad5065e04d
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com)
@ -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['ipprotocol'] == "inet46")
$input_errors[] = gettext("You can not assign a ICMP type to a rule that applies to IPv4 and IPv6");

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
@ -342,7 +343,7 @@ function enable_change(whichone) {
<td width="22%" valign="top" class="vncellreq">Write community string</td>
<td width="78%" class="vtable">
<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>
</tr>
*/