Commit Graph

35 Commits

Author SHA1 Message Date
Renato Botelho
fcc96054a0 Split ICMP and ICMPv6 types on Firewall Rules
- Remove redundant declaration of $icmptypes and move it to a common
place (filter.inc)
- Add missing ICMP types for v4
- Add ICMPv6 types
- Adjust javascripts to show correct options depending of IP Protocol
- Hide ICMP type selection when protocol is IPv4+v6

It fixes #3389
2014-12-11 19:50:00 -02:00
Renato Botelho
0e2eaa1bfd Do not reset source and destination port range values when it's an associated rule created by nat port forward. It fixes #3778 2014-08-11 14:22:30 -03:00
ayvis
354ecfbc9e javascript normalization 2014-03-26 00:25:32 +01:00
Ermal
1346306cf7 Allow 802.1p tags to be controlled from firewall rules edit screen 2012-05-18 19:49:41 +00:00
Erik Fonnesbeck
3e74107e59 Unhide the source port options on firewall rules when they are not at the defaults. 2010-09-28 23:29:17 -06:00
Erik Fonnesbeck
70a9056f34 Revert "Shows source ports when they are already defined" - this only made it so they were never hidden.
This reverts commit d886ebd6d4.
2010-09-28 22:31:28 -06:00
Vinicius Coque
d886ebd6d4 Shows source ports when they are already defined 2010-08-13 13:49:16 -03:00
Vinicius Coque
7967131684 Fix the js that hides advanced button on firewall rules 2010-08-13 10:20:21 -03:00
Erik Fonnesbeck
1122a892f2 Fix source input validation, saving, and the "View the NAT rule" link on linked filter rules. Ticket #586 2010-05-11 20:09:52 -06:00
Ermal
b8ed2a11a0 Implement tcp flags and sloppy state on the GUI. 2010-05-05 19:26:34 +00:00
Vinicius Coque
383654fc0b Block source edit on associated firewall rules 2010-04-19 15:51:17 -03:00
pierrepomes
473d0ff02f Add patch from lietu (Janne Enberg). Ticket #136
1) Multiple NAT rules can be assigned the same filter rule
-> Fixed, added assigned-nat-rule-id to filter rules to keep track of the assignment

2) when removing the link (i.e. switching to "pass" or "none", the linked rule isn't deleted (should it be? probably yes)
-> Fixed, when a NAT rule's association is removed, the filter rule is deleted. Added a "create new associated filter rule" option to the
dropdown if there is none selected.

3) The destination IP and port of linked rules can be edited in firewall_rules_edit.php and shouldn't be. Source should be editable but not
destination, since that should strictly be tied to the NAT rule.
-> Fixed, you cannot edit the destination for the filter rules that are linked to NAT rules, this has been disabled both by JavaScript and
PHP.

4) If you edit the source in a linked firewall rule, it gets overwritten when you edit the NAT rule. The NAT rule should never touch the
firewall rule source after the rule exists.
-> Fixed, previously the old rule was deleted and a new one created, now it only updates the old rule and doesn't touch the source.

Also added crosslinking from the NAT rule to the filter rule and back, so you can jump to edit the filter rule from the NAT rule and
vice-versa.
2009-12-12 15:57:19 -05:00
Ermal Luçi
c1dc065287 Make all autocompletes in there case insensitive. 2009-12-04 14:18:53 +00:00
sullrich
61c0250d9e Fixup Source OS box 2009-12-03 17:09:54 -05:00
sullrich
adb633a09f Minor formatting + hide Source OS behind Advanced box 2009-12-03 17:05:55 -05:00
sullrich
4c263f57c2 Hide layer7 and in/out behind advanced button 2009-12-03 16:50:21 -05:00
sullrich
0239d8ee4a Make xmlrpc sync, schedule, gateway, in/out, ackqueue and layer7 all advanced type buttons simplifying the firewall rule edit form for 99% of the cases 2009-12-03 15:17:10 -05:00
Ermal Luçi
72cb5bafa3 Ticket #146. Fix the autocompletion of ports aliases only for the ports and host/network aliases for the src/dst. Checking if a valid alias is entered end if it is a correct one for this box seems like to much overhead and work for this. 2009-11-30 06:40:31 +00:00
sullrich
30c4ae8a6b Seperate diffserv box into a <select> dropdown. Hide item behind advanced button. Move down one section near other advanced items. Resolves #60 2009-11-28 14:56:43 -05:00
Chris Buechler
ee01cb054f Revert "show/hide icmp6box"
This reverts commit 9ce5e10ac4.
2009-02-15 14:05:16 -05:00
Simon Cornelius P. Umacob
9ce5e10ac4 show/hide icmp6box 2009-01-20 16:30:42 +08:00
Scott Ullrich
f6970b2fdf Keep state really wants to be an advanced option, too. Let him join the party. 2006-07-05 03:11:25 +00:00
Scott Ullrich
be812936b9 Make other button consistent now with a - 2006-07-05 02:56:46 +00:00
Scott Ullrich
197b2a47a9 Turn advanced option are into a default to no show area as well. 2006-07-05 02:52:10 +00:00
Scott Ullrich
5896157c59 Remove debugging alert() 2006-07-05 01:34:54 +00:00
Scott Ullrich
60bc190ac5 Correct check to 2 2006-07-05 01:34:19 +00:00
Scott Ullrich
b62c654848 Repopulate advanced <div> after changes 2006-07-05 01:18:06 +00:00
Scott Ullrich
292d54c81f Sync sprtable 2006-07-05 01:11:42 +00:00
Scott Ullrich
9bd15edf36 Sync sprtable 2006-07-05 01:08:44 +00:00
Scott Ullrich
3de8af0e40 MFC
Hide source and destination port boxes when protocol is not tcp, udp or tcp/udp
2006-07-05 01:07:08 +00:00
Scott Ullrich
13c2a81220 Set style.display = '' to display hidden table row 2006-07-05 00:16:50 +00:00
Scott Ullrich
22abf2ef70 Hide Show advanced option button when user clicks on the option 2006-07-04 23:49:45 +00:00
Scott Ullrich
8c84fe438e MFC
Require the user to have a brain to see the Source port range for a firewall rule by adding a link in the source box that says Advanced - Show source port range.
2006-07-04 23:35:59 +00:00
Erik Kristensen
7f387ab003 Disabling Enter Key on Auto-Complete pages ...
Enter Key now Selects Auto-Complete Options ...
Added Auto-Complete to firewall_shaper_edit.php ...
2005-09-07 23:42:03 +00:00
Erik Kristensen
4ce8ac00f5 Adding AutoComplete to firewall_nat_edit
head.inc searchs javascript directory for includes now
2005-08-23 23:57:06 +00:00