mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
firewall: remove arbitrary restriction; pf(4) can cope with it
This commit is contained in:
parent
ec89f5ec86
commit
ad5065e04d
@ -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");
|
||||
|
||||
@ -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 "private" here<br />
|
||||
<br />Please use something other than "private" here<br />
|
||||
</td>
|
||||
</tr>
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user