Commit Graph

392 Commits

Author SHA1 Message Date
Chris Buechler
3d5e8dce44 Use appropriate interface field description when working with floating rules, it was confusing and potentially incorrect for floating rule purposes. 2015-02-09 14:22:23 -06:00
Phil Davis
6317d31dfc Fix lineup of copyright lines
and module names and other bits of formatting and typos in header
comment sections.
2015-01-01 10:13:14 -02:00
Renato Botelho
d961e7e33e Welcome 2015 2014-12-31 16:22:27 -02:00
Renato Botelho
d3bf4a4163 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:47:05 -02:00
Renato Botelho
0ab1f1078c Fix indent and spaces 2014-12-11 18:55:15 -02:00
Jim Thompson
dd447bde2b modify copyright statement to reflect reality 2014-11-10 22:49:50 -06:00
Chris Buechler
d3d237548f fix text, PPPoE Server, not VPN 2014-11-06 22:03:50 -06:00
Renato Botelho
87d4456cf4 Merge pull request #1323 from derelict-pf/master 2014-11-05 07:07:55 -02:00
derelict-pf
a94a16cd46 s/a/an/ and speling. 2014-10-31 15:05:22 -07:00
derelict-pf
162a7b4edf s/then/than/ 2014-10-31 14:55:14 -07:00
Renato Botelho
62424bdbbb Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work 2014-09-12 16:37:08 -03:00
jim-p
0d0c01cac8 Add (self) keyword for specifying "any IP address on this firewall" as a rule choice. 2014-05-23 14:00:05 -04:00
Colin Fleming
1b244d3828 Update SCRIPT tags.
Add CDATA sections to SCRIPT tags in various files
2014-05-19 23:49:31 +01:00
Renato Botelho
2f7f11900a Unbreak 'add rule on top of the list' allowing after param to be -1 2014-04-29 14:56:37 -03:00
jim-p
6316efd305 Expose all p0f OS types that it supports so that subtypes of various Operating Systems can be detected 2014-04-29 11:52:11 -04:00
Renato Botelho
7f7626ba44 Merge branch 'master-br' of https://github.com/ayvis/pfsense into ayvis-master-br 2014-03-17 11:17:29 -03:00
Chris Buechler
c728177042 standardize on www.pfsense.org and HTTPS, point package URLs to
packages.pfsense.org
2014-03-14 19:04:43 -05:00
ayvis
8cd558b61b xhtml Compliance
replaced <br>, <br/> and </br> with <br />
2014-03-14 21:24:03 +01:00
Renato Botelho
e41ec5848f Improve checks for params 'id', 'dup' and other similar ones to make sure they are numeric integer, also, pass them through htmlspecialchars() before print 2014-03-12 11:42:49 -03:00
Phil Davis
29d2b4e2b1 Validate rule Advanced Options numeric entries
This makes sure the user puts in ordinary positive integers like "1" and "42" in these advanced options fields. It prevents everything else, including dodgy-looking possibilities like "007" which might actually work OK, but it is safer to allow just plain "7".
Note 1: The tests in function is_aoadv_used($rule_config) had to be changed back from using empty() to use $var != "" because if the user enters "0" in one of those fields and presses save, they get an error message, but the Advanced Options block on the GUI is closed (the "0" was considered empty()). That seemed rather confusing - the user would have had to click on the Advanced Options "Advanced" button again to open up that block and see the "0" they had entered.
Note 2: I have prohibited 2 things that "pf" allows into the ruleset without generating an error:
(max 0)
(tcp.established 0)
Both of these seem (IMHO) to have no valid use case. They would prevent states from ever happening, and so would effectively be block rules, which could be implemented easily as block rules.
2014-03-11 10:32:43 -07:00
Renato Botelho
3f9586b659 Merge pull request #997 from phil-davis/master
Make Firewall Rules Advanced Options open if used
2014-03-07 07:20:33 -03:00
Phil Davis
fd8398420d Refine check for existence of rule advanced options 2014-03-06 20:28:21 -08:00
Phil Davis
bd9d6e0e35 Make Firewall Rules Advanced Options open if used
Currently, if there are some settings defined in Firewall Rules Edit, Advanced Features, Advanced Options, the Advanced Options section is left minimized when the Firewall Edit screen is displayed. This makes it easy for a user to not notice that there are some Advanced Options settings.
This change makes the Advanced Options section be displayed if any of the settings are defined, in the same way it is done for all the other Advanced Features sections.
2014-03-04 21:29:33 -08:00
Renato Botelho
ebe2b407b3 Merge pull request #984 from phil-davis/master
Return GWG IP protocol (version) when no gateway IP
2014-03-04 10:03:11 -03:00
Renato Botelho
de9ac478b3 Validate if src OR dst have IP address set when protocol is IPv4+v6. Fixes #3499 2014-03-03 15:16:01 -03:00
Phil Davis
088a4eed18 Tidy up GWG dropdown selection tests
Tested this making a new rule, and editing existing IPv4, IPv6 and IPv4+Ipv6 rules, and switching the IP version on an existing rule. Seems to work!
2014-02-28 06:00:46 -08:00
Phil Davis
fa94f1e17e Tidy "gateway name - IP" in dropdown list
While I notice this also, for a plain gateway, the current IP address is also listed in the dropdown list text, like "WAN_DHCP - 10.42.11.1". If there is no IP address currently, it might say "WAN_DHCP - dynamic". But for some DHCP gateways that have not had any non-default manual settings done, it can say "OPT1_DHCP -". This gets rid of the silly-looking "-"
2014-02-28 03:28:28 -08:00
Phil Davis
d47e25c777 Use return_gateway_groups_array() to build correct GWG list
Now return_gateway_groups_array() always returns at least the IP version 'ipprotocol' of each GWG, even if all its members are down at present. It is better to use this to check what IP version the GWG is. The previous check was using the IP address of the first member of the GWG to deduce 'ipprotocol'. That would fail if the WAN was DHCP and was down.
2014-02-27 23:48:28 -08:00
stilez
f7e481dd72 Port dropdowns: Put port no. after descrip
At the moment, even if a port number is entered, it's re-displayed only as a port name when editing. Users who don't have port names -> numbers lookup memorised can't easily confirm when editing a rule, that the port is as intended. Then, when they return to firewall_rules.php the same rules have ports displayed as numbers not names (inconsistent).

This small UI edit changes the port dropdowns from just the name "NetBIOS-NS" to "NetBIOS-NS (137)" and shows the very well known port number, for ease of use.
2014-02-25 19:48:41 +00:00
Wild Stray
c95b52d574 Update firewall_rules_edit.php
PIM protocol for firewall rules.
2014-02-22 00:55:20 +01:00
Daniel Aleksandersen
d5bdbe0c50 Change string to "Maximum new connections per host / per second(s)"
Clarifying the setting's meaning.

As suggested by forum member "Senser" on
https://forum.pfsense.org/index.php/topic,65472.msg356024.html#msg356024
2014-02-13 00:10:35 +01:00
Phil Davis
04d270fefd Standardise LAN net display
On the main firewall rules multi-rule display it shows "LAN net" "WAN net" etc. But on the edit screen it shows "LAN subnet" "WAN subnet" etc. Make the edit screen have the same text as the main screen - this has ben a source of enough little questions/queries on the forum.
2014-02-07 01:54:21 -08:00
bruno
72b774aae4 added input hidden with tracker value 2014-01-16 10:31:54 -02:00
Ermal
2006d7a4f0 Generate a tracker id for the filter rules for now. Maybe for nat rules as well? 2013-12-31 13:23:21 +01:00
Renato Botelho
c4421dfa4f Add an option to set no-sync on rules to keep states from being synced via pfsync. Fix #2501 2013-11-12 10:45:29 -02:00
Renato Botelho
1e9b461124 Remove call-time pass by reference for do_input_validation, helps ticket #2565 2013-09-12 11:28:14 -03:00
jim-p
f6339216b7 s/require/require_once/g for filter.inc to avoid redeclaration errors in some rare cases. 2013-08-28 13:54:30 -04:00
Phil Davis
e2ad288e45 Relax advanced options firewall rules tests
Various advanced options are now possible for any protocol since 653bde345e
So allow these through the front-end GUI validation also.
2013-08-14 10:15:35 -07:00
Phil Davis
08597fcc81 Allow advanced options state-related parameters to be used for TCP, UDP and ICMP
Allows the state-related parameters to be specified for UDP and ICMP as well as TCP. Discussed in forum http://forum.pfsense.org/index.php/topic,64653.0.html
2013-07-24 01:38:47 -07:00
Phil Davis
1101a89122 Validate firewall rule advanced options requirements
Checks that the user has selected a TCP Pass rule etc when using the state-related advanced options. Validates as per the checks that are applied in filter.inc when generating the actual pf rules.
Forum discussion: http://forum.pfsense.org/index.php/topic,64653.15.html
Bug report #3098
2013-07-22 03:49:17 -07:00
Renato Botelho
dd042c5159 Implement URL Table aliases for ports instead of IP addresses 2013-07-08 12:38:37 -03:00
Daniel Becker
25ce513631 Add support for protocol 41 in rules. Fixes #3007. 2013-07-07 15:36:26 -07:00
Renato Botelho
079d1952fd Add a new alias type, URLs containing Ports 2013-07-04 10:42:48 -03:00
Renato Botelho
f8fee2cead Fix whitespace and indent 2013-04-23 20:33:53 -03:00
timdufrane
9411d6abef Fixed 802.1p duplicating values for vlanprio and vlanprioset
For real this time. Friggin' github.
2013-04-11 15:32:29 -03:00
timdufrane
7e2237f640 Clean inconsistent "none" and empty conventions for advanced fields - removes residual "none" entries on save 2013-04-11 14:54:26 -03:00
timdufrane
f456783426 Fix none where should be empty string for 802.1p 2013-04-10 14:56:10 -03:00
Colin Fleming
4143e7fb18 Tidy up "firewall_rules_edit.php" XHTML
Close INPUT, BR and IMG tags and add ALT to IMG tags
Update HTML boolean operators
Add missing closing P tags
Remove NAME paramenter from TR and DIV tags, invalid HTML
2013-04-09 14:45:16 +01:00
jim-p
ba1d9714c5 Track user/time a firewall rule was created and last updated, and show this information at the bottom of the page when viewing the firewall rule. Have various places in the system that create rules add a proper entry to indicate their origin. 2013-03-20 13:26:16 -04:00
Renato Botelho
507aa90af4 Set (src|dst)mask to 128 for single IPv6 addresses. Fixes #2451 2013-02-16 18:01:10 -02:00