13776 Commits

Author SHA1 Message Date
Ad Schellevis
87f0302e79 VPN / IPsec - mobile property passing in phase 2, make sure we can add a mobile phase 2 again, at some point we should remove the phase 2 mobile attribute for being a copy of its parent. for https://github.com/opnsense/core/issues/5598 2022-02-24 15:36:07 +01:00
Franco Fichtner
652ae0881c interfaces: add nameserver script to contain the situation #5565
Routes only get added in system_resolvconf_generate() now where
the DNS override is properly checked.  The nameservers are added
through the new script for convenience and removed from there as
well.  As a bonus we still scrub the routes from the nameserver
file removal to avoid creating "state" about what was done elsewhere.

This is still subject to a lot of funky races for overlapping host
routes either by ISP, manual DNS, gateway monitors or static routes.
2022-02-24 15:00:05 +01:00
Franco Fichtner
51bdcb64ac system: import ZFS pools before mounting ZFS datasets
PR: https://forum.opnsense.org/index.php?topic=26918.0
2022-02-24 12:25:31 +01:00
Franco Fichtner
1eedeb9d34 system: write config.xml sample value like GUI #5565 2022-02-24 11:18:50 +01:00
Franco Fichtner
56ed6eb633 system: simplify this code #5565 2022-02-24 11:13:19 +01:00
Franco Fichtner
0390f486c5 dhcp: splitting hairs on implementation
Try to grab all info from interfaces_primary_address() that we can
and extract subnet later as a single value.
2022-02-24 09:20:06 +01:00
Franco Fichtner
2e7a8e438d make: add "log" target 2022-02-24 09:09:02 +01:00
Franco Fichtner
3e528e8431 console: improve kernel messaging during port assignment
We removed other console mute situations and we might as well also
remove the one that is during early boot for the simple fact that
it's probably going to be unmuted anyway.
2022-02-24 08:52:50 +01:00
Franco Fichtner
d9f2d53ea7 pkg: fix plist 2022-02-24 08:21:00 +01:00
Ad Schellevis
0b09bee3e5 VPN: OpenVPN: Servers - when using topology mode determination of the gateway isn't reliable. With 0ad3ec432f we tried to calculate the next address, which unfortunately is our local address in quite some cases.
ovpns1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
	description: OpenVPN
	options=80000<LINKSTATE>
	inet 10.0.8.1 --> 10.0.8.2 netmask 0xffffff00

Calculation using 10.0.8.1/24 will result in 10.0.8.1, but should have been 10.0.8.2

This patch seems to add the least amount of magic, if the correct gateway would be captured in the environment variables that would be preferable, unfortunately that doesn't seem to be the case.

Example environment output:

xormask_1=
daemon_start_time=1645634011
daemon_pid=569
tun_mtu=1500
proto_1=udp4
daemon=1
dev_type=tun
script_context=init
PWD=/usr/local/www
xormasklen_1=0
daemon_log_redirect=0
ifconfig_local=10.0.8.1
local_port_1=1194
dev=ovpns1
link_mtu=1621
remote_port_1=1194
script_type=up
ifconfig_netmask=255.255.255.0
xormethod_1=0
config=/var/etc/openvpn/server1.conf
verb=3
2022-02-23 17:55:32 +01:00
Ad Schellevis
f110c988d4 MVC - refactor and extend HostnameField and add some options to validate partial hostnames and root zones. also needed for https://github.com/opnsense/plugins/issues/2849
o HostWildcardAllowed - allow the use of "*" (any host)
o FqdnWildcardAllowed - allow the use of wilcard fqdn's (*.my.top.level)
o ZoneRootAllowed - allow the use of "@" (zone root)
2022-02-23 13:56:44 +01:00
Ad Schellevis
463696a23d Interfaces: Other Types: VLAN - refactor to MVC framework in preparation for https://github.com/opnsense/core/issues/5560
o wrap vlan set pcp in new function legacy_vlan_pcp()
o add legacy_vlan_remove_tag() to detach our vlan
o use legacy_vlan_remove_tag() + legacy_vlan_tag() to update vlan interfaces, in which case configuration remains as it was which would make future modifications which don't rely on "logical" names easier.
2022-02-23 11:54:44 +01:00
kulikov-a
5959a23c79
firewall / logging - exclude localhost stateless traffic(#5595) 2022-02-23 10:37:11 +01:00
Ad Schellevis
99c70a538a Firewall: Aliases - when using port type aliases the "enable" flag was ignored. closes https://github.com/opnsense/core/issues/5594
missed the rule part preventing empty port tables from being used in previous commit
2022-02-23 10:34:49 +01:00
Franco Fichtner
61445fc13d src: style issue with $((...)) use 2022-02-23 10:23:28 +01:00
Ad Schellevis
88837ed4b9 Firewall: Aliases - when using port type aliases the "enable" flag was ignored. closes https://github.com/opnsense/core/issues/5594 2022-02-22 18:55:17 +01:00
Franco Fichtner
8c7873e3ec interfaces: fix issue with empty description 2022-02-22 20:10:36 +01:00
Franco Fichtner
3900d7a5fc interfaces: style sweep 2022-02-22 20:10:31 +01:00
Ad Schellevis
df01d880c6 fix plist 2022-02-22 18:46:09 +01:00
Ad Schellevis
88c27bfe4c Interfaces: Other Types: VLAN - refactor to MVC framework detaching configuration using configd while. In preparation for https://github.com/opnsense/core/issues/5560 2022-02-22 15:58:25 +01:00
Ad Schellevis
892ab932a6 interfaces - legacy_interfaces_details() add vlan parsing 2022-02-22 15:58:25 +01:00
Franco Fichtner
cd3758682c system: the all group disappeared in 2015 via a66c7889c7f
This code wasn't doing anything.
2022-02-22 12:52:01 +01:00
Franco Fichtner
dd4512aa3e system: support qat and multiple selection #5559 2022-02-22 09:14:22 +01:00
Franco Fichtner
db686a857b system: aesni is now a kernel-builtin #5559
Remove modules that are no longer available.
2022-02-22 08:47:09 +01:00
Franco Fichtner
747562d3da make: update parallel-lint to 1.3.2 2022-02-22 08:31:29 +01:00
kulikov-a
4b5a074401
loggin - limit rowCount (#5589) 2022-02-21 19:36:14 +01:00
Franco Fichtner
f64dfb8976 firewall: only ever store nobind for ipalias/carp; closes #5585 2022-02-21 12:21:18 +01:00
Franco Fichtner
5bb73b120b system: no longer default to hw.uart.console use
We have a patch now in src.git that can du EFI MMIO serial detection.
2022-02-21 09:46:30 +01:00
Ad Schellevis
92352ec4fa Reporting: Traffic - use async resolver to reverse lookup addresses. closes https://github.com/opnsense/core/issues/5536 2022-02-20 20:14:46 +01:00
Ad Schellevis
171fd93167 Firewall / Aliases - minor cleanup, removing unused loop parameter 2022-02-20 19:02:49 +01:00
Franco Fichtner
c0467fb54a interfaces: assignments should take OpenVPN into account
So 5f6b380a33 made get_interface_list() work as expected at the
price of losing assignment options on the referenced page due to
historic oversight.  Add a prefix so we can construct the device
name from a partial key value.
2022-02-18 08:57:26 +01:00
Franco Fichtner
2b21a8838a interfaces: $devices already filtered #5540 2022-02-18 08:00:02 +01:00
FloMeyer
e7356fa395
VPN / IPsec - pass protocol when resolving via ipsec_resolve() (#5360)
closes https://github.com/opnsense/core/issues/5359
2022-02-17 20:06:08 +01:00
Ad Schellevis
197f290801 Firewall : Advanced - Add support for syncookies, minor validation issue allowing empty adaptive values (for https://github.com/opnsense/core/issues/5561) 2022-02-15 23:54:37 +01:00
Stephan de Wit
6a2f45af2c unbound: background potentially long-running operation 2022-02-17 15:50:09 +01:00
Franco Fichtner
12128947d7 system: simplify scripting a little 2022-02-17 13:27:10 +01:00
Ad Schellevis
aff6657a3b Reporting / Insight - fill missing data with zero's (0), for https://github.com/opnsense/core/issues/5579 2022-02-15 17:06:11 +01:00
kulikov-a
542dbbba84 logging - squidExtLogFormat : typo (#5580) 2022-02-16 19:51:53 +01:00
Franco Fichtner
481c6f943f interfaces: PATH is not complete in dhclient-script
PR: https://forum.opnsense.org/index.php?topic=26995.0
2022-02-16 16:21:01 +01:00
Franco Fichtner
ea3facd2db system: rework growfs and allow ZFS grow; closes #5576
Enhances scope beyond nano images and can extend all devices of
a ZFS pool but for now we settle for testing a single device pool.
2022-02-16 16:16:17 +01:00
Franco Fichtner
8a2c3d81a3 system: libraries supports pcre.jit since 21.1.1 2022-02-15 14:12:31 +01:00
Franco Fichtner
789b777d46 system: try to boot without kernel message mute relics
They don't seem to work in some cases and aren't used a lot.
2022-02-15 09:48:48 +01:00
kulikov-a
1293d53ec0 change default severity level 2022-02-14 08:51:35 +01:00
Franco Fichtner
b342645e7c dhcp: add missing copyright
File created in 092462dc10d1a4 by Seth Mos in 2012.
2022-02-14 08:48:41 +01:00
Ad Schellevis
edeec7d621 Firewall - Aliases: local file corruption might prevent alias to be loaded. closes https://github.com/opnsense/core/issues/5525 2022-02-13 11:30:45 +01:00
Franco Fichtner
24f100366f interfaces: nothing requires all vips to be regenerated #5540
The side effect from this may be that VIPs disappear from disabled
interfaces which is how it should have been.

Furthermore, remove the configuration of vips from rc.newwanip which
was added for unknown reasons in pfSense a long time ago and got also
copied to rc.newwanipv6 for us during cleanups but never in pfSense.
Especially since we removed find_interface_*() function family we never
risk reading an alias as a primary address and for all intents and
purposes an alias should never appear from an interface except it was
stripped in error by faulty code.  Win-win really.  ;)
2022-02-13 10:50:05 +01:00
René
f2507208fe
sidebar - refresh optimization last fix (#5571) 2022-02-12 13:45:36 +01:00
René
56be8a6c58
sidebar - optimization (#5570)
Removed unnecessary code for better performance
2022-02-12 09:52:28 +01:00
Clement Moulin
8ce4cacd17
dhcpd: Fix implode() call (#5568) 2022-02-11 21:17:39 +01:00
Franco Fichtner
12c9f1a93a interfaces: fix faulty up on GRE alias use
Apparently this never really worked... ;)

    /usr/local/etc/rc.bootup: The command `/sbin/ifconfig '10.0.0.13' up' failed to execute
2022-02-11 11:26:35 +01:00