10740 Commits

Author SHA1 Message Date
Ad Schellevis
ce2b145185 Firewall/alias/geoip. make sure to trigger a download if no stats are found. Which should fix startup issues when aliases don't require a change and a new valid subscription is entered. 2020-02-25 10:38:05 +01:00
Ad Schellevis
f3adf835ef Unbound/dhcpd, missed a line in 96396f782e for https://github.com/opnsense/core/issues/3730 2020-02-24 20:48:00 +01:00
Ad Schellevis
96396f782e Unbound: refactor dhcpd watcher, contains multiple bugfixes (https://github.com/opnsense/core/issues/3730)
-  remove unbound registration if lease expires (previously this was only written to disk, not supplied to unbound-control)
-  when leases change, remove old fqdn's using unbound-control, this should mimic the current output in dhcpleases.conf more closely (if a manual registration was already there, it will be overwitten)
-  log when entries are removed, eventually it might be better to lower the level a bit, but informal seems like a good starting point for now.
-  switch to argparse for handling parameters
2020-02-24 16:29:50 +01:00
Ad Schellevis
ae60b1266d IPsec: add mvc service control api for https://github.com/opnsense/core/issues/3738 2020-02-24 13:44:05 +01:00
Ad Schellevis
e5831a7df1 MVC: add LegacyLinkField as described in a5b3177774
- acts as a link to legacy configuration values, which eases migration in some scenarios
2020-02-24 13:41:37 +01:00
Ad Schellevis
f9be0bb5fa stylesweep https://github.com/opnsense/core/pull/3949 2020-02-21 18:24:43 +01:00
Ad Schellevis
e43a101007 Merge branch 'ipsec-mobile-ipv6-pool' of https://github.com/vnxme/opnsense-core into vnxme-ipsec-mobile-ipv6-pool 2020-02-21 17:56:11 +01:00
Ad Schellevis
74677b2c24 fix previous 2020-02-21 14:05:28 +01:00
vnxme
c967707cbc
IPsec: add virtual IPv6 pool for mobile clients
This commit deals with mobile IPsec web UI. The changes include:
- define and copy fileds related to IPv6 configuration (match changes made in ipsec.inc) - L39 and L144;
- set the default value for IPv6 netbits to 64 - L51;
- adjust PHP form validation to match IPv6 controls - L104-105;
- adjust JS magic to match IPv6 controls - L197 and L216-226;
- adjust text related to IPv4 pool configuration (added 'IPv4' word to make it look consistent) - L406-425 and L101;
- create a new row with a check box, an input box and a drop-down box for IPv6 pool configuration - L426-445.
2020-02-21 15:23:36 +03:00
vnxme
234e7e27ea
IPsec: add virtual IPv6 pool for mobile clients
This commit deals with ipsec.conf file drafting. In terms of mobile clients option 'rightsourceip' now may be:
1) empty if no pools are configured;
2) %pool_address%/%pool_netbits% for an IPv4 only option;
3) %pool_address_v6%/%pool_netbits_v6% for an IPv6 only option;
4) %pool_address%/%pool_netbits%,%pool_address_v6%/%pool_netbits_v6% for a dual stack option.
2020-02-21 15:06:14 +03:00
Ad Schellevis
ea15651f4b DHCPv6 static mappings and dns, simplify https://github.com/opnsense/core/pull/3946 a bit 2020-02-21 12:17:15 +01:00
Ad Schellevis
309a297920 Merge branch 'dhcpv6-fix-static-mappings-domain' of https://github.com/maurice-w/core into maurice-w-dhcpv6-fix-static-mappings-domain 2020-02-21 08:07:43 +01:00
Maurice
c9599a34bb
DHCP registration, clarifications
Registrations of static mappings do not always use the system domain. The domains configured for individual static mappings or for the DHCP servers always had higher priority. Static mapping registrations work for both DHCPv6 and DHCPv4, dynamic lease registrations only for DHCPv4.
2020-02-20 21:57:40 +01:00
Maurice
38ce06ea67
DHCP registration, clarifications
Registrations of static mappings do not always use the system domain. The domains configured for individual static mappings or for the DHCP servers always had higher priority. Static mapping registrations work for both DHCPv6 and DHCPv4, dynamic lease registrations only for DHCPv4.
2020-02-20 21:49:02 +01:00
Maurice
8d2939a5fd
DNS registration for DHCPv6 static mappings, check domainsearchlist first, domain second 2020-02-20 21:10:35 +01:00
Maurice
4344817120
DNS registration for DHCPv6 static mappings, check domainsearchlist first, domain second 2020-02-20 21:03:41 +01:00
Maurice
1495801808
migrate domain to domainsearchlist, don't save domain 2020-02-20 20:35:27 +01:00
Franco Fichtner
2ad9300a32 firmware: also show not installed not orphaned missing #1663 2020-02-20 20:32:23 +01:00
Maurice
a19662c7c2
migrate domain to domainsearchlist, don't save domain 2020-02-20 20:29:33 +01:00
Franco Fichtner
6f73ec2073 pkg: fix plist and lint pass 2020-02-20 19:52:10 +01:00
Franco Fichtner
15fbeec367 firmware: good-will nit-picking and some more work to do 2020-02-20 19:50:12 +01:00
Maurice
49002d1bd7
re-add 'domain' to dhcpdv6 static mappings
'domain' was replaced by 'domainsearchlist' in #3824 because 'domain' is not used by dhcpdv6. But it is used by unbound and dnsmasq for DNS registration of DHCP static mappings. Just set it to the first entry of the domain search list.
2020-02-20 18:20:31 +01:00
Maurice
333c2eb63d
re-add 'domain' to dhcpdv6 interface configuration
'domain' was removed in #3824 because it is not used by dhcpdv6. But it is used by unbound and dnsmasq for DNS registration of DHCP static mappings. Just set it to the first entry of the domain search list.
2020-02-20 17:39:23 +01:00
Ad Schellevis
49afa0595e unbound_dhcpd: skip empty hostnames, closes https://github.com/opnsense/core/issues/3944 2020-02-19 19:31:34 +01:00
Ad Schellevis
d60990f8d5 dismiss/capture installed plugins for https://github.com/opnsense/core/issues/1663 2020-02-19 09:11:45 +01:00
Ad Schellevis
383a8fe8f1 firmware: highlight configured but not installed plugins and add show a button when there are missing plugins. for https://github.com/opnsense/core/issues/1663 2020-02-18 16:57:16 +01:00
Ad Schellevis
e202940403 logging: split formats from queryLog.py implementation. for https://github.com/opnsense/core/pull/3941 2020-02-18 13:07:17 +01:00
Franco Fichtner
6db615b5bb shell: one isset() is enough 2020-02-18 10:10:57 +01:00
Ad Schellevis
1f1776260d setaddr.php: improve type checks. closes https://github.com/opnsense/core/issues/3939 2020-02-17 20:50:11 +01:00
Ad Schellevis
2a80d1a8a2 interfaces: make sure descriptions are properly cleansed, save description when disabled too (missed in https://github.com/opnsense/core/pull/3808) closes https://github.com/opnsense/core/issues/3942 2020-02-17 20:33:19 +01:00
Maurice
86afa90afb Remove 192.0.0.0/24 from rebinding prevention list
ipv4only.arpa resolves to 192.0.0.170 and 192.0.0.171. This is required for DNS64 prefix detection (RFC7050).
2020-02-17 18:08:39 +01:00
Ad Schellevis
64052fae97 install missing plugins configd call: configctl firmware confplugins for https://github.com/opnsense/core/issues/1663 2020-02-17 10:19:49 +01:00
Ad Schellevis
1e2cc4724a pluginctl: add -g to extract config.xml values, e.g. pluginctl -g system.firmware.plugins (https://github.com/opnsense/core/issues/1663) 2020-02-17 09:57:11 +01:00
Ad Schellevis
862a60b774 stylesweep previous 2020-02-16 19:34:30 +01:00
xx4h
7d72dbdc28
(Auth) fix expiry and validity for vouchers (#3931)
Always check if voucher is not expired (either
because of never expires or because of expiry
date is in the future) and ensure session timeout
will be the lowest of validity based on the first
usage, the starttime or expiry (if not never expires).
If one of those conditions is not true, reject
authentication.

Fix #3930
2020-02-17 08:58:23 +01:00
Franco Fichtner
e690ff6fec src: style sweep 2020-02-14 13:24:19 +01:00
Franco Fichtner
2856288bbf unbound: remove previous, security risk asssesment by @maurice-w
PR: https://github.com/opnsense/core/issues/3797
2020-02-13 10:48:54 +01:00
Ad Schellevis
8691618bdd filter: pass object in filter_core_get_port_alias to allow large sets of aliases 2020-02-13 10:18:11 +01:00
Franco Fichtner
877361d3c0 dhcp: guard against primary address grab fail 2020-02-12 09:33:36 +01:00
Franco Fichtner
1c42d3462e dhcp: copy+paste fail 2020-02-12 09:29:39 +01:00
Franco Fichtner
8801097cbc dhcp: support VIPs in auto-radvd case 2020-02-12 09:27:43 +01:00
Maurice
20efa4f46c radvd.conf for tracking LAN interfaces, cleanup
For tracking LAN interfaces with manual configuration disabled, some odd radvd configuration choices were made:
MinRtrAdvInterval / MaxRtrAdvInterval were set to very low values (3 / 10) for no apparent reason. Now removed so radvd defaults (200 / 600) will be used.
The DHCPv6 server is enabled and configured with a range6, but the Managed flag was not set. Now set to on.
DeprecatePrefix was only set if the IPv6 configuration type of the tracked WAN interface was SLAAC. Now always set to on.
2020-02-12 08:49:56 +01:00
Ad Schellevis
65b80e6a55 interfaces., missing break. closes https://github.com/opnsense/core/issues/3922 2020-02-11 17:20:15 +01:00
Ad Schellevis
9f3f4d7336 user manager: add valid from and to dates to user certs, remember last ca to create a new internal cert.
small improvement when trying to create a new cert for a user, you need to delete the old cert, which is difficult to distinct because both have the same name (validity helps) and the new cert very often needs to use the same ca, set this one as default when requesting a new one.
2020-02-11 17:06:57 +01:00
Franco Fichtner
d21780177b interfaces: subnet bits as extra return value 2020-02-10 23:41:21 +01:00
Franco Fichtner
74901aacd1 interfaces: actually... #3310 2020-02-10 22:37:18 +01:00
Franco Fichtner
c76c61e24c interfaces: typo #3310 2020-02-10 20:42:16 +01:00
Franco Fichtner
d3b5d9ede2 interfaces: sneak in primary IPv6 info before it defaults to "something" #3310 2020-02-10 20:38:31 +01:00
Franco Fichtner
d75cae031a interfaces: turn dhcpd function into generic function #3310 2020-02-10 20:24:39 +01:00
Franco Fichtner
08beb7b6ad dhcpd: get realif if not specified otherwise #3310 2020-02-10 20:16:35 +01:00