13507 Commits

Author SHA1 Message Date
Franco Fichtner
1eb25c2490 system: do not clobber mount points
In case of ZFS a move doesn't really work.  Remove links only
and move the directory contents over.
2021-12-16 10:51:14 +01:00
Franco Fichtner
50d3f5e738 system: mostly adjust -z mode to give size and identifier from ZFS pools 2021-12-15 08:42:54 +01:00
Franco Fichtner
d7e6dbde38 system: df -t zfs returns duplicated tmpfs entries; closes #5344
When not using -t the list is correct and since we have -T make
sure we filter for the ones we asked for before.  -a seems like
a good fit here too.
2021-12-14 22:19:48 +01:00
Franco Fichtner
1977e3539f Revert "firmware: work around FreeBSD 13 faulty validation"
This reverts commit d7d69895cd8672379a634488fb116e1a0bbbeaa6.
Was properly solved in stable/22.1.
2021-12-14 11:58:36 +01:00
Franco Fichtner
250ecd5bc4 system: opnsense-importer -m mode
Was in need of something like this to gain access to a ZFS pool without
having to run a command sequence from the top of my head.

Comes in pretty handy when being included from a recovery install stick.
2021-12-14 09:34:00 +01:00
Ad Schellevis
67910fbfea Services: Intrusion Detection - rule downloads : gently log when connectivity issues appear. 2021-12-10 17:23:37 +01:00
Franco Fichtner
d7d69895cd firmware: work around FreeBSD 13 faulty validation
ping6: -4 and -6 cannot be used simultaneously

No, that's not how argument parsing works...
2021-12-10 12:46:40 +01:00
Franco Fichtner
7767a6db9e firmware: for quick troubleshooting support -O like opnsense-update 2021-12-10 12:28:27 +01:00
Franco Fichtner
f122316ba5 firmware: next beta coming up 2021-12-10 10:29:37 +01:00
Ad Schellevis
03f7dbc431 VPN / OpenVPN / Connection Status - kill by common name when address doesn't seem to be possible. closes https://github.com/opnsense/core/issues/5038 2021-12-09 19:09:33 +01:00
Franco Fichtner
602d5c5912 firmware: be more chill about missing product_check and always return product info #5394 2021-12-09 09:47:24 +01:00
Franco Fichtner
7a68bab085 firmware: deleting the file under configd execution and copy...; closes #5396
... leaves us with permission 640 even though we have copied a
644 file.  Removing the unlink() makes this work without a
chmod but the unlink is there for the fact that /etc/ssl/cert.pem
used to be a symlink and could clobber the actual file linked
which was the original package provided.

Might be an umask issue, but better leave it where it is.
2021-12-08 14:33:14 +01:00
Franco Fichtner
5b42f2229f firmware: just for consistency 2021-12-08 08:48:06 +01:00
kulikov-a
e7bccd6824
change severity (#5395) 2021-12-08 08:38:05 +01:00
Franco Fichtner
76bb8b7d39 firmware: fix launcher invoke from shell menu 2021-12-08 08:28:18 +01:00
Franco Fichtner
b3ec15fe0c firmware: no need for this file anymore starting with 21.7.7
opnsense-update.conf will take over and firmware-upgrade doesn't
exist on stable/21.7 anyway.
2021-12-08 08:17:20 +01:00
Franco Fichtner
b6b092a0ea system: copy+paste fail 2021-12-07 17:10:46 +01:00
Franco Fichtner
45d5d42010 interfaces: avoid inline creation of GIF/GRE tunnels
Instead move the out-of-band configuration into the same area where
the ipaddr/ipaddrv6 configuration is taking place.  Should a tunnel
not come up we have clearer readings now of which part of the GUI
can force this...
2021-12-07 11:22:57 +01:00
Franco Fichtner
f2081d3778 interfaces: simplify to avoid $config access 2021-12-07 10:28:52 +01:00
Franco Fichtner
29bdf8cf74 interfaces: also add logging for GIF/GRE inline configuration 2021-12-07 09:39:02 +01:00
Franco Fichtner
5123a662d7 interfaces: safe to assume $realif exists, use it consistently
get_real_interface() is basically just a large wrap around $wancfg['if'] and
since it's used so much try to avoid touching the 'if' internal here.
2021-12-07 09:34:26 +01:00
Franco Fichtner
b62e045828 interfaces: log when we try to attempt inline virtual device creation
o The spot is already treated with suspicion that the situation cannot happen
o interfaces_addresses_flush() will ignore an empty realif(v6) so remove comment
2021-12-07 09:03:53 +01:00
Franco Fichtner
1211809c24 intefaces: avoid handling "hardware" settings for devices node path 2021-12-07 08:42:37 +01:00
Franco Fichtner
e12774a75b interfaces: drop get_parent_interface(); loosely refs #5338
Make a single-purpose function that can rely on the sanity checking
of its only two callers.
2021-12-06 17:25:37 +01:00
Franco Fichtner
6ff74b9511 interfaces: remove previously broken code
Since the code was only fixed in 024c7e1694 and the lookup is
questionable (especially on IPv4 real interface which is vanilla
as opposed to PPP IPv6 shifting).

The problem with e.g. a wan: pppoe0 -> em1 situation is that
if you assign em1 the answer to the query shifts from "wan" to
"opt1" so we would rather miss the situation to resolve "em1"
since the correct interface is "pppoe0" anyway.

Also looking at callers of convert_real_interface_to_friendly_interface_name()
there isn't a PPP-related call in there anyway that would require
this.
2021-12-06 17:10:51 +01:00
Franco Fichtner
88bc06006f interfaces: restrict vlan selection
None of these support VLANs on top.
2021-12-06 15:42:49 +01:00
Franco Fichtner
1aee1b16c6 interfaces: whitespace again 2021-12-06 15:18:19 +01:00
Franco Fichtner
550f5e35b3 interafces: patch in parent devices for LAGG and bridge 2021-12-06 15:00:18 +01:00
Franco Fichtner
8578bd35a6 interfaces: split get_parent_interface() into its use cases
* Make it only react to PPP related lookups, no generic fallback
* Move the VLAN portion to a simplified dedicated function
* As a placeholder we shall see if bridges and LAGGs benefit from it
2021-12-06 14:37:10 +01:00
Franco Fichtner
024c7e1694 interfaces: return $ifname and decouple the search loop
This looks like a typo in the original code as we expect to return
a "wan|lan|optx" thingy.

"Parent" lookup isn't really very useful except for PPP types.
The question is if there is an edge case that would still allow
this to resolve when the other code preceeding it can not.
2021-12-06 14:05:22 +01:00
Franco Fichtner
351295ecba interfaces: configure_interface_hardware() can take previous details 2021-12-06 13:48:52 +01:00
Ad Schellevis
6b29cc356b configd - internal profiler fix incorrect enable call (probably a python 3 remnant) 2021-12-06 08:28:00 +01:00
Franco Fichtner
0332b6bc1e pkg: fix plist 2021-12-04 10:24:19 +01:00
Ad Schellevis
ce656d076b Firewall / Aliases - add "Dynamic IPv6 Host" type. closes https://github.com/opnsense/core/issues/4923 2021-12-02 21:23:25 +01:00
Franco Fichtner
cc443a7061 dhcp: rewrite conditionals to adapt to configured reality
The trigger was filename + filename32 + filename64 which probably
doesn't work very well for newly added ARM types.  Instead write
the conditional architectures as they are filled in.  The GUI
certainly doesn't make any restrictions and I believe neiter does
isc-dhcp.

While here polish the GUI labels a little to make the requirements
clearer.

Apparently, Charlie Root was in a hurry when introducing this
back in 2014: https://github.com/pfsense/pfsense/commit/7023c602b
2021-12-01 13:39:48 +01:00
Ad Schellevis
cee094aa61 MVC - Models : improve error handling for missing fieldtype classes 2021-12-01 11:41:00 +01:00
Keith Cirkel
130b274b6c
Services / DHCPv4 - Allow for ARM architectures in DHCP Network Boot options (#5361) 2021-11-30 20:11:05 +01:00
Ad Schellevis
9f3b6e873a IDPS - update classification.config with https://raw.githubusercontent.com/OISF/suricata/master/etc/classification.config
closes https://github.com/opnsense/core/issues/5384
2021-11-30 18:30:19 +01:00
Franco Fichtner
b6ffe6fa17 interfaces: just for fun 2021-11-29 12:05:09 +01:00
Franco Fichtner
f8757b441b interfaces: put a fancy newline 2021-11-29 11:41:50 +01:00
Franco Fichtner
d1f942af64 intefaces: simplify this one as well #5367 2021-11-29 10:57:45 +01:00
Franco Fichtner
6704426c19 interfaces: repair getenv() breakage in ea6b5bda52409 the right way #5367
Moral of the story: don't try to call backend scripts to grab env
variables that you could easily read using the acual nameserver
script sort of like dhclient-script is doing it.

ALLOWOVERRIDE is silly as we guard against that in get_nameservers().
2021-11-29 10:57:40 +01:00
Franco Fichtner
08df2b0255 interfaces: align file names #5367 2021-11-29 07:37:29 +01:00
kulikov-a
bde62fc806
Firewall / Diagnostics / Sessions - typo in direction (#5378) 2021-11-28 16:48:17 +01:00
kulikov-a
c898111c6e
Firewall / Diagnostics / States - switch dst-src with direction (#5377) 2021-11-28 15:41:07 +01:00
Franco Fichtner
fa184ba539 interfaces: fix previous 2021-11-28 14:16:22 +01:00
Franco Fichtner
7cad3b63ae interfaces: transform to heredoc for easier extension #5367
Yes we need to add a template but for let's try baby steps and
get the nameserver/searchdomain stuff right first.  :)
2021-11-28 14:11:23 +01:00
Franco Fichtner
b28fa22d69 interfaces: nameserver can use same file format as others #5367
Also decouple searchdomain write from nameserver write in dhclient-script
and clear files properly.
2021-11-28 13:52:52 +01:00
Franco Fichtner
c6c7e9854d interfaces: searchdomain can use same file format as others #5367
Other directory was slightly confusing, other name even more so.
2021-11-28 13:42:38 +01:00
Franco Fichtner
99a0f1a164 interfaces: move nameserver files to /tmp #5367 2021-11-28 13:37:41 +01:00