Commit Graph

13216 Commits

Author SHA1 Message Date
Phil Davis
ed005b2000 Few minor text typos
Note that advertise is spelt with an "s" in other places in the GUI, so
making it consistent in services_ntpd - but maybe Americans do spell it
"advertize" these days?
2015-04-06 09:41:59 -03:00
Chris Buechler
38253ce6e5 Include additional subnets for RAs in radvd.conf. Ticket #4468 2015-04-04 20:36:13 -05:00
Chris Buechler
c5292060a4 Fix up Ticket #4504 implementation. Match config style with other areas. Use a config setting to disable, rather than enable, this functionality since it's enabled by default so the tag isn't necessary in the default config. Remove now unnecessary config upgrade code. 2015-04-04 19:52:10 -05:00
Chris Buechler
600b4c3bb8 fix type. Ticket #4504 2015-04-04 19:35:59 -05:00
Chris Buechler
bc395b180b Remove array_intersect_key here too, definitely not needed. add to obsoletedfiles 2015-04-04 00:23:09 -05:00
Chris Buechler
a8c07dc8e0 uploadbar dir no longer needed 2015-04-04 00:12:33 -05:00
Ermal LUÇI
b9115c26dd Prevent empty addresses for being put in the ruleset. Ticket #4564 2015-04-03 20:32:49 +02:00
Ermal LUÇI
3d48d3c54b Ticket #4504 actually make it correct 2015-04-03 20:12:07 +02:00
Ermal LUÇI
5a2ebbb1e5 Upgraded configurations should keep the default configuration of bypassing lan from ipsec. Ticket #4504 2015-04-03 20:10:34 +02:00
Ermal LUÇI
491c76c802 Fixes #4504 Provide a newline to generate proper config 2015-04-03 20:08:55 +02:00
Ermal LUÇI
534753890c Fixes #4504 Allow the bypass policy for LAN to be enabled and prevent traffic sent to lan ip to go to the ipsec tunnel 2015-04-03 19:59:23 +02:00
Chris Buechler
490b6c4f53 Only use mobile clients PFS config with mobile ph2ent. Ticket #4538 2015-04-03 03:07:12 -05:00
Chris Buechler
8841c0fd98 disable SSL validation for selfhost since it fails. Ticket #4545 2015-04-03 02:35:25 -05:00
Chris Buechler
963621f294 enable ike_name for daemon facility as well, to add connection identifiers to logs. 2015-04-02 22:57:30 -05:00
Chris Buechler
83ccc8649b Use real interface here for dhcrelay v6. Ticket #4572 2015-04-02 19:46:10 -05:00
Chris Buechler
35ff72fa04 0 could be valid for hostname aliases too. Ticket #4573 2015-04-02 19:11:42 -05:00
Chris Buechler
052e4ee829 Don't omit hosts specified as "0". Ticket #4573 2015-04-02 19:07:15 -05:00
Phil Davis
a46212734a Bug #4566 Only route-to a gateway if it is not force_down
When generating policy-routing rules there was no check if a gateway had force-down set, so gateway with force_down set would still get policy-routing rules written for it, even if skip_rules_gw_down was enabled.
2015-04-02 13:40:18 -03:00
Chris Buechler
d985cfa679 call this RCC-VE rather than C2358 2015-03-31 20:32:41 -05:00
Chris Buechler
68e322065d Add a check for whether IPsec is enabled, so it doesn't spit out "IPsec
daemon not running or has a problem!" when IPsec isn't enabled.
2015-03-31 15:18:26 -05:00
Ermal LUÇI
887f2517a3 Merge manually pull request #1593 2015-03-31 18:18:21 +02: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
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