Commit Graph

36319 Commits

Author SHA1 Message Date
jim-p
85e0f980e7 Create custom CSRF Error page. Implements #9799
* Use formatting consistent with other GUI pages
* Warns the user about potential dangers of submitting form data

(cherry picked from commit da7384c4a4)
2019-09-27 14:38:59 -04:00
jim-p
a8449a680a Fix oinkmastercode tag in status.php. Fixes #9736
(cherry picked from commit 9adb7806cf)
2019-09-27 10:25:35 -04:00
Renato Botelho do Couto
2db1578dfd Fix #9674: Do not set duplicate-cn in p2p_shared_key mode 2019-09-26 10:00:57 -03:00
Renato Botelho do Couto
743d7fc4ac Ticket #9674: Do not check password when using shared key 2019-09-26 10:00:57 -03:00
Renato Botelho do Couto
db49986463 Clarify that error message is about proxy password 2019-09-26 10:00:57 -03:00
Renato Botelho do Couto
0b48a22cf1 Fix #9719: Fix descriptive name field behavior 2019-09-26 09:37:12 -03:00
Renato Botelho do Couto
92a9c71dae Fix #9488: Disable serial console on memstick images 2019-09-25 09:57:27 -03:00
jim-p
1f2be937dd Redact BandwidthD postgres db password. Fixes #9784
(cherry picked from commit ca3129138b9866f5c82ff80d59eeed3f746367a1)
2019-09-23 16:34:04 -04:00
Renato Botelho do Couto
bf8aa1142c Initialize array properly
(cherry picked from commit d4393366bc)
2019-09-19 12:57:45 -04:00
Renato Botelho do Couto
9b32254c6a Redirect to status_captiveportal.php
(cherry picked from commit 15e8ee8621)
2019-09-19 12:57:39 -04:00
Renato Botelho do Couto
875b28f110 Fix #9722: Change voucher shortcut to point to voucher status page
(cherry picked from commit 4baf532b5b)
2019-09-19 12:57:01 -04:00
Renato Botelho do Couto
93da47e61b Fix #9756: Fix NCP multiple selection
(cherry picked from commit b059598541)
2019-09-19 08:25:28 -04:00
jim-p
f14ab2c616 Setup shortcuts for packages. Fixes #9770
(cherry picked from commit 37213abe96e83884b4a8ffbbbb7cc759cd2799ec)
2019-09-18 16:23:26 -04:00
Tom Embt
bf03bee205 Allow Dynamic DNS wildcards for Route53 #9053
(cherry picked from commit 0b230bb295)
2019-09-18 11:42:25 -04:00
Renato Botelho do Couto
9133e01dc0 Fix #9285: Move ping-check option from global to per-subnet
(cherry picked from commit 5197e3e3a3)
2019-09-18 11:39:07 -04:00
jim-p
13980a4f8b Add IPsec DH/PFS groups 25/26/27. Implements #9757
(cherry picked from commit 21bee0287c)
2019-09-18 11:38:40 -04:00
jim-p
a033a446a4 Add wizard select_source & use for OpenVPN DH. Fixes #9748
(cherry picked from commit 52f686a97f)
2019-09-18 11:38:35 -04:00
Andreas Bleischwitz
a4bcbc3e9a Add additional DHCPv6 prefix delegation size options to dropdown list on interface settings.
- implements #9590

(cherry picked from commit 51dc008bfe)
2019-09-18 11:38:31 -04:00
Vito Piserchia
789b545bee openvpn: cleaning default case handling in switch statements
(cherry picked from commit f93ec3853f)
2019-09-18 11:38:28 -04:00
Vito Piserchia
83011d13e1 change after review
(cherry picked from commit f08369ec24)
2019-09-18 11:38:21 -04:00
Vito Piserchia
83929ceabd Update text
(cherry picked from commit cef01bcb95)
2019-09-18 11:38:13 -04:00
Vito Piserchia
45d6f55146 Added tlsauth keydir options to openvpn client and server
(cherry picked from commit 8698f918d1)
2019-09-18 11:38:09 -04:00
Renato Botelho do Couto
6c203c2f47 Deduplicate code in openvpn.inc
(cherry picked from commit f7335af377)
2019-09-18 11:38:06 -04:00
Renato Botelho do Couto
22ee846cdf Remove unnecessary variable
(cherry picked from commit 1d13560cb3)
2019-09-18 11:38:02 -04:00
James Webb
1bcb05e4f8 Improve efficiency of resync checks.
GW Group changes are checked iff the interface is not the empty string or the interface in question is not the same as the OpenVPN interface.

(cherry picked from commit 15f8062b42)
2019-09-18 11:37:59 -04:00
James Webb
f5e2f7dc37 Add ability for OpenVPN instances to resync on IP changes and on boot.
OpenVPN instances resync if interface IP change occurs.
At boot, the interface is the empty string, so resync is mandatory to generate OpenVPN files in /var/etc/openvpn.

(cherry picked from commit 7071aab3b2)
2019-09-18 11:37:54 -04:00
James Webb
2b909be9b5 Add else clause for cases when OpenVPN interface file does not exist.
- Prevents potential race condition at startup resulting in failure to start OpenVPN instances.
- In cases where interface file is not present the openvpn_resync function handles a restart correctly.

(cherry picked from commit 614ca41e09)
2019-09-18 11:37:51 -04:00
James Webb
c3b023f5d0 Update openvpn.inc to allow OpenVPN instances to resync when running on a gateway group.
Implementation now checks if OpenVPN client/server running on gateway group should resync when IP changes occur or if cables are unplugged/replugged.

(cherry picked from commit c46d0b12d6)
2019-09-18 11:37:47 -04:00
Renato Botelho do Couto
86040ba200 Remove deprecated comments since username tag got CDATA
(cherry picked from commit 1dcaf2d816)
2019-09-18 11:37:43 -04:00
Renato Botelho do Couto
994f803f26 Ticket #6195: Use CDATA on username tag
After discuss with JimP we agreed it would be a better approach than
bdaa5235d4 if we add username tag to the list of tags that use CDATA

(cherry picked from commit ce76d1e41b)
2019-09-18 11:37:40 -04:00
jim-p
b0f317fdb0 Fix interface/config alignment on interfaces_ppps_edit.php. Fixes #9741
(cherry picked from commit d81f270454)
2019-09-18 11:37:33 -04:00
Paul Sadauskas
88a413916d Fix handing of DNSimple API response
It seems DNSimple started using HTTP/2, which broke the regex the dnsimple updater was using to check for success. I changed it to use the CURLINFO_HTTP_CODE instead.

I noticed several other providers are using the regex status match instead of HTTP_CODE, but I didn't touch those. I haven't written any PHP in 20 years, and I don't use those providers to test them. This change works for me for DNSimple now.

The HTTP/2 response the API was sending back (missing the "OK" the regex was looking for):

```
HTTP/2 200 \r\n
server: nginx
...
```

Fixes Ticket #9580

(cherry picked from commit 6c7d0571d5)
2019-09-18 11:37:29 -04:00
John Forte
9f36302efa Was failing the check if clicking test notifications twice in a row. So it was saving the asterisks and overwriting the current password.
(cherry picked from commit 6176862f98)
2019-09-18 11:37:25 -04:00
Renato Botelho do Couto
535b07f72c Do not use constructor with the same name of class, it's going to be deprecated
(cherry picked from commit d43154fee7)
2019-09-18 11:36:58 -04:00
Renato Botelho do Couto
0ffbf1e74e Fix PHP warning
(cherry picked from commit b94eb4b905)
2019-09-18 11:36:55 -04:00
kristoffer-ekenstam
15d4aede7d Fixed #8014
Fixed wildcard variable not being set correctly.
Updated CURLOPT_URL according to provider's documentation.
Added support for MX records.

(cherry picked from commit cedc818460)
2019-09-18 11:36:51 -04:00
Administrator
7112400ef8 Add more color choices for login screen
(cherry picked from commit 1fe82d1dc9)
2019-09-18 11:36:48 -04:00
Steve Beaver
5725f53c82 Make factory test case insensitive
(cherry picked from commit 552a41fbd3)
2019-09-18 11:36:44 -04:00
Steve Beaver
e553d3d03f Revise update check to provide a more consistent version string, and to provide it in JSON format
(cherry picked from commit 8191650200)
2019-09-18 11:36:41 -04:00
jim-p
8c50180097 IPsec ID type parsing changes. Fixes #9243
* Move code to function to avoid unnecessary duplication of code
* Clean up the logic to avoid further redundancies
* Set keyid type to be quoted and to have its type prefixed

(cherry picked from commit 3a73fc74ca)
2019-09-18 11:36:37 -04:00
jim-p
a00fcaa628 Fix CA/Cert search description. Issue #9412
(cherry picked from commit f30da999bc)
2019-09-18 11:36:34 -04:00
jim-p
886a03a483 Fix bonus closing tag. Issue #9412
(cherry picked from commit dd4fb72cfa)
2019-09-18 11:36:31 -04:00
jim-p
ebfbb3620f Add sorting and search to CA/Certs. Implements #9412
(cherry picked from commit 1497305875)
2019-09-18 11:36:26 -04:00
PiBa-NL
df40c93b75 Routing, actually show the "(default)" mark on the default route as it is present on the OS
Most obvious problem was when manually switching from WANGW1 to WANGW2 it showed both as (default) after saving the setting and before applying it. Also after applying it would require another page refresh to show the updated situation. Also add a little information box that shows what (Default) means for the user.

(cherry picked from commit 3cd21b4e4c)
2019-09-18 11:36:23 -04:00
Augustin-FL
ef2e3b5d2b Also trim if() statement
(cherry picked from commit d6601c8f00)
2019-09-18 11:36:16 -04:00
heper
a9a90af672 add trim() to $_POST['auth_user'] & $_POST['auth_user2']
(cherry picked from commit 28a5469e25)
2019-09-18 11:36:12 -04:00
gitdevmod
1ef5b31bad Bug #9218
(cherry picked from commit adc6ddbdbb)
2019-09-18 11:35:45 -04:00
jim-p
399e1385aa Only apply group size restriction to local groups. Implements #3792
(cherry picked from commit 8d4f79cd5f)
2019-09-18 11:35:42 -04:00
Steve Beaver
3184695e4a Fixed #9693
Allow ACB to be suppressed by including magic string in the backup description
Transmit max number of manual backups in the ACB

(cherry picked from commit 6f6299a3a6)
2019-09-18 11:35:38 -04:00
Steve Beaver
de209dea97 Fixed #9687
Remove all referenes to legact/Gold ABC system

(cherry picked from commit f01c09914d)
2019-09-18 11:35:35 -04:00