Commit Graph

2689 Commits

Author SHA1 Message Date
Stefan Schantl
2bbf176619 dhcp.cgi: Use perl built-in grep
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-10 14:30:54 +01:00
Stefan Schantl
d39c7076ac connections.cgi: Use new system methods
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-10 14:30:54 +01:00
Michael Tremer
751765b732 mac.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:54 +01:00
Michael Tremer
15c3570d1c index.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:54 +01:00
Michael Tremer
5c9c1ce9bf hosts.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:53 +01:00
Michael Tremer
305b72cc75 gui.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:53 +01:00
Michael Tremer
c1d77628c3 guardian: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:53 +01:00
Michael Tremer
0b0e6d586b fwhosts.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:53 +01:00
Michael Tremer
43ecaceb4d firewall.cgi: Use new system commands
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:53 +01:00
Michael Tremer
f5f181838f fireinfo.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:52 +01:00
Michael Tremer
0483dca629 extrahd.cgi: Use new system functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:52 +01:00
Michael Tremer
761c08a7c7 dnsforward.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:52 +01:00
Michael Tremer
8a1e6afef5 dns.cgi: Use new system commands
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:52 +01:00
Michael Tremer
dfdf076d71 dhcp.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:52 +01:00
Michael Tremer
ea9ad05e38 ddns.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:51 +01:00
Michael Tremer
32d34774d3 captive.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:51 +01:00
Michael Tremer
a87366f5f4 backup.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:51 +01:00
Michael Tremer
c4391a0181 aliases.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:51 +01:00
Michael Tremer
bce8594348 pakfire.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:48 +01:00
Leo-Andres Hofmann
43f20d6e5a memory.cgi: Fix memory usage table
procps 3.3.10 introduced a new output format for the "free" command.
This patch adapts the new format.

Fixes: #12628

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Tested-by: Bernhard Bitsch <bbitsch@ipfire.org>
Tested-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 09:12:15 +00:00
Stefan Schantl
d702bce20b pakfire.cgi: Check for locked pakfire before trying to perform operations.
Fixes #12621.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-25 09:52:05 +00:00
Matthias Fischer
26a9784751 vnstat 2.7: Adjusted 'traffic.cgi' to display 5-minute graphs
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-25 09:44:53 +00:00
Adolf Belka
6fcd779c05 dhcp.cgi: Bug 10400 - Add Additional DHCP Options - change default
- Make the default that Additional DHCP options Enabled checkbox is
   checked when entering a new option.
- For existing options the Enabled checkbox status is honoured.

Fixes: #10400
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-20 09:45:20 +00:00
Michael Tremer
08fa1272d2 Revert "IPsec: Ensure that iOS VPNs are always connected"
This reverts commit 8ce6222a10.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-20 09:26:13 +00:00
Michael Tremer
616d3bf9ac Merge remote-tracking branch 'ms/ipsec-ios' into next 2021-05-20 09:25:05 +00:00
Michael Tremer
468de80470 Update contributors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-18 09:33:47 +00:00
Leo-Andres Hofmann
a276dfba7a getrrdimage.cgi: Allow more non-word characters in the URL
As discussed in bug #12615

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-14 11:35:16 +00:00
Michael Tremer
db33a1220a IPsec: Add CA certificate in Apple profile
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
9326f51c24 Revert "IPsec: Apple: Stop prompting for credentials"
This reverts commit eef4cd4b101da0c7ceab0c3386ad755ed242f8d5.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
1108156c39 IPsec: Strip @ from IDs in Apple profile
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
8ce6222a10 IPsec: Ensure that iOS VPNs are always connected
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
839183d8b8 IPsec: Set display name for VPN connections
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
9f3742222a IPsec: Always send our host certificate to all RW clients
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
dccd7e874b IPsec: Allow sending DNS server addresses to RW clients
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
5b2e16dde2 IPsec: Apple: Stop prompting for credentials
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
2d7b3347ca IPsec: Apple: Add desired cipher suites to profiles
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
b75d92100c IPsec: Apple: Enable PFS on client when enabled
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
f356736432 vpnmain.cgi: Fix indentation on Apple profiles
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
c7fe09c6ad vpnmain.cgi: Add field for roadwarrior endpoint
This is the IP address or FQDN which will be written into
Apple Configuration profiles as public peer address.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
205c3c17c6 vpnmain.cgi: Generate random UUIDs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:27:04 +00:00
Michael Tremer
26a0befd75 IPsec: Add prototype to export Apple Configuration profiles
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:21:00 +00:00
Michael Tremer
926e5519a6 IPsec: Use sane defaults for certificate lifetimes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-05 11:20:22 +00:00
Robin Roevens
8b68ed1226 misc-progs: getipstat: Refactor + extend
* Return output of iptables directly instead of writing it to files.
 * Make iptables wait for 5s if xtables is locked by another iptables
 process. (--wait 5 argument)
 * Add optional parameter "-x" to have iptables report exact numbers.
 * Add optional parameter "-f" to display  the filter table  (default).
 * Add optional parameter "-n" to display the nat table.
 * Add optional parameter "-m" to display the mangle table.
  * Adapt iptables.cgi and guardian.cgi to catch getipstat output
  instead of reading temp-files.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-04 14:27:27 +00:00
Michael Tremer
5a4412385f hostaopd: Drop box with links to other configuration pages
We do not have this for any other feature and it clutters the UI.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-16 10:03:58 +00:00
Michael Tremer
53d03ef352 hostapd: Find device by MAC address
With wireless device as members in bridges, we cannot predict the name
very well. So we will use the MAC address and find the correct device
name when we launch hostapd.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-16 10:03:58 +00:00
Leo-Andres Hofmann
c095f81435 rrdimage: Improve CGI & cosmetic changes
Write graph error messages to the system log, to simplify
further inspection by the user.
Add additional parameter check to prevent a possible redirect loop
if the URL format is changed in the future.

Cosmetic: Use underlining instead of background color for highlighting

Fixes #10643

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-12 09:31:18 +00:00
Michael Tremer
e90ef935a5 Update contributors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:20:40 +00:00
Daniel Weismüller
73476dd9dc Drop support for macvtap
This has been broken because of other changes on the network scripts and
since we now have support for bridges there is no point in supporting
something else that has the same functionality.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:19:55 +00:00
Jonatan Schlag
8186b37230 Hardcode theme to ipfire
This disables the theme support and makes it impossible to use any other
themes than the ipfire default theme.

The only intention of this patch is to hardcode the theme to ipfire.
To change any cgi we have is an ugly way, but the only way to do this
fast. The colour handling needs certainly to be improved as well, but
this will and should be done in other patches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:11:34 +00:00
Leo-Andres Hofmann
9c6a0ce12d rrdimage: Switch graphs.pl to the new graph scripts
"makegraphbox" is modified to remove the old iframe method and output
a modern div container instead.
Graph errors are now returned, to be displayed by getrrdimage.cgi.

entropy.cgi and netovpnsrv.cgi are modified to ensure compatibility.

Add cache control HTTP header to image output.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-06 10:05:28 +00:00