Commit Graph

5148 Commits

Author SHA1 Message Date
Steve Beaver
8d8b2fc7f9 Fix log file deletion 2016-12-09 11:35:42 -05:00
Renato Botelho
5eab2de4ec Fix #6996 using existing variable 2016-12-09 13:47:31 -02:00
Renato Botelho
4c6135c288 Fix #6857
During boot local_sync_acocunts() should be able to access LDAP server
on a non-local network or also resolve LDAP server hostname. To make it
possible move calls to create static routes and start dnsmasq/unbound
to run earlier
2016-12-08 11:11:42 -02:00
Renato Botelho
bde382dd31 Merge pull request #3261 from phil-davis/zoneedit 2016-12-08 09:52:18 -02:00
Phil Davis
176d24e120 Specify IP to set for zoneedit 2016-12-08 17:17:49 +05:45
Phil Davis
6b8f9c356f Remove destination self from NAT 1:1
It is not needed and caused problems if used and was not remembered on
edit anyway.
2016-12-08 09:09:11 +05:45
jim-p
1060378f42 Populate the HTTP_PROXY_AUTH env var. Ticket #6949 2016-12-07 13:55:49 -05:00
Renato Botelho
bbe0c513c9 Merge pull request #3257 from phil-davis/patch-7 2016-12-07 16:09:36 -02:00
Renato Botelho
92cdad2b04 Merge pull request #3259 from phil-davis/disablegatewayactions 2016-12-07 16:07:19 -02:00
Phil Davis
f396d2b715 Feature #3151 Disable gateway monitoring actions
without disabling gateway monitoring.

This allows the user to continue to monitor the gateway with dpinger, so
they can see how it is performing, but for the system not to take any
real action if the latency/loss exceeds the given limits.

A typical use case for this would be on a single-WAN system. There is no
failover option, so there is no point taking any real action when the
latency/loss is high. Having stuff try to failover (and stop/start
stuff...) is just disruptive.

In ths case the use could have disabled monitoring completely, but then
they get no feedback abut gateway performance.
2016-12-07 21:22:17 +05:45
Renato Botelho
e85f3a2b93 Merge pull request #3130 from omnia-dev/master 2016-12-07 12:32:09 -02:00
Renato Botelho
e61436df3f Merge pull request #3155 from jxmx/6751_route53 2016-12-07 11:35:25 -02:00
Renato Botelho
9f834c4b50 Merge pull request #3193 from PiBa-NL/php_notice_fatal 2016-12-07 11:14:22 -02:00
Renato Botelho
45d8b8a603 Merge pull request #3256 from phil-davis/patch-5 2016-12-06 17:54:05 -02:00
Renato Botelho
d253d5c6a9 Merge pull request #3249 from plumbeo/idletime-in-sessiontime 2016-12-06 17:48:33 -02:00
Renato Botelho
7bcd5671d2 Merge pull request #3254 from doktornotor/patch-1 2016-12-06 17:44:11 -02:00
Renato Botelho
f459bccee9 Merge pull request #3240 from derelict-pf/ldap_starttls 2016-12-06 15:51:33 -02:00
Phil Davis
f7405cd2f7 Fix #6224 NAT edit - preserve user selections when input errors
1) Edit a NAT Port Forward rule, change the destination type to "Network", but do not input any network address/mask.
2) Press Save, an input error is reported telling that the network destination address/mask is required - good.
    However, the destination type is no longer "Network" - it goes to "xxx address" where "xxx" is the selected interface.

The problem is that JS dst_change() is being called on every page load. That is good when starting a new entry (the Destination gets set to WAN address to match the default interface of WAN), or when starting to edit an existing entry (the code runs without messing anything up). But when data has been $_POSTed and there are input errors, we just want to redisplay whatever the user had selected, not go trying to fix up correlations between fields.
2016-12-06 23:08:17 +05:45
jim-p
9c8ce38b01 Work around the NPt rule loading issue to load the rules as they were on previous versions. Fixes #6985 2016-12-06 10:59:51 -05:00
Phil Davis
d99ce9ccbf NAT 1:1 edit - preserve user selections on edit-save with input errors
1) Edit a NAT 1:1 rule, change the source and/or destination type to "Network", but do not input any network address/mask.
2) Press Save, input errors are reported telling that the network source and/or destination address/mask is required - good.
However, the source and/or destination type is no longer "Network" - it defaults back to single or any.

To fix, firstly move "$pconfig = $_POST" to after where all the various special things have been done to $_POST - this makes $pconfig have the correctly-massaged stuff that the user $_POSTed.

Then add the special code to srctype_selected() and dsttype_selected() to handle the case when these have been specifically $_POSTed by the user (rather than inferring them from the src/dst vales and the logic in is_specialnet() ).

This is equivalent to the fix for firewall_rules_edit.php at commit 81e2aa253a
2016-12-06 21:32:42 +05:45
doktornotor
957ec89e79 Add BIND logging to proper facility (Bug #5524)
Stop the /etc/inc/system.inc patching by dns/pfSense-pkg-bind9 package.
2016-12-06 16:09:08 +01:00
Renato Botelho
3dd6ce64c1 Merge pull request #3252 from phil-davis/unset_glxsb 2016-12-06 10:14:33 -02:00
Phil Davis
7c7d360534 Tidy input errors in services_ntpd_acls
1) If there are multiple rows with invalid IP addresses then the same message was displayed multiple times. We might as well let the use know which row(s) have the problem.
2) The section that checks is_subnet stuff was first using is_ipaddr() (redundantly given it is already in the else of !is_ipaddr() ), and then is_subnet() - these would have handled both the IPv4 and IPv6 cases, so the other IPv6 tests would never have happened.
3) I don't think we need to test function_exists("is_ipaddrv6") any more - it had better be there in master!
Note: The front-end JS prevents entry of an invalid mask, so it is a bit hard for the user to actually generate the netmask error messages.
2016-12-06 10:38:33 +05:45
Phil Davis
e030050ddb Fix unset glxsb
This bit of upgrade_config code needs a global reference to $config
2016-12-06 09:14:12 +05:45
Renato Botelho
fc6b7031f6 Merge pull request #4815 from doktornotor/patch-2 2016-12-05 18:11:55 -02:00
jim-p
f34e9794b1 Stopgap to keep filter reload errors from happening due to NPt rule errors. Ticket #6985 2016-12-05 14:34:23 -05:00
Jared Dillard
0b037063ea Merge pull request #3159 from stilez/patch-46 2016-12-05 13:11:44 -06:00
Jared Dillard
9a275fb08b Merge pull request #3181 from moisseev/master 2016-12-05 13:09:11 -06:00
Steve Beaver
ac572fc13d remove bogus debug 2016-12-05 11:08:00 -05:00
Steve Beaver
3b1c0951dd Fixed #6454
Fixed #6984
2016-12-05 10:45:51 -05:00
doktornotor
cd2c59c983 Do not truncate IPv6 addresss in NTP widget (Bug #4815) 2016-12-04 10:44:53 +01:00
plumbeo
1878e1c932 Captive portal: add option to include idle time in total session time
Add an option to choose whether the time spent idle by a user disconnected for exceeding the idle timeout must be included in the total session time sent to the RADIUS server or not.
2016-12-03 18:03:33 +01:00
Jason McCormick
0f2fbcd721 fix typo from merge 2016-12-03 08:04:06 -05:00
Jason McCormick
a5676b5dd9 Merge remote-tracking branch 'upstream/master' into 6751_route53 2016-12-03 08:00:52 -05:00
Luiz Otavio O Souza
7d4d9ec586 Remove the PHP limit from diag_dump_states(), it is now managed on pfSense_get_pf_state(). 2016-12-02 22:22:37 -06:00
jim-p
f829a8d325 OpenVPN populates IPv6 env vars now, so we can fetch them for the IPv6 gateway. Fixes #6016 2016-12-02 14:41:30 -05:00
jim-p
8ec7704086 Fix indent 2016-12-02 13:18:53 -05:00
jim-p
da83e212aa Merge pull request #3145 from skrude61/master 2016-12-02 13:18:05 -05:00
jim-p
63b44eed9e Create a dummy /etc/printcap when starting bsnmpd so it it will not log errors. Fixes #6838 2016-12-02 13:03:18 -05:00
jim-p
80bc583c23 Standardize and fix 'other' type VIP display on NAT pages. Fixes #6094 2016-12-02 12:15:05 -05:00
jim-p
d2ce7d30c3 Fix 'Other' type VIP options. Ticket #6094
While here, remove some defunct 'range' code that was never used.
2016-12-02 12:15:05 -05:00
Renato Botelho
778f988534 Merge pull request #3213 from PiBa-NL/interfaces-gateway-message 2016-12-02 14:47:57 -02:00
Renato Botelho
6cb599da2d Merge pull request #3246 from overhacked/dhcpd-dyndns-force-hostname 2016-12-02 13:59:38 -02:00
jim-p
3343571b7f Add missing L2TP from this gateway handling case. Fixes #6980 2016-12-02 10:50:58 -05:00
Renato Botelho
00847ca8ae Merge pull request #3247 from plumbeo/fix-reverse-acct 2016-12-02 13:34:21 -02:00
Steve Beaver
e6fa3b220f Add decoration to "On latest version" message 2016-12-02 08:46:22 -05:00
Steve Beaver
c73a2f3134 Revise status messages. Adjust PID file timeout to accommodate slower systems 2016-12-02 08:10:38 -05:00
jim-p
ad477ffafc Remove the broken e-mail options from diag_smart.php. Fixes #6393 2016-12-01 16:02:08 -05:00
jim-p
66e5d4f28e Print a message about SMART not working on uFW/SG-1000 (smartmontools is not available there) 2016-12-01 15:43:12 -05:00
Renato Botelho
cf15d4846d Remove extraneous ) 2016-12-01 14:17:39 -02:00