77 Commits

Author SHA1 Message Date
Ad Schellevis
f1ea003082 config: disable periodic backups by default, slows down shutdown and boot a lot for no apparent reason. closes https://github.com/opnsense/core/issues/5790 2022-07-11 23:17:34 +02:00
Franco Fichtner
1eedeb9d34 system: write config.xml sample value like GUI #5565 2022-02-24 11:18:50 +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
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
Franco Fichtner
a8c6bd924d system: display system tunables as well
This sort of completes the previous effort to improve the
sysctl handling.  The idea to embed sysctls into the config.xml
is certainly valid, but for some values we needed more leeway
for system defaults and changing them over time, which lead
to this state where we can drop config.xml default tunables
since the system will now apply and display then for the same
visibility but offer less incentive to change these values.

One thing missing here is adding a system tunable override
(plus sign) for system values, but we shall deal with this later
because for now they can always be added manually by copy+paste.
2022-01-05 09:33:22 +01:00
Franco Fichtner
353468a261 system: default to both IPv4 and IPv6 redirects to disable
Done for hardening as done in b424a2f9b3b7 plus now IPv6 can
leverage ip6_tryforward() with the new default.
2021-12-16 16:56:55 +01:00
Ad Schellevis
b3e3391943 Syslog - remove clog support
remove all remnants from syslogd and circular log support excluding support from the log readers. When a user upgrades and was using clog, the old files remain and are still readable from the ui, new entries are generated into our syslog-ng directory structure.

for https://github.com/opnsense/core/issues/5337
2021-11-05 21:17:35 +01:00
Franco Fichtner
ba70f141e6 firewall: remove kill_states et al; closes #5045 2021-07-02 10:22:39 +02:00
Franco Fichtner
f8480fab00 firewall: disable state killing on gateway failure by default
Discussed with: @AdSchellevis
2021-06-14 13:59:22 +02:00
Franco Fichtner
20835a92b1 system: disable clog by default 2021-02-08 09:41:40 +01:00
Franco Fichtner
d8711af025 system: set hw.uart.console appropriately
PR: https://github.com/opnsense/tools/issues/209
2021-01-26 10:13:51 +01:00
Ad Schellevis
de291e6266 backup / history: keep backup count default in a single spot, as discussed with @fichtner 2020-10-02 18:46:08 +02:00
Franco Fichtner
0b379917ae system: bump config backup default
This should be replaced with something more clever so for now
use this to keep an eye on the change until a strategy is clear.

We could remove the default and store unlimited backups although
that might hit a directory file limit sooner or later.
2020-09-24 23:51:35 +02:00
Ad Schellevis
f80081f110 filter: Gateway Monitoring/Kill states, make sure our factory defaults match input and only trigger a state reset using the existing filter_configure_sync() parameter.
o remove <kill_states/> from our default config, since it was evaluated as empty (feature enabled), we might as well remove the option to reach the same effect.
o system_advanced_firewall.php isset() vs !empty(), we use !empty() in our support code, make sure the ui page does the same
o remove hook from filter_configure_sync(), so state resets only happen on request.
o monitor/10-dpinger request conditional state reset

ref https://forum.opnsense.org/index.php?topic=18068.msg82231#msg82231
2020-07-11 20:09:31 +02:00
Ad Schellevis
e2f6272957 IPS-netmap related fixes, closes https://github.com/opnsense/core/issues/4171
o config: set disablevlanhwfilter by default, previous versions had issues with this, with FreeBSD 12.x it looks stable and is required for proper operation
o interface: move disablevlanhwfilter support to configure_interface_hardware(), in order for netmap to function properly all hardware support should be disabled (previous code location wasn't the right one)
o interface: exit configure_interface_hardware() when the caller is a vlan, there's no need to call legacy_interface_details() in that case (performance fix)
o tunables: set our default for hw.ixl.enable_head_writeback to 0, also hardware support and thus not compatible with netmap.
2020-06-16 11:05:41 +02:00
Franco Fichtner
8933e787f5 system: set value on the fly, remove nonexistent tunable 2020-04-29 10:03:31 +02:00
Franco Fichtner
4a4d72afd8 system: bootstrap a default value and always apply #3806
So that users are not seeing issues because they haven't done a
config reset yet.  It also allows us to bump the default again
if needed.
2019-11-14 09:24:23 +01:00
Ad Schellevis
8917f1c06f sysctl: maxdgram --> 8192. closes https://github.com/opnsense/core/issues/3806 2019-11-14 08:57:05 +01:00
Franco Fichtner
bdfefacbc3 system: partial removal on previous #3770 2019-10-17 09:36:34 +02:00
Franco Fichtner
1a5da5c0a6 system: correct sysctl description; closes #3770 2019-10-17 09:35:26 +02:00
Ad Schellevis
6101ba8940 sysct, remove duplicates. closes https://github.com/opnsense/core/issues/3410 2019-04-15 09:32:33 +02:00
Ad Schellevis
b424a2f9b3 defaults, more hardened defaults, prevent icmp redirects being send. 2019-02-13 09:57:40 +01:00
Frank Wall
571dbd5552 system: expose defaults for security-related sysctls 2018-11-19 06:58:49 +01:00
Franco Fichtner
383d39bd10 system: follow b -> y change in previous commit 2018-09-28 18:34:00 +02:00
Ad Schellevis
4ba0fa679d default config, switch "VLAN Hardware Filtering" to use card's default 2018-08-03 15:29:58 +02:00
Franco Fichtner
00c7507be0 system: remove dead link from tunable description; close #2325 2018-04-03 22:58:45 +02:00
Franco Fichtner
e1b303497e system: PTI/IBRS tunables; closes #2264 2018-03-17 15:00:41 +01:00
Franco Fichtner
d823cc7193 firewall: switch back to old NAT auto-outbound behaviour
Use the first address only, ignoring all VIPs.

Discussed with: @adschellevis

PR: https://forum.opnsense.org/index.php?topic=7438.0
2018-03-12 14:36:11 +01:00
Franco Fichtner
912dd0dda1 firewall: use sticky outbound NAT by default
PR: https://forum.opnsense.org/index.php?topic=7323.0
2018-02-28 08:12:32 +01:00
Franco Fichtner
49a2bc6584 system: a bit more magic to keep things from breaking; closes #2154 2018-02-05 06:50:17 +00:00
Franco Fichtner
5a9f6c4cfb system: remove the user-shell-access privilege #2154
Eventually, the two remaining user privileges should be killed
as well in favour of similar approaches.  The ACL should be for
page access, not more, not less.
2018-02-04 19:27:21 +00:00
Franco Fichtner
4cdfe13bc4 openssh: prevent SFTP login for non-admins...
unless explicity configured.  We set "admins" in the default
config with also adds "wheel" underneath, but some systems may
not use "admins" so that doesn't work then.

PR: https://forum.opnsense.org/index.php?topic=6994.15
2018-01-31 21:19:10 +00:00
Franco Fichtner
b99968fb00 ntp: use all time servers, prefer the first 2018-01-26 11:18:12 +01:00
David Harrigan
ce2b6111c1 Add in net.link.bridge.pfil_local_phys.
closes #1894

-=david=-
2018-01-07 11:44:54 +01:00
Franco Fichtner
33e3545709 auth: revert a change for #1929
There will be time to work on this, but it is not now.
2017-12-27 08:26:17 +01:00
Franco Fichtner
0ae4af9a7f network time: third server offers IPv6 #1374 2017-12-22 08:31:48 +01:00
Franco Fichtner
97daba95d9 network time: we haz a pool! #1374
While here, time-update-interval does not exist and update the
xml lint pass to pick up the sample file, too.
2017-12-21 18:28:24 +01:00
Franco Fichtner
a48167c403 wizard: add unbound to wizard, remove dnssec from default #1962 2017-12-18 21:55:48 +00:00
Franco Fichtner
045598089d unbound: disable dnssec-stripped; closes #1962 2017-11-28 20:38:38 +01:00
Franco Fichtner
fa347e5712 config: set stick multi wan as default #1874 2017-10-19 18:45:43 +00:00
Franco Fichtner
0cdac75bcb config: make shared forwarding the default for 18.1-BETA 2017-10-10 09:48:53 +02:00
Franco Fichtner
32c4930aa2 system: fastforwarding no longer exists
PR: https://github.com/opnsense/src/issues/27
2017-10-02 08:14:58 +02:00
Franco Fichtner
4594fa6dc6 config: versioning is no longer needed 2017-08-16 09:05:51 +02:00
Franco Fichtner
ecbd90e2ef system: set local + no fallback as default auth mode
softcoding local + local fallback seems weird.
2017-07-28 21:34:53 +02:00
Franco Fichtner
9398670ad2 unbound: use resolver w/ dnssec as default for 17.7 2017-06-07 16:04:47 +02:00
Franco Fichtner
983b11f3e3 interfaces: keep dhcp6 config, seems to have been a typo 2017-05-11 12:24:13 +02:00
Franco Fichtner
50b5de04a1 system: console experiment -- modern settings 2017-02-26 13:24:56 +01:00
Ad Schellevis
4ebccaa233 (config) enable aesni in default config, closes https://github.com/opnsense/core/issues/1259 2016-12-19 19:41:36 +01:00
Franco Fichtner
7f91fe62b1 src: back out previous, we're further securing PAM 2016-12-19 11:08:08 +01:00
Franco Fichtner
3c393d98f3 config: repair installer for 17.1-BETA
The installer user is injected for install media login, but
we authenticate against our database now instead.  This has
larger consequences that require a persistent installer user,
which is not so easy to disable/defang after installation.

Hopefully this is temporary.
2016-12-14 07:57:46 +01:00