80 Commits

Author SHA1 Message Date
Franco Fichtner
6b145065e5 wizard: always set WAN_GW #7263
This is a bit weird as we (re)set the interface if found but not when
we create it.  For consistency's sake this seems to be more appropriate.
2024-02-22 17:02:06 +01:00
Franco Fichtner
bb17672ed8 wizard: further tweaking for #7263 2024-02-22 08:36:58 +01:00
Franco Fichtner
2f55ed4706 wizard: reorder storage sequence to fix #7263 2024-02-21 16:20:04 +01:00
Stephan de Wit
f213bf2833
Gateways: Single: Migrate to MVC - part 2 (#6808)
Where the first stage primarily aims to keep the legacy handling of gateways intact, this stage does the conversion to MVC.

As part of the migration strategy, configured gateways will not be touched if the migration fails. This allows users to repair the gateways in the new situation.
2023-11-02 09:32:27 +01:00
Ad Schellevis
1c890b8cce Gateways: Single: Migrate to MVC - Import first part of https://github.com/opnsense/core/pull/6808
This commit imports part of the changes from @swhite2 which will keep the legacy handling intact for the first stage of the migration. It should be backwards compatible with the previous (23.7.x) code.

Changes new in this commit which where not in the original PR:

1) dpinger_status() missed $gwitem which rendered gateways statusses down
2) Model version number set to 0.0.1 so we can use the migration later to step into 1.0.0
3) Gateways->gatewayIterator() do not yield MVC records ensuring we are still using legacy config data when being called.
2023-10-03 15:06:22 +02:00
Franco Fichtner
c9bd89752b wizard: restrict to validating IPv4; closes #6681
The system wizard is IPv4 only but doesn't use the correct
function.  It's debatable if we need to restrict DNS servers
but if all of this is only IPv4 we should stick to it in a
consistsent way.
2023-07-25 09:15:36 +02:00
Franco Fichtner
db69027dda wizard: may end up duplicating WAN_GW which is bad
PR: https://forum.opnsense.org/index.php?topic=33864.0
2023-05-10 15:48:12 +02:00
Stephan de Wit
ffc1c438e0 unbound: fixup defaults in migration and namespace changes 2023-03-17 15:57:30 +01:00
Franco Fichtner
6f3ca2d172 wizard: mismatch 2023-02-22 11:28:33 +01:00
Franco Fichtner
a9ac5db3de wizard: unbound setting moved
May need adjustments but committed for testing.

PR: https://forum.opnsense.org/index.php?topic=32612.0
2023-02-22 11:03:05 +01:00
Franco Fichtner
f8a9e5b990 openvpn: minor adjustments 2023-02-09 08:22:10 +01:00
Ad Schellevis
1e28d5b352 VPN:OpenVPN: Servers - deferred authentication, work in progress for https://github.com/opnsense/core/issues/6293
This initial commit focusses on structuring the event flow around user and client registration, moving events to our new ovpn_event.py handler.
By supporting both deferred and direct authentication in user_pass_verify.php, we should be able to start with a cleanup patch for OpenVPN 2.5.x and work our way up to
a smaller fix for 2.6.x.

In preperation for 2.6, this commit also moves --cipher to --data-ciphers-fallback as suggested by the warning "DEPRECATED OPTION: --cipher set to '' but missing in --data-ciphers". Rename the option in the gui while there and add a note in the help text.
2023-02-07 19:26:29 +01:00
Franco Fichtner
382bb09312 openvpn: follow d4e637806 in wizard as well 2022-12-13 09:24:42 +01:00
Josh Soref
20a3c3da38
Spelling (#5885) 2022-07-18 13:59:03 +02:00
Franco Fichtner
7eadf5f447 openvpn: hardcode the RFC 7919 DH parameter #4722
This allows us to remove all DH handling remnants.  If people
want to use a separate content they will have to let us know,
but it seems unlikely.  The only impact seems to be a security
bump from 2k to 4k default.
2022-06-29 20:04:07 +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
Ad Schellevis
3be0173e55 System/Wizard - omit dhcp config when not available, closes https://github.com/opnsense/core/issues/5316 2021-10-30 20:06:17 +02:00
Franco Fichtner
d17e70b39b openvpn: remove OpenSSL engine support #4896 2021-04-06 10:02:52 +02:00
Franco Fichtner
f187c63502 openvpn: adjust lifetime to new recommendation 2021-01-04 11:03:09 +01:00
Franco Fichtner
c8ad3c8b54 system: use different shell gateway name to appease wizard
PR: https://github.com/opnsense/core/issues/4347
2020-09-14 11:31:45 +02:00
Franco Fichtner
11017fa4ab system: fix static gatway wizard handing; closes #3873
Mismatched our automatic gateway naming, assumed IPv6 on IPv4 and
did not disable monitor by default as we recommend.
2020-05-11 05:10:55 +02:00
Franco Fichtner
beba47e769 system: typo in previous 2019-12-16 19:00:20 +01:00
Franco Fichtner
f7b87dfc43 system: 825 days is the current maximum so use it
Learned this the hard way on macOS Catalina behaviour.  Since this
is a new policy enforced since 2019 it's safe to increase the defaults
(which were 10 years before) as well.  Likely makes a few users
happy that had VPN certificates run out over the years.
2019-12-16 18:56:06 +01:00
Ad Schellevis
b54a1cab8c OpenVPN, kill another spot of free text impossible to protect input (in the wizard). For the time being, an admin user could still change this after wizard execution in the server page. 2019-05-10 20:58:01 +02:00
Ad Schellevis
fa33d80ada php7.2, count() issues in wizard template, for https://github.com/opnsense/core/issues/3400 2019-04-09 13:54:13 +02:00
Franco Fichtner
772c8e0de6 wizard: render subnet selections as full separate items 2018-12-30 11:47:55 +01:00
Franco Fichtner
243d33356c wizard: more checkbox changes 2018-12-30 11:42:05 +01:00
Franco Fichtner
42cb5b1970 wizard: small UI corrections 2018-12-30 11:28:37 +01:00
Franco Fichtner
c771a6fda8 wizard: sync bogon help text with interfaces UI 2018-12-30 11:12:26 +01:00
Franco Fichtner
1b6218f1ce wizard: restore translations in wizards, other lint 2018-12-30 11:09:25 +01:00
Michael Steenbeek
9f7ca43981 Change tabs to spaces 2018-11-22 12:03:54 +01:00
Franco Fichtner
abf1e44d74 wizard: fix root password input
Unfortunately, <name/> generates the name from a label
into the form name= and id= attributes, which can utterly
break if the name is changed when there is custom code.
2018-08-06 06:56:45 +02:00
Franco Fichtner
5a7cc069c4 system: more on backups #2535 2018-07-18 09:12:16 +02:00
Franco Fichtner
37f852632c wizard: tweak language
PR: https://forum.opnsense.org/index.php?topic=8969.0
2018-06-30 21:23:20 +02:00
Franco Fichtner
b0d739a60f openvpn: tabs vs. spaces 2018-06-19 08:12:59 +02:00
Franco Fichtner
79bf33a1ca system: better dhparam support including RFC 7919 2018-06-19 07:51:29 +02:00
Justin Coffman
1f8fc1295b Added 3072-bit RSA key length options. (#2466)
This conforms to current recommendations and best practices for a
128-bit security margin.

2048 is still the minimum recommended, but 2048-bit RSA only aligns to a
112-bit security margin, roughly analogous to 3DES. AES-128, the
minimum recommended cipher, requires a 3072-bit RSA key and a 256-bit digest
(SHA256) to provide an equivalent security level in all cryptographic
components.
2018-06-19 07:04:04 +02:00
Franco Fichtner
e0901538de openvpn: wizard xml still a tabs file 2018-04-11 15:20:11 +02:00
Franco Fichtner
517e95911e openvpn: correct more errors, auto-fill port and add remote networks in wizard; closes #2266 2018-03-19 07:18:08 +00:00
Franco Fichtner
3560810303 openvpn: adapt wizard as well #2266
* Port autoselect doesn't work for TCP
* Could still add remote networks
2018-03-18 19:19:57 +00:00
Franco Fichtner
5ac7f2b105 wizard: fix a typo 2018-01-10 08:56:32 +01:00
Franco Fichtner
59faa1e918 wizard: fix this appropriately 2017-12-28 12:42:31 +01:00
Franco Fichtner
7b10393f5a wizard: uncheck dnssec by default 2017-12-28 11:25:32 +01:00
Franco Fichtner
9425d3bdd0 wizard: cleanup closes #2007 2017-12-27 11:29:18 +01:00
Franco Fichtner
7c66c4f750 wizard: also disable dnsmasq on wizard to avoid clash 2017-12-21 09:44:10 +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
427b9c1220 wizard: good question. the answer is: nope 2017-12-18 08:36:43 +01:00
Franco Fichtner
3acdb13917 openvpn: restore sanity in this wizard system; closes #1644 2017-12-15 10:04:17 +00:00
Franco Fichtner
988096f991 wizard: remove "die" in favour of a graceful input validation / resubmit
Mostly prompted by the problem that mistyping the admin password
makes the form go boom.  We cannot rely on the browser.  While here
reformat and add copyright as various improvements have been made
here ever since 2015.
2017-12-15 08:29:44 +00:00
Franco Fichtner
c5d4002541 src: add Scott's e-mail everywhere 2017-08-05 20:57:29 +02:00