Commit Graph

3020 Commits

Author SHA1 Message Date
Vincent Li
d27b458cab firewall.cgi: replace space by tab and OS rebuild for wireguard
wireguard feature has changes in followg lfs, so remove the build
log below for OS rebuild to include wireguard

rm log_loongarch64/web-user-interface-ipfire
rm log_loongarch64/configroot
rm log_loongarch64/iproute2-6.10.0
rm log_loongarch64/initscripts
rm log_loongarch64/stage2
rm log_loongarch64/misc-progs

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-27 15:07:55 -07:00
Vincent Li
4b3adf85e0 fwhosts.cgi: Add button spacing on 'Firewall/Firewall Groups' page
commit 50b4c402226cda390832d3124a2a46187cc635c3
Author: Stephen Cuka <stephen@firemypi.org>
Date:   Thu Feb 27 16:34:16 2025 -0700

    fwhosts.cgi: Add button spacing on 'Firewall/Firewall Groups' page.

    Add spacing between showmenu() buttons on Firewall/Firewall Groups page to improve the look of the page.

    No changes to the functions of the page.

    Signed-off-by: Stephen Cuka <stephen@firemypi.org>
    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-27 12:06:13 -07:00
Vincent Li
1d9414d761 firewall: Add support for WireGuard peers to groups
commit 1de96a83d6d6cec5d4d3eda1792aa80bfbd8fafe
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Wed Apr 23 12:35:52 2025 +0200

    firewall: Add support for WireGuard peers to groups

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-27 11:58:04 -07:00
Vincent Li
b88c3e1a7d firewall.cgi: Highlight any deleted WireGuard peers
commit 77631ba4c738432c31cd4b6fad0da28b880fb0c7
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Tue Apr 22 18:09:31 2025 +0200

    firewall.cgi: Highlight any deleted WireGuard peers

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-27 10:38:54 -07:00
Vincent Li
60faadc84f firewall.cgi: Add dropdown to add WireGuard peers to a firewall rule
commit 468e9831d5c7b99a2dc20b66d881f43ecb0a424b
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Tue Apr 22 17:41:12 2025 +0200

    firewall.cgi: Add dropdown to add WireGuard peers to a firewall rule

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-27 10:16:47 -07:00
Vincent Li
8cb4ea1e31 firewall: Add WireGuard RW to the UI
commit 5a1c02df8973b3acc5c3101a94e86fe6df4b43b6
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Thu Sep 12 19:39:26 2024 +0200

    firewall: Add WireGuard RW to the UI

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-27 08:28:11 -07:00
Vincent Li
f4c22fcd54 wireguard.cgi: Add CGI to configure wireguard
commit 06dbc836a47160d51ab10f8b9d4ca356beaa7cdb
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Tue Apr 16 18:06:47 2024 +0200

    wireguard.cgi: Add a basic CGI to configure the global settings

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-06-26 15:18:50 -07:00
Vincent Li
07fa3e0edf firewall: add firewall bridge netfilter UI
add UI to enable netfilter/firewall function
for firewall in bridge mode

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-04-17 09:13:50 -07:00
Vincent Li
cb07f32583 firewall: add firewall bridge IP for UI access
when firewall switched to bridge mode, we want to
have WebUI access to manage the firewall, allow user
setup IP address on the firewall bridge interface through
the UI.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-04-17 09:13:50 -07:00
Vincent Li
57bafb9410 firewall: add UI for firewall bridge mode
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-04-17 09:13:50 -07:00
Vincent Li
76a3e13006 tcp ddos: add XDP TCP DDoS UI
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-04-17 09:13:38 -07:00
Vincent Li
6ff3d8e48e Firewall UI: Add iptables rules for XDP SYNPROXY
Add firewall WebUI and firewall iptables rules
for XDP SYNPROXY

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-03-27 19:24:05 -07:00
Vincent Li
b4ffafc531 XDP UI: add XDP DNS monitor block logging
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-01-11 10:19:34 -08:00
Vincent Li
ec28da3453 XDP UI: add UI for XDP TLS SNI logging
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-01-11 10:13:54 -08:00
Arne Fitzenreiter
afd54bb41a hostapd: fix start/stop buttons
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-11-06 11:49:11 +01:00
Michael Tremer
3638d37c0d wlanap.cgi: Use the correct array to fetch the current interface
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-11-05 08:45:58 +01:00
Adolf Belka
5fd4ca19a8 mpfire: removal as discussed in Conf call 7th Oct
- removal of lfs, rootfile, backup, paks, misc-progs, mpfire perl, language file
   content, mpfire.cgi, mpfire menu references and files, mpfire specific image,
   web-user-interface references and references in manualpages.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-09 18:25:53 +00:00
Michael Tremer
b400c58f5a Merge branch 'master' into next 2024-10-08 08:48:14 +00:00
Michael Tremer
6f7bbb38c9 wlanap.cgi: Fix copying configuration
This allows to uncheck checkboxes again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:46:30 +00:00
Michael Tremer
d56df86ce2 wlanap.cgi: Change broadcast SSID to hide SSID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:46:09 +00:00
Michael Tremer
375d1dc6dd wlanap.cgi: Default to channel 0 for ACS
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:45:47 +00:00
Michael Tremer
5474f9b32f wlanap.cgi: Enable Neighbourhood Scan by default
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:45:41 +00:00
Michael Tremer
b165dcdd80 wlanap.cgi: Don't try to show status if there is no interface
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:45:34 +00:00
Michael Tremer
03a71cd521 wlanap.cgi: Correctly show broadcast SSID status
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:45:24 +00:00
Michael Tremer
69bb956729 wlanap.cgi: Disable generating Perl warnings
Reported-by: Waynie <waynet@ucpix.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-08 08:44:07 +00:00
Michael Tremer
74218cba8c Merge branch 'master' into next 2024-09-29 11:29:11 +00:00
Michael Tremer
a7ac62f4a6 ovpnmain.cgi: Remove using dropped &General::getlastip() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-26 20:40:04 +00:00
Michael Tremer
d1a3fd9e0d ovpnmain.cgi: Fix IP address calculation with static pools
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-26 14:11:46 +00:00
Michael Tremer
6ca5fb74ab Merge branch 'master' into next 2024-09-24 08:54:50 +00:00
Michael Tremer
e5da7dea66 ids.cgi: Add UI to enable scanning on IPsec
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:45:35 +00:00
Michael Tremer
4efa4c4b71 ids.cgi: Don't show the graph if there is no RRD data
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:44:42 +00:00
Michael Tremer
0c5a683b7e ids.cgi: Fix empty states of tables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:44:34 +00:00
Michael Tremer
4721fac3c8 IPS: Ada a graph that shows the IPS throughput
This graph is split into three parts. One shows bypassed packets, the
next one shows the actually scanned packets and lastly we show the total
throughput.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:44:12 +00:00
Michael Tremer
8b73307b15 suricata: Force Suricata to write a PID file again
The PID file does not get written when Suricata is not being started in
daemon mode and therefore we need to pass it as a command line
parameter.

The initscript should not deal with the PID file when starting but needs
it to terminate the process and to check the process status.

The web UI can use the PID file again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:44:02 +00:00
Michael Tremer
2438c6c249 ids.cgi: Fix detection for the Suricata process
We don't seem to have a PID file any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:43:35 +00:00
Michael Tremer
d3db046570 ids.cgi: Remove box from the top section
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:43:30 +00:00
Michael Tremer
d2f7d18e33 ids.cgi: Sort whitelist entries
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:43:23 +00:00
Michael Tremer
891702cad1 ids.cgi: Use new-style table for whitelist entries
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:43:18 +00:00
Michael Tremer
119cb83706 ids.cgi: Use new style tables for rulesets
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:43:11 +00:00
Michael Tremer
50f3e2a534 suricata: Fix broken spacing in the settings section
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:43:06 +00:00
Michael Tremer
1b7d1abdf0 suricata: Add option to scan WireGuard
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-24 08:42:59 +00:00
Michael Tremer
4ac5aaf635 log.dat: Remove stupid line breaks and update markup of table
Reported-by: Stephen Cuka <stephen@firemypi.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-23 14:50:32 +02:00
Michael Tremer
c55ce64de5 ovpnmain.cgi: Fix IP address calculation with static pools
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-22 14:33:03 +00:00
Adolf Belka
9c07eb0602 vpnmain.cgi: Add coding to differentiate old and base64 encoded PSK's
- An additional key was defined for a PSK being base64 encoded. All existing PSK's that
   are not base64 encoded will have that key empty. This enables base64 encoded PSK's and
   non base64 encoded PSK'sd to be differentiated.
- If the PSK connection is disabled and then enabled with a non base64 encoded PSK the PSK
   will be left as it is. If the edit page is selected and Save pressed, even if nothing
   has been modified, then the PSK will be converted to a base64 encoded PSK.
- The old style and new style PSK was tested out on my vm system and worked without any
   issue.
- Using an old non base64 encoded PSK the IPSec connection worked without any problems.
   If the PSK was tehn converted to basse64 encoding by saving from the Edit page without
   changing anything, then the client IPSec connection was successfully made without any
   indication of a change. The conversion from non base64 to base64 encoded PSK occurred
   seamlessly without any hiccup.

Fixes: Bug13029
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>
2024-09-22 14:23:41 +00:00
Adolf Belka
9d8d74e8e7 vpnmain.cgi: Fix for bug13029 - add base64 encoding to IPSec cgi page
- This adds the base64 encoded PSK into the config file and when the ipsec.secrets file
   is created the PSK is base64 decoded to write it to the file. The ipsec.secrets file
   surrounds the PSK with single quotation marks so that character is not allowed to be
   used in the PSK but anything else can be.
- Tested out on my vm system and shown to be working. New PSK with various characters
   characters including commas was base64 encoded before putting into the config file
   and therefore was accepted by the code. If a single quotation mark was used in the
   PSK then the error message about invalid characters was shown.

Fixes: Bug13029
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>
2024-09-22 14:21:53 +00:00
Adolf Belka
90227a65b4 log.dat: Fix bug13762 - ssh logins not shown in system logs
- With the update of openssh to version 9.8 in CU187 the daemon was changed from sshd to
   sshd-session. Therefore the log.dat no longer finds any info related to the logins.
- This updates the section regex to look for both sshd and sshd-session.
- Tested out on my vm system and confirmed to work.
- This fix will make available all previous log info for sshd-session in the messages log
   as it continued to be stored, just could not be read by the WUI system log.

Fixes: bug13762
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Tested-by: Bernhard Bitsch <bbitsch@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-22 14:16:43 +00:00
Michael Tremer
bbfa373e84 wlanap.cgi: Fix listing channels
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-21 12:27:54 +00:00
Michael Tremer
c027d3a410 wlanap.cgi: Fix copying configuration
This allows to uncheck checkboxes again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-20 14:12:07 +02:00
Michael Tremer
9f30d83f50 wlanap.cgi: Change broadcast SSID to hide SSID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-20 13:55:40 +02:00
Michael Tremer
65ec7b9d83 index.cgi: Update wireless functions to use iw instead of iwconfig
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-20 13:42:05 +02:00