Commit Graph

13195 Commits

Author SHA1 Message Date
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
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
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
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
Renato Botelho
8f553334ba Bump version to 2.2.2-DEVELOPMENT 2015-03-18 14:06:52 -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
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
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
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
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
1ca17c45c1 Move libstrongswan-unity.so when Unity plugin is disabled so it can't modify the P2. Workaround for Ticket #4178
Conflicts:
	etc/inc/vpn.inc
2015-03-11 20:41:56 -05:00
Renato Botelho
b6c04ed838 Remove -U from mtree call used to restore files permissions, this is replacing symlink targets by the old values. Ticket #4328 2015-03-11 17:47:05 -03:00
Chris Buechler
87ca92d03c add granular control of state timeouts. Ticket #4509 2015-03-11 13:22:17 -05:00
Renato Botelho
cd8ce13c29 Explicit disable ssl.use-compression on lighty config. It should fix #4230 2015-03-11 14:09:31 -03:00
Renato Botelho
8304fb462a Remove BEAST protection option since default cipher is now good and works with hifn cards 2015-03-11 14:04:38 -03:00
Renato Botelho
3d50cb09c6 Add a log message when hostres SNMP module is ignored on APU boards 2015-03-11 10:05:38 -03:00
Renato Botelho
9f9bdb77f3 Disable SNMP hostres module on APU boards until we figure out why it's crashing on this specific board. Ticket #4403 2015-03-11 09:47:09 -03:00
Chris Buechler
17a003206d Leave adaptive.start and end at their defaults (60% and 120% of the state limit, respectively) if not user-overridden. 2015-03-11 01:31:50 -05:00
Chris Buechler
bd583dc2f0 Update cipher-list in web interface to prefer PFS. Ticket #4230 2015-03-11 00:24:59 -05:00
Chris Buechler
9229598abb Check for not up, rather than down, as there are a variety of potential
statuses that are not up. Ticket #4502
2015-03-10 20:37:36 -05:00
Chris Buechler
5fb0e30d28 Need global $ipsec_idhandling here. 2015-03-10 19:19:33 -05:00
Chris Buechler
eb6495c3b1 Don't enable interfaces_use by default. Add checkbox to enable on Advanced
tab, in case there are scenarios where it's desirable. Ticket #4341

Conflicts:
	etc/inc/vpn.inc
2015-03-10 17:20:11 -05:00
Renato Botelho
c17478a649 Check if it's an array before call foreach(). Ticket 2015-03-06 11:45:30 -03:00
Renato Botelho
b47f7d65d3 Stop trying to fix dns_split during strongswan config generation, we have an upgrade code in place for that, it should fix #4418 2015-03-06 11:31:04 -03:00
Renato Botelho
edf370e7e0 dns_split was a comma separated list and moved to use space as separator, provide upgrade code to make sure old configs are converted. Since there was a config upgrade version 11.7 only on master, I pushed it to 11.8 and used dns_split one as 11.7 to be able to backport it to RELENG_2_2. Ticket #4418 2015-03-06 11:30:54 -03:00
Chris Buechler
9c370fe6d3 Use get_failover_interface here to find appropriate interface. Ticket #4482
Conflicts:
	etc/inc/ipsec.inc
2015-03-06 00:57:11 -06:00
Chris Buechler
d8e4918f0a same change as previous commit, for IPv6. Ticket #4482 2015-03-06 00:46:04 -06:00
Chris Buechler
aeaa61435f Use the parent interface, not the _vip for interfaces_use. Part of Ticket #4482 2015-03-06 00:40:09 -06:00
Chris Buechler
c0e5ab96e7 Destroy stf interface when 6rd or 6to4 tunnel is disabled. Fixes #4471
Conflicts:
	etc/inc/interfaces.inc
2015-03-05 23:51:07 -06:00
Phil Davis
93a72cb88e Be nicer when checking if alias is numeric
Because an ordinary port can be numeric here.
Forum https://forum.pfsense.org/index.php?topic=89906.0
Conflicts:
	etc/inc/util.inc
2015-03-05 22:58:34 -06:00
Chris Buechler
73cdd9f0ca Remove the harden-glue option entirely and hard code it to yes. Ticket #4402 2015-03-05 19:35:59 -06:00
Chris Buechler
7df02c1e87 Skip any numeric-only aliases in the ruleset to prevent errors from those
who configured them on previous versions where that was allowed. Ticket
2015-03-04 15:51:48 -06:00
jim-p
a832806cba Add missing comma. Fixes #4485 2015-03-04 07:22:36 -05:00
Chris Buechler
227e21466b Enable UnicastOnly in radvd for ovpn* interfaces. Ticket #4455 2015-03-03 23:40:46 -06:00
jim-p
0b3cf7da55 Tweak the carp demotion factors slightly to avoid CARP transitions that are most likely unnecessary. 2015-03-03 14:18:46 -05:00
Phil Davis
603a97cb57 Be safe use require_once in zeromq
I was testing code and just doing stuff like:
require_once("zeromq.inc");
in Diagnostics->Command Prompt, PHP Execute
That brings an error because underneath that PHP Execute code it has already included auth.inc
I guess zeromq.inc is used quite separately to the rest of the system, and must be OK just having a "require" here. But it seems safer to always use require_once, just in case it gets called in a new way/sequence.
Comments welcome.
2015-03-03 08:01:40 -03:00
Chris Buechler
911cc213ab Remove "Prefer old SA" option, and ignore it in all existing configurations. Breaks things in many cases with strongSwan. For the very rare circumstances where this is actually desirable, it's just a sysctl that can be set in tunables. 2015-03-03 00:18:50 -06:00