13884 Commits

Author SHA1 Message Date
Franco Fichtner
8a3887da9c interfaces: throw error on nonexistent assignment 2022-04-04 20:32:56 +02:00
Stephan de Wit
ebdf49363e
unbound: clean up references to legacy code, use mvc instead. also minor style fix (#5663) 2022-04-04 15:37:23 +02:00
Franco Fichtner
c0fdff1427 pkg: phalcon 5 test as well 2022-04-04 15:02:22 +02:00
Franco Fichtner
c3ae8435b7 pkg: dependency glue for PHP 8
json/openssl extensions moved to core package php80
2022-04-04 13:30:58 +02:00
Stephan de Wit
e9c8f59c6e unbound forwarding: be even more explicit about DoT usage 2022-04-04 12:51:24 +02:00
Franco Fichtner
b34ba9a61f interfaces: optional prefix tracking for WAN #5630 2022-04-04 09:12:50 +02:00
Franco Fichtner
5595e73f60 Revert "IPSec - VTI, ignore tunnel devices if local or remote endpoint can't be found."
This reverts commit 38efe9d9d69c837498240a4f696aa60751a4627b.

Back out this code not released so far.  We can solve this in a better
way now with the device-based plugin approach added in 22.1.3.
2022-04-04 07:55:24 +02:00
Franco Fichtner
5ae1244fb3 pkg: fix plist 2022-04-03 20:46:12 +02:00
Ad Schellevis
20dbc6c6b1 Interfaces: Other Types: VLAN - Exclude POINTOPOINT interface types, closes https://github.com/opnsense/core/issues/5603 2022-04-02 02:57:49 +02:00
Ad Schellevis
ad9b7b1f40
Firewall / Aliases - various usability and visibility improvements (#5668)
Firewall / Aliases - various usability and visibility improvements

o change /api/firewall/alias/listNetworkAliases endpoint to return name and address
o add alias description as subtext in network group dropdown
o exclude row buttons for internal aliases
o support nesting of external aliases
o attach statistics to external aliases (like bogons and new interface network types)
o add preprocess in alias to handle non gui defined types
o network aliases will flush :network into the table
o aliases which aren't managed via configured settings will be fetched for nesting
o gather pf tables which aren't generated into filter_tables.conf as being external so the new imported static_aliases are usable without the need to import the settings in the template language
o initial work to support interface networks, register internal types and flush to alias template
o support imported static aliases using json definitions and move core aliases in there
2022-04-03 16:25:08 +02:00
Ad Schellevis
627c922845 Backup - pass filename to openssl [en|de]crypt. smaller version of https://github.com/opnsense/core/pull/5661 2022-04-01 19:55:05 +02:00
Bo Frederiksen
e01b6501d0
Added the correct content-type for the dashboard plugins feed. (#5666) 2022-04-02 15:16:15 +02:00
Ad Schellevis
5aaa603d4c Revert "System: Configuration: Backups - Don't leak backup password to ps (#5661)"
This reverts commit 78de5b796c29b0d686ee2c33a510056680ef7248.
2022-04-01 18:57:00 +02:00
oittaa
78de5b796c
System: Configuration: Backups - Don't leak backup password to ps (#5661)
* Don't leak backup password to `ps`

* Encrypted is base64 encoded, decrypted plain text
2022-04-01 11:20:00 +02:00
Stephan de Wit
e802567b70 unbound: be more explicit about forwarding behaviour and fix typo 2022-03-31 16:23:53 +02:00
Franco Fichtner
01913bf712 interfaces: for symmetry with PPPoE do not reload WAN when address disappears
See also: https://forum.opnsense.org/index.php?topic=27657.0
2022-03-31 08:55:24 +02:00
Franco Fichtner
7583ce52a9 interfaces: proper logic in adv/custom/basic modes #5332
Clarify the logic: custom first (cannot enable tracking extension
due to unknown contents -- could be scanned but not for today),
advaned settings with NA request unset, or basic with prefixonly
mode set.
2022-03-31 08:41:37 +02:00
Franco Fichtner
ca2f7b0ffa interfaces: DHCPv6 advanced has a different flag to disable NA #5332 2022-03-31 08:19:15 +02:00
Franco Fichtner
26a1b126c0 mvc: flipflip years to make more sense of moved functionality
Noticed on diff with stable/22.1.
2022-03-30 10:21:47 +02:00
Franco Fichtner
135d42fb7c src: style sweep 2022-03-30 10:01:52 +02:00
oittaa
5fd93bde41
Use random_bytes() from PHP 7.0+ and simplify the voucher generation (#5659)
* Use random_bytes() from PHP 7.0+
* Simplify voucher generation
2022-03-30 09:44:01 +02:00
oittaa
ec5f6877f5
Security : Use password_verify() (#5660) 2022-03-30 08:27:56 +02:00
Franco Fichtner
8e444c3b32 dhcp: give a hint on why an interface was ignored in radvd
PR: https://forum.opnsense.org/index.php?topic=26700.0
2022-03-29 13:16:39 +02:00
Franco Fichtner
4b6fa9e556 interfaces: different patch for ifctl use
Router file created by PPPoE as well?

PR: https://forum.opnsense.org/index.php?topic=27657.15
2022-03-29 10:15:39 +02:00
Franco Fichtner
aa64571116 system: more comments on get_nameservers() 2022-03-29 09:19:12 +02:00
Franco Fichtner
64fb551caa interfaces: add context to assignment label
Really not much to talk about at length.
2022-03-28 16:53:31 +02:00
Franco Fichtner
383561b6f1 system: simplify previous a bit
We can set gateway to null as it is ignored when setting host
route.  Also adhere to logic for interface selection in both
DNS modes, but only exclude from configuration list for dynamic
ones.

For the time being we don't need static/dymanic annotation
as the system doesn't care by design and we don't filter it
anywhere else.  Might be something for the status page, but
that's a larger change to level expectations vs. dyamic
connectivity properties.

A couple of style issues here and there as well.
2022-03-28 11:59:31 +02:00
Ad Schellevis
ccf826c065 theme / OPNsense - fix Dart deprecation warnings (DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.) 2022-03-28 11:33:38 +02:00
Stephan de Wit
8d3584be16 get_nameservers(): also return manual dns entries to simplify code elsewhere 2022-03-28 09:25:25 +02:00
Franco Fichtner
57097e20ac interfaces: according to #5646 VIP reassignment enforces "order"
This is strange, but no the strangest thing to happen.  Partially
restore the old functionality but this time make sure we only
flip IPv4 on IPv4 and IPv6 on IPv6 changes instead of everything
all the time.
2022-03-28 09:22:23 +02:00
Ad Schellevis
2e747acda9 MVC - VPN / IPsec. Move array search method to more generic searchRecordsetBase() in ApiControllerBase, which is modelled similar to how searchBase() is implemented in ApiMutableModelControllerBase.
could help https://github.com/opnsense/core/pull/5465
2022-03-25 21:38:05 +01:00
Franco Fichtner
0d5d9f9ba9 firmware: exclude revision to match release during hotfixes 2022-03-25 15:13:48 +01:00
Franco Fichtner
79df42229b make: convenience target to test migrations 2022-03-25 07:45:29 +01:00
Ad Schellevis
364ec4782d MVC & VLan interfaces - properly select the root node for /vlans, // select "any" node within the sructure, which can point to items deeper in the structure than intended.
To limit the impact, make sure to only alter vlans now, eventually we should fix the other models as well as they are using // too (but are less likely to overlap)

(take 2)
2022-03-24 19:42:37 +01:00
Ad Schellevis
ad4715a9fc MVC & VLan interfaces - properly select the root node for /vlans, // select "any" node within the sructure, which can point to items deeper in the structure than intended.
To limit the impact, make sure to only alter vlans now, eventually we should fix the other models as well as they are using // too (but are less likely to overlap)
2022-03-24 17:14:18 +01:00
Ad Schellevis
fcbca64262 logging - fix for clear single log target keeps clog file, closes https://github.com/opnsense/core/issues/5644 2022-03-24 14:11:14 +01:00
Franco Fichtner
8db4f8c72d interfaces: little more style on previous 2022-03-24 08:37:48 +01:00
Ad Schellevis
d17e9c737d interfaces: zero prefix "vlan" and "qinq" interface names to prevent collisions on vlans.(https://github.com/opnsense/core/issues/5560)
Although the prepended 0 might look less intuitive it prevents overlaps when creating new vlans using "ifconfig vlan create" (2637e6ebca/src/etc/inc/interfaces.lib.inc (L77)), to keep qinq and vlan's consistent prepend on both types.

ref 2637e6ebca
2022-03-23 18:32:02 +01:00
Franco Fichtner
aa3c27df0b src: witespace sweep 2022-03-23 14:50:19 +01:00
Franco Fichtner
e0e7c7ee4c dhcp: remove dynamic IPv6 host name annotations that don't work in isc-dhcp 2022-03-23 12:38:00 +01:00
Stephan de Wit
b4adcee862
unbound: prefer system nameservers if forwarding is enabled and only run unbound-anchor when necessary (#5625) 2022-03-23 11:21:33 +01:00
Franco Fichtner
2637e6ebca interfaces: use consistent "vlan" or "qinq" prefix, start a 0 #5560
Since we also change the vlan names here for new devices to eventually
avoid overlong vlan interface names (#3222) we need to make sure the
rest of the system knows the new prefixes.

Some related style changes in code and text.
2022-03-23 08:54:02 +01:00
Franco Fichtner
4462747946 unbound: old behaviour says this or that 2022-03-22 14:59:39 +01:00
Franco Fichtner
0e4c3c6321 pkg: fix plist 2022-03-22 14:57:53 +01:00
Stephan de Wit
ef37f253df unbound: fix model description validation 2022-03-22 14:41:32 +01:00
Franco Fichtner
d7188a1ccd firmware: revoke 21.7 fingerprint 2022-03-22 13:54:31 +01:00
Franco Fichtner
bf3f7ddfa9 src: style sweep 2022-03-22 13:51:40 +01:00
Franco Fichtner
9dfafbc2ec src: lint pass 2022-03-22 13:40:28 +01:00
Stephan de Wit
6832fd75a0
unbound: implement custom forwarders over current dot setup (#5606)
This PR pulls query forwarding over the current dot setup, so visually nothing changes.

All API calls are redirected to new Forward functions, which slightly modifies what is returned based on whether "Query Forwarding" or "DNS over TLS" is selected from the menu. This way backwards compatibility is preserved.

As an addition, a user is now able to specify a specific domain for a forward zone as well. Meaning that queries for this specific domain will skip a catch-all (".") domain (if specified), and instead use the server specified for this domain.

Entering a forward zone with a catch-all domain (".") in both Query Forwading and DNS over TLS is considered a duplicate by Unbound, so a static warning for this has been attached in the grid - however, it might be possible for a user to be warned dynamically over this.
2022-03-22 13:38:26 +01:00
Franco Fichtner
5205dd9da7 make: create dir before mfc 2022-03-22 11:20:01 +01:00