Commit Graph

25050 Commits

Author SHA1 Message Date
jim-p
08c1db2dbf Fix encoding issues in Configuration History list. 2015-03-31 09:26:55 -04:00
jim-p
05a463843a Fix a few misc encoding issues in load balancer code. 2015-03-31 09:26:04 -04:00
Philip Hansen
807cdae39e Fixed minor spelling error 2015-03-30 11:50:05 -03:00
Chris Buechler
4f00900cdf Remove wireless cards from ALTQ-capable interfaces, since ALTQ is broken on wlandev in FreeBSD 10.x at the moment. Ticket #4406 2015-03-28 00:09:21 -05:00
Chris Buechler
e593bac7e0 add missing ) 2015-03-26 18:51:04 -05:00
Chris Buechler
72371a3d77 Include net.key.preferred_oldsa in the sysctl list, set to 0 (disable) so
it doesn't fall through to the default (1).
2015-03-26 16:56:01 -05:00
Gertjan
96e8a99926 Voucher messages using wrong config field name
https://forum.pfsense.org/index.php?topic=91168.msg505273#msg505273
$config['voucher'][$cpzone]['msgnoaccess']
and
$config['voucher'][$cpzone]['msgexpired']
do not exist.
These should be
$config['voucher'][$cpzone]['descrmsgnoaccess']
and
$config['voucher'][$cpzone]['descrmsgexpired']
2015-03-26 14:51:32 -03:00
Phil Davis
8e2a5adf50 RRD Graph Custom Tab display friendly description
The other tabs of Status:RRD Graphs put the friendly description of each interface into the drop-down list for selection.
This change makes the Custom tab do that also.
2015-03-26 13:28:08 -03:00
Phil Davis
383dd72d61 Always include general setup DNS servers in unbound.conf
when forwarding mode is on.
The General Setup setting "Allow DNS server list to be overridden by DHCP/PPP on WAN" has always been used in dnsmasq to ADD DHCP/PPP provided DNS servers to the list, while also keeping the DNS servers specified in General Setup. That behavior is needed if:
1) WAN1 static IP with upstream DNS server/s specified in General Setup and selecting the WAN1 gateway. WAN2 uses DHCP, DNS server received by DHCP from upstream. The user needs to tick "Allow DNS server list to be overridden by DHCP/PPP on WAN" to get the WAN2 DNS server to be used, but also wants the DNS server from General Setup to also be used.
2) WAN1 static IP, DNS server/s specified in General Setup. For whatever reason the user has also ticked "Allow DNS server list to be overridden by DHCP/PPP on WAN". In actual fact there are no WAN-style interfaces set to DHCP, so "allowing to be overridden" should not come into effect anyway - the DNS servers in General Setup should be used.
3) WAN1 DHCP, but the upstream DHCP does not give out any DNS server/s. "Allow DNS server list to be overridden by DHCP/PPP on WAN" is ticked. Again there are no DNS servers received via DHCP, so any "override" should not be invoked.

In all cases, it turns out that actually we want any General Setup DNS servers to be included in the DNS forwarder/resolver conf in addition to whatever (if any) DNS servers happen to be provided from a DHPC-WAN.

This change makes unbound behave that way - the same as dnsmasq already does.
2015-03-26 13:00:12 -03:00
Phil Davis
11fd072b11 Only list nameservers once in resolv.conf
I was on a test system and had an upstream DNS server IP specified in System-General Setup. WAN was setup with a static IP and a gateway to that upstream device. All good.
Then I also checked "Allow DNS server list to be overridden by DHCP/PPP on WAN" and changed WAN to be DHCP. It received by DHCP the same DNS server IP that already happened to be in General Setup (and the same gateway IP - not the issue here).
/var/etc/resolv.conf had the name server line twice with the same IP address - once from the DHCP acquired data, and once from the General Setup data.
I don't think it broke anything, but it does look odd.
This change makes sure that DNS servers from General Setup are only added to resolv.conf when they are not already there.
2015-03-26 11:23:38 -03:00
Phil Davis
6eb5191b7c Status DHCP Leases handle expire never
Note: We can let the code pass "never" (or any other unexpected stuff)
to adjust_gmt()
adjust_gmt() should anyway handle the case when strtotime() cannot
understand the input string and thus returns false. In that case we
return the input string as-is so it will be displayed as the time. That
way the user will see it and can report easily whatever other unexpected
char data was in the leases file.
It also prevents "false" (zero) being converted to the date-time string
and thus becoming the Unix epoch 1 Jan 1970 on the display.
Latest forum report of this kind of thing:
https://forum.pfsense.org/index.php?topic=90083.0
2015-03-26 11:08:45 -03:00
jim-p
3c3a3bf9c5 Eliminate the "this_device" test from the resync check in rc.openvpn.
It is not necessary to check, as the only times a gateway event should trigger the VPN to restart are when the current and new devices differ.
This also allows us to simplify the code a bit and eliminate some single-use variables.
See the discussion at 4aefcf9151
2015-03-25 10:40:50 -04:00
jim-p
d4d24d6a08 The logic of this test seems to be incorrect.
If the interface is the same, this test will fail, and that's the one case that should not need a resync.
The logic in this test has been flipped and reversed a few times over the years and without comments it's difficult to discern its true purpose.
2015-03-24 14:08:53 -04:00
Phil Davis
e0f5f6f487 Be consistent about Unbound service descriptive name
Forum: https://forum.pfsense.org/index.php?topic=91075.0

For DNS Forwarder (dnsmasq)
1) dnsmasq is the name of the service
2) DNS Forwarder is the text description

Make Unbound consistent with that, so that menu names and services status display and... work in the same way:
1) unbound is the name of the service
2) DNS Resolver is the text description
2015-03-23 11:50:43 -03:00
k-paulius
78317c2562 Use is_numericint() instead of empty() to check if value has been entered because empty() does not allow 0, which is a valid value. 2015-03-23 10:36:14 -03:00
k-paulius
0f7f6aa91f Make sure 'DHCPv6 Prefix Delegation size' is provided if 'Send IPv6 prefix hint' flag is checked to avoid generating invalid dhcp6c configuration file. 2015-03-23 10:36:08 -03:00
Phil Davis
4e34cdf3bf Handle release number in installer
This code just looked wrong. It was considering 10.1-RELEASE-p6 to be release number "1" and comparing it to "9".
These changes to do what it seems to intend. This will make that UFS+J stuff appear, if that is of any consequence.
2015-03-23 08:15:57 -03:00
Jose Luis Duran
c2b0382055 Use none instead of a whitespace in sshd_config
Use the `none` keyword instead of a whitespace to disable the FreeBSD version in sshd_config.
2015-03-20 16:04:11 -03:00
Chris Buechler
c1ef7cfb41 Add option for wireless standard "auto", to omit "mode" entirely from ifconfig. This shouldn't be necessary, but specifying mode has proven to trigger driver problems that don't exist if it's left unspecified (such as FreeBSD PR 198680). Chosing "auto" fixes ath(4) BSS mode issues otherwise preventing it from connecting. 2015-03-18 23:52:46 -05:00
Jared Dillard
57413f7fd1 change the location of jquery-ui images in each theme's css file 2015-03-18 14:07:43 -05:00
Renato Botelho
8f553334ba Bump version to 2.2.2-DEVELOPMENT 2015-03-18 14:06:52 -03:00
Phil Davis
5372d26d9d Cleanup code path when adding a new user
1) Only attempt to delete the oldusername if it actually was non-empty - at the moment errors are logged in the system log when adding a new user, because the code was trying to delete the user name "".
2) Call local_user_set() first to create (change, whatever) the user record. This makes the user record exist for a new user. Then call local_user_set_groups() to sort out what groups the user should be in or not in. The existing code would fail to add a new user to the specified group/s because local_user_set_groups() was called too early, before the user actually existed.

Typical system log errors from the old code:
Mar 18 17:10:31 	php-fpm[9542]: /system_usermanager.php: Tried to remove user but got user pw instead. Bailing.
Mar 18 17:10:31 	php-fpm[9542]: /system_usermanager.php: The command '/usr/sbin/pw groupmod admins -g 1999 -M '0,2003,2006,2008' 2>&1' returned exit code '67', the output was 'pw: user `2008' does not exist'

From looking at the code history, I think this has been this way for a long time, not a new bug at all.

Discussed in forum: https://forum.pfsense.org/index.php?topic=90700.msg501766#msg501766
2015-03-18 10:58:58 -03:00
Phil Davis
b13f7a8c58 Do not allow VLAN tag zero
At the moment you can make a VLAN with tag 0. The input validation does not catch it because when $_POST['tag'] = "0" that evaluates to false by PHP.
Always make the checks on 'tag' value whenever the 'tag' key is set at all. If the (required) 'tag' key is not set, then that is already checked for by do_input_validation().
2015-03-18 10:57:31 -03:00
Phil Davis
08b02994b1 Use subnet address in OPT net rules
Example: LAN IP 10.0.1.1/24 OPT1 IP 10.0.2.1/24
Rules with SRC or DST LANnet correctly have 10.0.0.0/24 (the subnet base address) in /tmp/rules.debug
Rules with SRC or DST OPT1net have 10.0.2.1/24 (the OPT1 IP address with OPT1 net mask) in /tmp/rules.debug
It still works (I think) because actually 10.0.2.1/24 and 10.0.2.0/24 interpreted as a subnet still describes the same set of IP addresses, but it looks odd, as reported by: https://forum.pfsense.org/index.php?topic=90096.msg498474#msg498474
Same issue with IPv6 for OPT1net rules.
This fixes the rule generation to that OPT1net uses the base subnet address in the rule, in the same way that LANnet and WANnet does.
2015-03-16 08:21:41 -03:00
Phil Davis
06144727b0 pfSsh.php readline function return value
This just looks wrong. But I guess the code path never comes through here because function readline() already exists in the environment of this script.
2015-03-16 08:16:07 -03:00
Renato Botelho
54aac08057 It's time for 2.2.1-RELEASE 2015-03-13 10:14:08 -03:00
Chris Buechler
ae2db699d6 txpower was disabled for good reason it would appear, it triggers syntax errors in some configurations. Disable it again since it's been disabled for years, and comment out the user-facing config portion for now since it doesn't do anything. Ticket #4516 2015-03-13 03:15:10 -05:00
Chris Buechler
9b65fdd0ce Apply WME input validation to all modes, not just hostap. Ticket #4516 2015-03-13 03:07:50 -05:00
Chris Buechler
e4909df4de Default to 11ng if an option hasn't been configured. Previously we let the browser pick the first in the list (the first the card reported as available), which ended up being 802.11b. Ticket #4516 2015-03-13 02:54:30 -05:00
Chris Buechler
771ca94f69 Default to WPA2, AES for new wireless interface configs. Ticket #4516 2015-03-13 02:29:56 -05:00
Chris Buechler
4d84e32362 Auto-size the interface box on the bridge edit page. 2015-03-13 01:19:47 -05:00
Chris Buechler
1cabb79c28 touch up interfaces.php text 2015-03-13 00:15:05 -05:00
Chris Buechler
33e85f856a Require WPA PSK where WPA-PSK is enabled. Clean up some other text. Ticket #4516 2015-03-12 23:43:31 -05:00
Chris Buechler
3c53b38b03 clean up input errors text 2015-03-12 23:25:51 -05:00
Chris Buechler
e2d36ad626 add missing double == in ipsec.inc 2015-03-12 22:06:42 -05:00
Phil Davis
580f4f3f83 Missin double equals in captiveportal.inc
Looking at where this is nested inside various if statements, I do not think this error did too much harm - only to the $mac['descr'] - in this particular code flow $username is not used for important stuff after this point.
Conflicts:
	etc/inc/captiveportal.inc
2015-03-12 22:03:09 -05:00
Chris Buechler
ec253cd500 Fix up text, remove "only for Atheros" since the option is only shown if a compatible card exists. 2015-03-12 21:01:42 -05:00
Chris Buechler
f5fb15b928 "Auto" channel with hostap doesn't work correctly at the moment, force choosing a specific channel with hostap mode for now. 2015-03-12 20:56:31 -05:00
Chris Buechler
1483a8137f Set txpower since that seems to work fine now. Explicitly set authmode wpa here, though it's also handled by the supplicant/authenticator. Ticket #4516 2015-03-12 20:45:11 -05:00
Renato Botelho
e691957fca Do not start filterdns during boot until a proper fix is done. Ticket #4296 2015-03-12 21:09:55 -03:00
Chris Buechler
80271fb308 add more wireless validation. Ticket #4516 2015-03-12 18:53:31 -05:00
Chris Buechler
22ec33b9d6 Add more validation for wireless config settings. Ticket #4516 2015-03-12 18:22:25 -05:00
Chris Buechler
bda6c6bf4f Add more input validation for wireless parameters. Ticket #4516 2015-03-12 16:48:36 -05:00
Chris Buechler
b00b6c066c Touch up wifi text 2015-03-12 15:07:47 -05:00
Chris Buechler
ad073d9aec If we bail not being able to find the P1 source, log an error. 2015-03-12 14:49:15 -05:00
Phil Davis
7f951c6306 White space in ipsec.inc 2015-03-12 01:32:30 -05:00
Phil Davis
4385f8706a White space in filter.inc
Conflicts:
	etc/inc/filter.inc
2015-03-12 01:29:06 -05:00
Chris Buechler
38b3fab701 use-compression is no longer a valid config option in lighttpd, it can't be enabled. This just throws an error in the log, remove it. 2015-03-12 00:53:23 -05:00
Chris Buechler
74c749be3a Fix IPsec on CARP IPs, broken when fixing IPsec with gateway groups and VIPs. 2015-03-12 00:09:28 -05:00
Chris Buechler
3d67c650ef clean up unique IDs text a bit. 2015-03-11 22:00:43 -05:00