Commit Graph

13187 Commits

Author SHA1 Message Date
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
Phil Davis
c8703520b5 Ancient bug on upgrade_014_to_015
This code looked silly the way it was, with the construct:
$var = $var;
unset($var);

Seems it was accidentally changed to this way many years ago by 588a183b0e
IMHO we want to do the conversion to $config['system']['gateway'] here so that later config conversion will then process it as expected.
Note that in a current (2.2) config there is not $config['system']['gateway'] but that is switched over later in upgrade_021_to_022 - which switches back to $config['interfaces']['wan']['gateway'] and then later config conversions do their thing with that.
I guess this will only effect people who upgrade from some really old config (or monowall?)
2015-03-02 07:39:26 -03:00
jim-p
5b06d6ad44 Fix type (trime->trim) 2015-02-26 08:26:56 -05:00
Phil Davis
2798bb681f interface_netgraph_needed can miss setting found equals true
This routine seems to go looking to see if the passed-in interface is PPP-style. At the end, if it is not PPP-style then it calls pfsense_ngctl_detach.
This foreach loop in its current state will always exit after the first iteration that is not mode "server". But it looks like it should look through all the 'pppoe' entries until it finds the interface or gets to the end.
In theory the code will sometimes miss setting $found = true when it should have. And thus pfsense_ngctl_detach would get called later for a PPP-style interface.
I noticed this while reviewing for code style guide - it is an example where the indenting shows the intention but there are no curlies to implement it.
2015-02-26 09:28:25 -03:00
Chris Buechler
8cf108b224 remove unused legacy code 2015-02-26 01:35:15 -06:00
Chris Buechler
71a690bba0 Log ifconfig commands used to setup wireless interfaces 2015-02-26 01:32:42 -06:00
Ermal LUÇI
59eb0ce73a Put the bits to use the new reset utility 2015-02-25 21:27:11 +01:00
Ermal LUÇI
4c9b272d11 Ticket #4418 Actually make each entry a clear token to strongswan parser for dns_split 2015-02-25 16:22:17 +01:00
Ermal LUÇI
ca5f5db156 Ticket #4418 make sure the dns_split is separated with spaces rather than space or comma to comply with strongswan requirements. 2015-02-25 16:19:41 +01:00