Commit Graph

11529 Commits

Author SHA1 Message Date
Chris Buechler
541e0b7736 fix text, remove product_website mentions here since that's not actually used anyway. 2014-03-13 02:24:48 -05:00
Ermal
bea918b987 Remove sasycnd remenant file 2014-03-12 18:49:09 +00:00
Ermal
f3f04169f8 Use descr prepended to voucher fields containing descriptions to have them encoded as CDATA. Fixes #3441 2014-03-12 16:03:39 +00: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
Renato Botelho
49f3f28fea Pass id variable through htmlspecialchars before print it 2014-03-11 16:57:48 -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
ce99dba2e6 Merge pull request #1010 from PiBa-NL/alias_allow_delete
firewall_virtual_ip , allow deleting last ip-alias if interface uses same the subnet. (while CARP-ip is present)
2014-03-11 09:53:48 -03:00
jim-p
52c7f0d4ac Fix order of parameters to explode() here 2014-03-10 14:12:04 -04:00
Phil Davis
6258aeeb70 Fix OpenVPN XML section name
Forum https://forum.pfsense.org/index.php?topic=73479.0
2014-03-10 09:03:21 -07:00
PiBa-NL
a9fc108f9c firewall_virtual_ip , allow deleting last ip-alias if interface uses same the subnet. (while CARP-ip is present) 2014-03-09 17:16:51 +01:00
Phil Davis
f0c1ce21c8 Add all advanced options to rule table hover text
Bug #3512
2014-03-08 01:56:56 -08:00
Luiz Gustavo Costa
23d3e72ce8 update translate pt_BR gettext file 2014-03-08 01:19:02 -03:00
Ermal
e327358bb4 Properly use key here. 2014-03-07 17:49:54 +00:00
Luiz Gustavo Costa
416024696a better make of gettext in expression (thanks rbgarga) 2014-03-07 14:12:24 -03:00
Luiz Gustavo Costa
15e477769d more fix some variables gettext 2014-03-07 14:00:48 -03:00
Luiz Gustavo Costa
e28307d08a fix some variables gettext 2014-03-07 13:52:10 -03:00
Renato Botelho
eecbeec45e Skip input validation when choosing an existing certificate, it should fix #3505 2014-03-07 10:10:20 -03:00
Renato Botelho
4655b2cdd0 Remove unecessary quotes 2014-03-07 10:05:52 -03: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
Renato Botelho
8c3cba99f0 Merge pull request #995 from ayvis/master-syntax-errors
syntax errors correction
2014-03-06 16:57:37 -03:00
Ermal
f37e37bbdd Remove not needed anymore function 2014-03-06 20:19:38 +01: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
ayvis
56b490bad3 syntax errors corrected 2014-03-04 22:09:02 +01: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
faddd38108 Merge pull request #992 from Doncuppjr/master
Add UEFI support to Network Boot options.
2014-03-04 09:52:29 -03:00
Renato Botelho
b6096065d5 Remove alert confirmation to delete a package, today user need to confirm twice 2014-03-04 08:40:34 -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
Charlie Root
7023c602bd Added support for UEFI booting to Network Booting configuration.
modified:   conf.default/config.xml
	modified:   etc/inc/services.inc
	modified:   usr/local/www/services_dhcp.php
2014-03-02 21:47:39 -08: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
Renato Botelho
920dbb26b1 Fix #3492, make sure filesystem is read-write 2014-02-27 18:03:34 -03:00
Ermal
c7fbdd6c8e Make the IPSec status page work with strongswan 2014-02-27 17:39:19 +01:00
Renato Botelho
d7d6e57a22 Fix #3486, delete /var/crash content when click 'No' 2014-02-27 07:51:32 -03:00
Ermal
df0878b018 Add a function to read the status of connections/SAs/SPDs from smp plugin of StrongSWAN. No need to go through the setkey dumps 2014-02-26 16:24:19 +00: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
Ermal
c6efc8fd15 Push log changes for IPSec and fix generation of strongswan.conf and ipsec.secrets to be properly considered 2014-02-25 11:10:01 +01:00
Renato Botelho
b5388f033c Fix #2302, save custom uploaded l7 pattern files on config.xml and replicate it to slave 2014-02-24 12:25:59 -03:00
Renato Botelho
1b90e2d5db Fix whitespaces and indent 2014-02-24 12:25:59 -03:00
N0YB
cfd3676d4a This one too. 2014-02-22 23:09:51 -08:00
N0YB
4a2c47fe63 Element id's are to be unique. 'provider' used is elsewhere. 2014-02-22 21:04:10 -08:00
N0YB
ca4467bc0e Better done globally here in the function. 2014-02-22 20:50:32 -08:00
N0YB
6e31ca39ab XHTML Compliance
Interfaces
2014-02-22 18:30:05 -08:00
Wild Stray
c95b52d574 Update firewall_rules_edit.php
PIM protocol for firewall rules.
2014-02-22 00:55:20 +01:00
Ermal
796587a9ed These are remenants of old 1.2 remove them from the wizard 2014-02-21 15:51:13 +00:00
Ermal
761dc91c12 Trigger rc.newwaipv6 as well from pppoe when it gets an inet6 config 2014-02-21 13:37:08 +00:00
Renato Botelho
3e0b2df22a Update tzdata to 2013i 2014-02-20 17:43:25 -03:00
Renato Botelho
6a19321036 Update list of mobile service providers 2014-02-20 17:32:14 -03:00
Renato Botelho
08185f4aa2 Use env var provided by openvpn to determine if it's tun or tap, it should fix #3475 2014-02-20 08:21:23 -03:00