11621 Commits

Author SHA1 Message Date
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
a96a081f67 Merge branch 'maurice-w-dhcpv6-fix-static-mappings-domain' 2020-02-21 12:18:15 +01: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
Franco Fichtner
20a3e1f3c8 LICENSE: sync 2020-02-18 16:45:25 +01:00
Franco Fichtner
f233429c33 make: run plist-fix on sync 2020-02-18 16:44:52 +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
d5e7ad8792 Framework: parity between plugins and core 2020-02-13 08:14:01 +01:00
Franco Fichtner
cf19e0ca8f pkg: move FLAVOUR to defaults 2020-02-12 12:34:18 +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
Maurice
1fde0b7e2d radvd: don't set Router Address flag
The Router Address flag "indicates that the Prefix field contains a complete IP address assigned to the sending router" (RFC 6275). This does not apply, we only send a prefix. This flag is only relevant for Mobile IPv6.
It has been there (for unknown reasons) since pfSense switched to radvd 8 years ago: 3f9cc8e44c
2020-02-10 20:02:47 +01:00
Ad Schellevis
769d7a9a2e mirrors: Quantum Mirror 2020-02-07 14:55:59 +01:00
Ad Schellevis
18f3c65fd8 Merge branch 'trunet-add-dhcpv6-ddns' 2020-02-07 12:16:00 +01:00
Ad Schellevis
e4db773f14 dhcpd: cleanup code related to https://github.com/opnsense/core/pull/3910 2020-02-07 12:15:22 +01:00