11228 Commits

Author SHA1 Message Date
Ad Schellevis
edf1e2e8e0 Auth: webui session usernames and case sensitivity. for https://github.com/opnsense/core/issues/4451 2020-12-06 19:29:19 +01:00
Gauss23
184b126cb1
DHCPv4: Removed the need for a static IP being outside of the pool (#4447) 2020-12-02 19:48:42 +01:00
Franco Fichtner
a2e954a63e system: unify CPU labels; stray span tag 2020-12-02 11:51:22 +01:00
Ad Schellevis
80d7eb0ea7 Routing-gateways: select current IPv6 field in getInterfaceGateway(), closes https://github.com/opnsense/core/issues/4494 2020-12-01 14:12:48 +01:00
Ad Schellevis
c02155630e Firewall: minor validation issue (ipv6-icmp inet), closes https://github.com/opnsense/core/issues/4493 2020-11-30 17:10:27 +01:00
Franco Fichtner
4adddc00eb src: style sweep 2020-11-30 14:04:20 +01:00
Ad Schellevis
7be00bc067
NAT in IPsec with multiple Phase2 (#4492)
* IPsec: cleanup phase2 parsing and implement per reqid spd policies. for https://github.com/opnsense/core/issues/4460

* IPsec: persist reqid and (try to) maintain previous choices for route-based IPsec while doing so.

In order for this to work we need a legacy config migration, which we stick to the IPsec model used to store key-pairs. (trigger via /usr/local/opnsense/mvc/script/run_migrations.php)
The phase2 edit should (try to) assure new and modified entries are being equipt with a reqid, in order to use them in the policy mappings and interface generation (route-based).

Ideally we should add this feature when a new kernel arrives since changing reqid's on existing connections and setkey policies will likely have side-affects.

------

Sponsored by m.a.x. it
2020-11-30 09:42:03 +01:00
Ad Schellevis
19a39dc8b3 OpenVPN server: hide "openvpn_add_dhcpopts" fields when not parsed via the backend. while pulling in https://github.com/opnsense/core/pull/4475
ref 8b5a54e030/src/etc/inc/plugins.inc.d/openvpn.inc (L764-L772)
2020-11-28 10:00:00 +01:00
vnxme
30327a8518 DHCP: Add min-secs option for each subnet (#4486) 2020-11-28 09:48:32 +01:00
Ad Schellevis
e8c48067b6 interfaces: when interface mss is set, split mss calculation into a variant for IPv4 and one for IPV6. fixes incorrect header size for IPv6 (60 instead of 40 bytes). closes https://github.com/opnsense/core/issues/4484 2020-11-28 09:48:32 +01:00
Gabriel Mazzocato
c48ee6251a Update services_dhcpv6.php (#4489) 2020-11-28 09:48:32 +01:00
Ad Schellevis
f1afcae521 Logging: add "step into" icon on log lines. Since we always read the complete file, we can know the actual row number of a search result.
When investigating log files it's often practical to see the context of a message after searching for it. This feature offers the ability to go to the page in question by clicking on a filtered result.
2020-11-28 09:48:32 +01:00
Ad Schellevis
e379415a6c Web proxy: throw startup error to user to ease support. closes https://github.com/opnsense/core/issues/4483 2020-11-28 09:48:32 +01:00
kulikov-a
3d8fa354d3 SysInfo widget: add current CPU load progress-bar
refers to FR: https://github.com/opnsense/core/issues/4480
2020-11-28 09:48:32 +01:00
Franco Fichtner
12c3a4e508 system: fix PHP warning #4474 2020-11-28 09:48:32 +01:00
Ad Schellevis
147140f1e4 User management: add button to request a new TOTP seed on system_usermanager_passwordmg.php for https://github.com/opnsense/core/issues/4474 2020-11-28 09:48:32 +01:00
Franco Fichtner
65722f495d system: whitespaces :D 2020-11-28 09:48:32 +01:00
Ad Schellevis
13af12c67d whitespace 2020-11-28 09:48:32 +01:00
Ad Schellevis
19c4b5dc61 whitespace system_advanced_admin.php 2020-11-28 09:48:32 +01:00
Ad Schellevis
f73aa36ce3 User management: add user OTP seed option in System->Settings->Administration. for https://github.com/opnsense/core/issues/4474 2020-11-28 09:48:32 +01:00
Ad Schellevis
323cbfd81d IDPS: bug in policy parser preventing ruleset filter to function. for https://github.com/opnsense/core/issues/4445 2020-11-28 09:48:32 +01:00
Ad Schellevis
a7a3d1f2d4 IDPS: deprecate filter option on file downloads in favour of new policy option. migrates exsting filters to policies while there. for https://github.com/opnsense/core/issues/4445 2020-11-28 09:48:32 +01:00
Ad Schellevis
54663d2cb1 Firewall: live-log, allow larger selection. closes https://github.com/opnsense/core/issues/4476 2020-11-28 09:48:32 +01:00
Julio Camargo
8902734bf4 ref. issue #4422 - added block-outside-dns 2020-11-20 11:42:10 -03:00
Franco Fichtner
6e2375b044 src: fix a couple of copyright header misalignments 2020-11-19 16:26:23 +01:00
Ad Schellevis
6ae303f14d IPsec-VTI: allow mixed v4/v6. experiment for https://github.com/opnsense/core/issues/4472 2020-11-18 17:31:54 +01:00
Ad Schellevis
9924a2c811 System/gateways: there's no reason to enforce alias names in gateways. closes https://github.com/opnsense/core/issues/4470 2020-11-17 16:22:16 +01:00
Julio Cesar Camargo (JCC)
dae2efeee1
Add GSuite and Youtube filtering in proxy (#4425) 2020-11-17 15:51:24 +01:00
Ad Schellevis
4632286c55 Proxy: add missing X-Forwarded-For header option, closes https://github.com/opnsense/core/issues/4467 2020-11-16 20:55:02 +01:00
Ad Schellevis
bb8c58a3a8 system/logging: simplify log format parsing 2020-11-13 22:28:37 +01:00
Franco Fichtner
e6daf55d67 Revert "system: remove syslog-ng @version hint"
This reverts commit 9ed04c754b28c8b9abd48e78a3af1946ef8d32a5.
2020-11-13 10:45:29 +01:00
fhloston
2c888dadfc
Change dpinger syslog message to reflect correct RTT and RTTd unit (#4456)
Dpinger actually reports RTT and RTTd in µs.
2020-11-12 18:41:18 +01:00
Ad Schellevis
d992cfc2a2 Auth: support case insensitive username matching on LDAP+TOTP. closes https://github.com/opnsense/core/issues/4451 2020-11-10 09:21:21 +01:00
Ad Schellevis
a0c043e693 IDS: work in progress policy editor for https://github.com/opnsense/core/issues/4445
With this commit policies functionally work, but there's still some refactoring todo.
o migrate download filters to a policy
o remove download filter option
o point to policies in the download section
o (maybe) move single rule overwrites to policies as well.
2020-11-09 15:02:14 +01:00
Franco Fichtner
9ed04c754b system: remove syslog-ng @version hint
Following a discussion in FreeBSD ports to simplify ports handling
the missing @version will no longer trigger a warning in recent
syslog-ng releases so it's better to remove this to ease future
transitions of the port (merged into one "syslog-ng" port then).
2020-11-09 10:20:35 +01:00
Ad Schellevis
e00758ade6 IDS: bugfix previous for for https://github.com/opnsense/core/issues/4445 2020-11-08 19:37:58 +01:00
Ad Schellevis
289da7475d IDS - work in progress policy editor for https://github.com/opnsense/core/issues/4445
o page render performance improvements
o layout rules section
2020-11-06 17:57:39 +01:00
Ad Schellevis
668d916834 MVC - core: add VirtualIPField including unit tests for https://github.com/opnsense/plugins/issues/2091 2020-11-06 14:23:06 +01:00
Ad Schellevis
766bd666ae IDPS: work in progress policy editor for https://github.com/opnsense/core/issues/4445 2020-11-05 18:15:01 +01:00
Ad Schellevis
6c6a94e95f Revert "gateways: far gateway IPv6 for https://github.com/opnsense/core/issues/4436"
This reverts commit d87f4d79c42deb84b51a0cac59f06cb55b93a199.
2020-10-30 17:37:35 +01:00
Ad Schellevis
d87f4d79c4 gateways: far gateway IPv6 for https://github.com/opnsense/core/issues/4436
(I'm not sure this works, let's ask for a test first)
2020-10-30 17:32:13 +01:00
Franco Fichtner
4e9a8abf98 firmware: add async reconfigure hook to syslog
rc.configure_plugins is likely fixed, but rc.configure_firmware
has the same issue so make this more maintanable by moving the
async request to the system function and put the former call back
with the async flag set.

Should fix syslog-ng related package configure hangs with regard
to pkg-based bug in recent versions.
2020-10-29 09:08:28 +01:00
Ad Schellevis
0ad3ec432f openvpn: (ipv4 only) when only ifconfig_local is provided, calculate first network address as gateway address. for https://github.com/opnsense/core/pull/4433 2020-10-28 20:09:01 +01:00
Ad Schellevis
4198a1a8f3 proxy: cleanup, simlpify and add model version for https://github.com/opnsense/core/pull/4383 2020-10-24 01:21:51 +02:00
Ad Schellevis
f6865ddffb Syslog: make sure to start/stop the correct syslog facility, detach reconfiguration in rc.configure_plugins for https://github.com/opnsense/core/issues/4397 2020-10-24 01:14:47 +02:00
Franco Fichtner
5ebce0d8ac system: second try ;) 2020-10-24 01:14:47 +02:00
Ad Schellevis
3ee8e907fe add Base64Field type, closes https://github.com/opnsense/core/issues/4398 2020-10-24 01:14:47 +02:00
Franco Fichtner
74843e75b6 Revert "system: syslog_ng_pid replaced by syslog_ng_pidfile in FreeBSD ports"
This reverts commit 466b0de94dd2c61aebec6d53cd4adca26b7bba30.
2020-10-24 01:14:47 +02:00
ServiusHack
097a894c4e Auth/LDAP: Fix reading displayName attribute (#4418)
In 6f76b5f the displayName attribute was added as the first camel case
attribute being read from the search result. As various[^1] comments[^2]
for `ldap_search` mention the attribute names must be lower case, even
though the LDAP server might return them differently.

Using all lower case to access the returned attribute results in the
value of displayName actually being used as the full name of the user.

[^1]: https://www.php.net/manual/en/function.ldap-search.php#37317
[^2]: https://www.php.net/manual/en/function.ldap-search.php#28991
2020-10-24 01:14:47 +02:00
Ad Schellevis
4235c72900 Filter: associated nat rules miss state keyword and when they would, the tag wouldn't be processed properly ($rule['type'] --> pass)
The associated nat rules remain a terrible construct, ideally we would make sure the automated rule matches a regular one, but if they do, the firewall_rules_edit.php page has to handle all sorts of corner cases leading to other unexpected behaviour.

This fixes a bug, cleaning this up would either need proper validations in the filter page or no extra validations at all (create/update, only note the relation, but don't try to enforce anything when associated-rule-id is set.
2020-10-24 01:14:47 +02:00