11658 Commits

Author SHA1 Message Date
Ad Schellevis
dddbe2f1ec MVC: protocol field, init bug (https://github.com/opnsense/plugins/issues/1720) 2020-03-02 10:36:16 +01:00
Franco Fichtner
43f320342a pkg: fix plist 2020-03-02 09:38:09 +01:00
Ad Schellevis
c104582ed7 logging: leap-year issue. without a year, strptime() doesn't seem to assume it's this year. 2020-02-29 17:23:10 +01:00
Ad Schellevis
212e9527c3 MVC: add ProtocolField type, needed for https://github.com/opnsense/plugins/issues/1720 2020-02-28 16:49:46 +01:00
Ad Schellevis
0a112eaec4 MVC: simplify IDS actions, for https://github.com/opnsense/core/issues/3951 2020-02-27 12:05:39 +01:00
Ad Schellevis
0ae805a54c MVC: SimpleActionButton trim result before comparison 2020-02-27 11:45:21 +01:00
Ad Schellevis
1d9307a019 fix previous 2020-02-27 11:29:34 +01:00
Ad Schellevis
cf6c04b5c4 MVC: simplify alias reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 11:28:40 +01:00
Ad Schellevis
c64b8147d0 MVC: add onPreAction to SimpleActionButton, to support two step actions (save form data --> apply) 2020-02-27 11:19:58 +01:00
Ad Schellevis
300c41818f MVC: simplify proxy actions, for https://github.com/opnsense/core/issues/3951 2020-02-27 11:07:33 +01:00
Ad Schellevis
1ae92924c9 MVC: simplify traffic shaper reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:42:18 +01:00
Ad Schellevis
9199995cd3 MVC: simplify cron reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:36:28 +01:00
Ad Schellevis
481018404f MVC: simplify captive portal reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:33:39 +01:00
Ad Schellevis
385c55f4e5 MVC: simplify loopback reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:26:47 +01:00
Ad Schellevis
ca9000455d MVC: simplify vlxan reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:24:30 +01:00
Ad Schellevis
a12cdd5534 MVC: simplify static routing, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:20:07 +01:00
Ad Schellevis
40e2d25ddc MVC: simplify Monit reload, for https://github.com/opnsense/core/issues/3951 2020-02-27 10:09:05 +01:00
Ad Schellevis
4e44c126ea fix previous 2020-02-27 10:07:46 +01:00
Ad Schellevis
d189f62b95 MVC: SimpleActionButton, add onAction option to allow additional actions. compare status case-insensitive. 2020-02-26 23:21:17 +01:00
Ad Schellevis
1a693a9ce7 Monit: simplify reload action, ditch result field to align with other controllers (which use status), eases https://github.com/opnsense/core/issues/3951 2020-02-26 23:18:37 +01:00
Ad Schellevis
dd7905a934 alias: geoip, don't try to download when not being served from http[s] 2020-02-26 10:11:19 +01:00
Ad Schellevis
ea29e4b967 Alias: geoip, catch requests errors and log+return. fixes ce2b145185 2020-02-26 10:06:24 +01:00
Ad Schellevis
491c6c1f0a MVC: simplify syslog reload, for https://github.com/opnsense/core/issues/3951 2020-02-25 16:51:33 +01:00
Ad Schellevis
f0163e9d57 MVC: add jQuery plugin to support a simple service reload/action button.
Example usage:

        <button class="btn btn-primary" id="reconfigureAct"
                data-endpoint='/api/syslog/service/reconfigure'
                data-label="{{ lang._('Apply') }}"
                data-service-widget="syslog"
                data-error-title="{{ lang._('Error reconfiguring syslog') }}"
                type="button"
        ></button>

and the JS init:

$("#reconfigureAct").SimpleActionButton();

closes https://github.com/opnsense/core/pull/3788
2020-02-25 16:42:19 +01:00
Ad Schellevis
6c3726d719 translations: hook javascript texts as suggested by @kekek2, closes https://github.com/opnsense/core/pull/3697 2020-02-25 15:42:37 +01:00
Ad Schellevis
9b72b85e41 Auth/ldap: group CN should be matched case insensitive. closes https://github.com/opnsense/core/pull/3870
The most common use-case for group matching is probably Active Directory, which is case-insensitive. Some other implementation maybe case-sensitive, but since the chances of matching an unintented group (Admin vs admin) or rather low, we could consider this a low impact change.
2020-02-25 14:18:01 +01:00
Ad Schellevis
ce2b145185 Firewall/alias/geoip. make sure to trigger a download if no stats are found. Which should fix startup issues when aliases don't require a change and a new valid subscription is entered. 2020-02-25 10:38:05 +01:00
Ad Schellevis
f3adf835ef Unbound/dhcpd, missed a line in 96396f782e for https://github.com/opnsense/core/issues/3730 2020-02-24 20:48:00 +01:00
Franco Fichtner
5637d2bb54 pkg: fix plist 2020-02-24 22:54:14 +01:00
Ad Schellevis
96396f782e Unbound: refactor dhcpd watcher, contains multiple bugfixes (https://github.com/opnsense/core/issues/3730)
-  remove unbound registration if lease expires (previously this was only written to disk, not supplied to unbound-control)
-  when leases change, remove old fqdn's using unbound-control, this should mimic the current output in dhcpleases.conf more closely (if a manual registration was already there, it will be overwitten)
-  log when entries are removed, eventually it might be better to lower the level a bit, but informal seems like a good starting point for now.
-  switch to argparse for handling parameters
2020-02-24 16:29:50 +01:00
Ad Schellevis
ae60b1266d IPsec: add mvc service control api for https://github.com/opnsense/core/issues/3738 2020-02-24 13:44:05 +01:00
Ad Schellevis
e5831a7df1 MVC: add LegacyLinkField as described in a5b3177774
- acts as a link to legacy configuration values, which eases migration in some scenarios
2020-02-24 13:41:37 +01:00
Ad Schellevis
07f0a40fd6 Merge branch 'vnxme-ipsec-mobile-ipv6-pool' 2020-02-21 18:25:04 +01:00
Ad Schellevis
f9be0bb5fa stylesweep https://github.com/opnsense/core/pull/3949 2020-02-21 18:24:43 +01:00
Ad Schellevis
e43a101007 Merge branch 'ipsec-mobile-ipv6-pool' of https://github.com/vnxme/opnsense-core into vnxme-ipsec-mobile-ipv6-pool 2020-02-21 17:56:11 +01:00
Ad Schellevis
74677b2c24 fix previous 2020-02-21 14:05:28 +01:00
vnxme
c967707cbc
IPsec: add virtual IPv6 pool for mobile clients
This commit deals with mobile IPsec web UI. The changes include:
- define and copy fileds related to IPv6 configuration (match changes made in ipsec.inc) - L39 and L144;
- set the default value for IPv6 netbits to 64 - L51;
- adjust PHP form validation to match IPv6 controls - L104-105;
- adjust JS magic to match IPv6 controls - L197 and L216-226;
- adjust text related to IPv4 pool configuration (added 'IPv4' word to make it look consistent) - L406-425 and L101;
- create a new row with a check box, an input box and a drop-down box for IPv6 pool configuration - L426-445.
2020-02-21 15:23:36 +03:00
vnxme
234e7e27ea
IPsec: add virtual IPv6 pool for mobile clients
This commit deals with ipsec.conf file drafting. In terms of mobile clients option 'rightsourceip' now may be:
1) empty if no pools are configured;
2) %pool_address%/%pool_netbits% for an IPv4 only option;
3) %pool_address_v6%/%pool_netbits_v6% for an IPv6 only option;
4) %pool_address%/%pool_netbits%,%pool_address_v6%/%pool_netbits_v6% for a dual stack option.
2020-02-21 15:06:14 +03:00
Ad Schellevis
a96a081f67 Merge branch 'maurice-w-dhcpv6-fix-static-mappings-domain' 2020-02-21 12:18:15 +01:00
Ad Schellevis
ea15651f4b DHCPv6 static mappings and dns, simplify https://github.com/opnsense/core/pull/3946 a bit 2020-02-21 12:17:15 +01:00
Ad Schellevis
309a297920 Merge branch 'dhcpv6-fix-static-mappings-domain' of https://github.com/maurice-w/core into maurice-w-dhcpv6-fix-static-mappings-domain 2020-02-21 08:07:43 +01:00
Maurice
c9599a34bb
DHCP registration, clarifications
Registrations of static mappings do not always use the system domain. The domains configured for individual static mappings or for the DHCP servers always had higher priority. Static mapping registrations work for both DHCPv6 and DHCPv4, dynamic lease registrations only for DHCPv4.
2020-02-20 21:57:40 +01:00
Maurice
38ce06ea67
DHCP registration, clarifications
Registrations of static mappings do not always use the system domain. The domains configured for individual static mappings or for the DHCP servers always had higher priority. Static mapping registrations work for both DHCPv6 and DHCPv4, dynamic lease registrations only for DHCPv4.
2020-02-20 21:49:02 +01:00
Maurice
8d2939a5fd
DNS registration for DHCPv6 static mappings, check domainsearchlist first, domain second 2020-02-20 21:10:35 +01:00
Maurice
4344817120
DNS registration for DHCPv6 static mappings, check domainsearchlist first, domain second 2020-02-20 21:03:41 +01:00
Maurice
1495801808
migrate domain to domainsearchlist, don't save domain 2020-02-20 20:35:27 +01:00
Franco Fichtner
2ad9300a32 firmware: also show not installed not orphaned missing #1663 2020-02-20 20:32:23 +01:00
Maurice
a19662c7c2
migrate domain to domainsearchlist, don't save domain 2020-02-20 20:29:33 +01:00
Franco Fichtner
6f73ec2073 pkg: fix plist and lint pass 2020-02-20 19:52:10 +01:00
Franco Fichtner
15fbeec367 firmware: good-will nit-picking and some more work to do 2020-02-20 19:50:12 +01:00