]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/log
people/mfischer/ipfire-2.x.git
7 weeks agocore195: Ship WireGuard
Michael Tremer [Thu, 24 Apr 2025 14:47:33 +0000 (14:47 +0000)] 
core195: Ship WireGuard

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoMerge remote-tracking branch 'ms/wg' into next
Michael Tremer [Thu, 24 Apr 2025 09:34:23 +0000 (09:34 +0000)] 
Merge remote-tracking branch 'ms/wg' into next

7 weeks agofirewall: Add support for WireGuard peers to groups
Michael Tremer [Wed, 23 Apr 2025 10:35:52 +0000 (12:35 +0200)] 
firewall: Add support for WireGuard peers to groups

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agocore195: Ship functions.pl
Michael Tremer [Wed, 23 Apr 2025 09:51:07 +0000 (09:51 +0000)] 
core195: Ship functions.pl

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofunctions.pl: Fix Bug13842 - Add resolvedeps to pakfire Usage:.
Stephen Cuka [Wed, 23 Apr 2025 02:39:03 +0000 (20:39 -0600)] 
functions.pl: Fix Bug13842 - Add resolvedeps to pakfire Usage:.

- Add 'resolvedeps' command to pakfire 'Usage:'.

 - Break long lines in 'Usage:' so that they don't wrap.

 - Minor text and punctuation changes.

Signed-off-by: Stephen Cuka <stephen@firemypi.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall: Actually create WireGuard rules
Michael Tremer [Tue, 22 Apr 2025 17:59:43 +0000 (19:59 +0200)] 
firewall: Actually create WireGuard rules

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Return subnets as an array reference
Michael Tremer [Tue, 22 Apr 2025 17:58:01 +0000 (19:58 +0200)] 
wireguard-functions.pl: Return subnets as an array reference

I don't know why, but otherwise Perl will try to expand everything
everywhere all of the time.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall-lib.pl: Fix whitespace issues
Michael Tremer [Tue, 22 Apr 2025 17:48:37 +0000 (19:48 +0200)] 
firewall-lib.pl: Fix whitespace issues

No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Return a hash reference instead of a hash when loading a...
Michael Tremer [Tue, 22 Apr 2025 17:47:23 +0000 (19:47 +0200)] 
wireguard-functions.pl: Return a hash reference instead of a hash when loading a peer

Perl is so absolutely fucking broken and dealing with hashes is such a
massive pain in the rear. I don't want to see this any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall.cgi: Use "peer" for the WireGuard "hosts"
Michael Tremer [Tue, 22 Apr 2025 16:12:20 +0000 (18:12 +0200)] 
firewall.cgi: Use "peer" for the WireGuard "hosts"

We don't distinguish between N2N and RW and therefore we should not use
the term "hosts" here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall.cgi: Highlight any deleted WireGuard peers
Michael Tremer [Tue, 22 Apr 2025 16:09:31 +0000 (18:09 +0200)] 
firewall.cgi: Highlight any deleted WireGuard peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall.cgi: Highlight WireGuard rules in the correct colour
Michael Tremer [Tue, 22 Apr 2025 15:48:20 +0000 (17:48 +0200)] 
firewall.cgi: Highlight WireGuard rules in the correct colour

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoRun "./make.sh lang"
Michael Tremer [Tue, 22 Apr 2025 15:47:52 +0000 (17:47 +0200)] 
Run "./make.sh lang"

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall.cgi: Add dropdown to add WireGuard peers to a firewall rule
Michael Tremer [Tue, 22 Apr 2025 15:41:12 +0000 (17:41 +0200)] 
firewall.cgi: Add dropdown to add WireGuard peers to a firewall rule

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agomake.sh: Build wireguard-tools later
Michael Tremer [Thu, 2 Jan 2025 13:41:12 +0000 (13:41 +0000)] 
make.sh: Build wireguard-tools later

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Remove function to show configuration
Michael Tremer [Fri, 6 Dec 2024 19:15:44 +0000 (20:15 +0100)] 
wireguard.cgi: Remove function to show configuration

This code is no longer re-used

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Actually generate all configuration types
Michael Tremer [Fri, 6 Dec 2024 19:14:55 +0000 (20:14 +0100)] 
wireguard-functions.pl: Actually generate all configuration types

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: It is no longer possible to download the configuration again
Michael Tremer [Fri, 6 Dec 2024 19:08:33 +0000 (20:08 +0100)] 
wireguard.cgi: It is no longer possible to download the configuration again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Merge both functions to generate a peer configuration
Michael Tremer [Fri, 6 Dec 2024 19:06:19 +0000 (20:06 +0100)] 
wireguard.cgi: Merge both functions to generate a peer configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Unify fetching the endpoint
Michael Tremer [Fri, 6 Dec 2024 19:01:48 +0000 (20:01 +0100)] 
wireguard-functions.pl: Unify fetching the endpoint

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Redirect back to the right place on error
Michael Tremer [Fri, 6 Dec 2024 18:59:54 +0000 (19:59 +0100)] 
wireguard.cgi: Redirect back to the right place on error

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Bring back the warning about showing config only once
Michael Tremer [Fri, 6 Dec 2024 18:59:35 +0000 (19:59 +0100)] 
wireguard.cgi: Bring back the warning about showing config only once

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: No longer store the private keys for RW peers
Michael Tremer [Fri, 6 Dec 2024 18:56:05 +0000 (19:56 +0100)] 
wireguard.cgi: No longer store the private keys for RW peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Send the N2N peer configuration to the client
Michael Tremer [Fri, 6 Dec 2024 18:50:33 +0000 (19:50 +0100)] 
wireguard.cgi: Send the N2N peer configuration to the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Change generate_peer_configuration to only generate RW stuff
Michael Tremer [Fri, 6 Dec 2024 18:31:35 +0000 (19:31 +0100)] 
wireguard.cgi: Change generate_peer_configuration to only generate RW stuff

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Don't offer to download the configuration for N2N
Michael Tremer [Fri, 6 Dec 2024 17:40:16 +0000 (18:40 +0100)] 
wireguard.cgi: Don't offer to download the configuration for N2N

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Create a new simplified dialogue to create a new N2N connection
Michael Tremer [Fri, 6 Dec 2024 17:35:42 +0000 (18:35 +0100)] 
wireguard.cgi: Create a new simplified dialogue to create a new N2N connection

The former process was very complicated and required that many settings
were copied across both sides. It seems to be much more elegant to
generate a new connection in one place and import it on the other side.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Accept FQDNs as endpoints
Michael Tremer [Fri, 6 Dec 2024 16:13:53 +0000 (17:13 +0100)] 
wireguard: Accept FQDNs as endpoints

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Install wg-dynamic
Michael Tremer [Fri, 6 Dec 2024 16:12:16 +0000 (17:12 +0100)] 
wireguard: Install wg-dynamic

This is a script that checks if we are connected with the correct peer.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Transparently replace 0.0.0.0/0 with 0.0.0.0/1 and 128.0.0.0/1
Michael Tremer [Fri, 6 Dec 2024 15:20:30 +0000 (16:20 +0100)] 
wireguard: Transparently replace 0.0.0.0/0 with 0.0.0.0/1 and 128.0.0.0/1

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Fix Perl syntax issue
Michael Tremer [Fri, 6 Dec 2024 13:34:38 +0000 (14:34 +0100)] 
wireguard-functions.pl: Fix Perl syntax issue

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Fix connection status for RW connections
Michael Tremer [Fri, 6 Dec 2024 13:30:20 +0000 (14:30 +0100)] 
wireguard.cgi: Fix connection status for RW connections

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Make it clear what peer is being edited
Michael Tremer [Fri, 22 Nov 2024 13:09:35 +0000 (14:09 +0100)] 
wireguard.cgi: Make it clear what peer is being edited

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Suggest a PSK for new N2N peers
Michael Tremer [Fri, 22 Nov 2024 13:04:40 +0000 (14:04 +0100)] 
wireguard.cgi: Suggest a PSK for new N2N peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Show our own public key when creating N2N peers
Michael Tremer [Fri, 22 Nov 2024 12:53:07 +0000 (13:53 +0100)] 
wireguard.cgi: Show our own public key when creating N2N peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Don't show the public key
Michael Tremer [Fri, 22 Nov 2024 12:38:13 +0000 (13:38 +0100)] 
wireguard.cgi: Don't show the public key

There is very little use now since we don't use this key for N2N
connections any more. RW clients will have the public key in their
configuration files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Fix fetching connection status with multiple interfaces
Michael Tremer [Fri, 22 Nov 2024 12:34:35 +0000 (13:34 +0100)] 
wireguard.cgi: Fix fetching connection status with multiple interfaces

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Store the connection name as an alias
Michael Tremer [Mon, 30 Sep 2024 18:05:48 +0000 (20:05 +0200)] 
wireguard: Store the connection name as an alias

This way it is easier to find the correct interface on the console.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Allow to edit the port and automatically chose one
Michael Tremer [Mon, 30 Sep 2024 18:04:05 +0000 (20:04 +0200)] 
wireguard.cgi: Allow to edit the port and automatically chose one

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Add controls to download configuration
Michael Tremer [Mon, 30 Sep 2024 17:40:09 +0000 (19:40 +0200)] 
wireguard.cgi: Add controls to download configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Store the private key for RW peers, too
Michael Tremer [Mon, 30 Sep 2024 17:00:40 +0000 (19:00 +0200)] 
wireguard.cgi: Store the private key for RW peers, too

We have so much key material stored that it does not make much sense to
drop a bit of it when it makes life so much harder.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Implement creating an extra interface per N2N peer
Michael Tremer [Mon, 30 Sep 2024 16:53:45 +0000 (18:53 +0200)] 
wireguard: Implement creating an extra interface per N2N peer

When importing a configuration, we will receive a new private key which
we cannot apply to the original interface. Therefore we need to create a
new one for each peer. RW peers will remain on wg0 which will always
exist.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Store networks in CIDR notation only
Michael Tremer [Mon, 30 Sep 2024 16:49:07 +0000 (18:49 +0200)] 
wireguard-functions.pl: Store networks in CIDR notation only

wg(8) does not accept anything else.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement a way to import a connection
Michael Tremer [Sun, 29 Sep 2024 12:17:10 +0000 (14:17 +0200)] 
wireguard.cgi: Implement a way to import a connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Rename function to check keys
Michael Tremer [Fri, 27 Sep 2024 16:53:51 +0000 (18:53 +0200)] 
wireguard.cgi: Rename function to check keys

This function can check all types of keys and not only the public key.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-functions.pl: Don't send DNS configuration to n2n peers
Michael Tremer [Fri, 27 Sep 2024 16:03:14 +0000 (18:03 +0200)] 
wireguard-functions.pl: Don't send DNS configuration to n2n peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Rename "generate_client_configuration" to "generate_peer_configuration"
Michael Tremer [Fri, 27 Sep 2024 15:58:36 +0000 (17:58 +0200)] 
wireguard.cgi: Rename "generate_client_configuration" to "generate_peer_configuration"

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Normalize filenames
Michael Tremer [Fri, 27 Sep 2024 15:55:46 +0000 (17:55 +0200)] 
wireguard.cgi: Normalize filenames

This is because Windows clients won't import any configurations that
have spaces in the filename. Therefore we replace it and remove anything
else unwanted on the way.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Select the correct source IP address for N2N peers
Michael Tremer [Fri, 27 Sep 2024 15:39:22 +0000 (17:39 +0200)] 
wireguard: Select the correct source IP address for N2N peers

This is so that the firewall chooses the correct IP address when trying
to establish connections to the remote networks.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agomisc-progs: Fix compiling wireguardctrl
Michael Tremer [Sat, 21 Sep 2024 10:12:05 +0000 (12:12 +0200)] 
misc-progs: Fix compiling wireguardctrl

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Allow to configure a custom endpoint
Michael Tremer [Fri, 20 Sep 2024 15:12:26 +0000 (17:12 +0200)] 
wireguard.cgi: Allow to configure a custom endpoint

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Permit empty client pool
Michael Tremer [Fri, 20 Sep 2024 14:54:09 +0000 (16:54 +0200)] 
wireguard.cgi: Permit empty client pool

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall: Add WireGuard RW to the UI
Michael Tremer [Thu, 12 Sep 2024 17:39:26 +0000 (19:39 +0200)] 
firewall: Add WireGuard RW to the UI

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Move functions into their own file
Michael Tremer [Wed, 11 Sep 2024 00:24:49 +0000 (02:24 +0200)] 
wireguard: Move functions into their own file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall: Allow WG traffic when the firewall is in permissive mode
Michael Tremer [Fri, 6 Sep 2024 16:20:46 +0000 (18:20 +0200)] 
firewall: Allow WG traffic when the firewall is in permissive mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Only show the location if we have something
Michael Tremer [Fri, 6 Sep 2024 16:10:48 +0000 (18:10 +0200)] 
wireguard.cgi: Only show the location if we have something

Otherwise the text won't be centered in the box which looks a little bit
wrong.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoservices.cgi: Don't always try expand the status column unless asked
Michael Tremer [Fri, 6 Sep 2024 16:02:26 +0000 (18:02 +0200)] 
services.cgi: Don't always try expand the status column unless asked

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Remove the large box to warn people that the configuration will only...
Michael Tremer [Fri, 6 Sep 2024 15:59:58 +0000 (17:59 +0200)] 
wireguard.cgi: Remove the large box to warn people that the configuration will only be shown once

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Add a button to return after creating a new connection
Michael Tremer [Fri, 6 Sep 2024 15:56:15 +0000 (17:56 +0200)] 
wireguard.cgi: Add a button to return after creating a new connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoAQM: Ignore WireGuard interfaces
Michael Tremer [Wed, 14 Aug 2024 16:49:56 +0000 (18:49 +0200)] 
AQM: Ignore WireGuard interfaces

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoweb UI: Add a menu entry
Michael Tremer [Wed, 14 Aug 2024 16:40:09 +0000 (18:40 +0200)] 
web UI: Add a menu entry

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agomisc-progs: Update rootfile
Michael Tremer [Wed, 14 Aug 2024 16:33:44 +0000 (18:33 +0200)] 
misc-progs: Update rootfile

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Don't allow creating RW connections if there is no address space
Michael Tremer [Wed, 14 Aug 2024 16:23:55 +0000 (18:23 +0200)] 
wireguard.cgi: Don't allow creating RW connections if there is no address space

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Don't show an empty table if there are no peers
Michael Tremer [Wed, 14 Aug 2024 16:14:26 +0000 (18:14 +0200)] 
wireguard.cgi: Don't show an empty table if there are no peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Install empty configuration files
Michael Tremer [Wed, 14 Aug 2024 15:55:06 +0000 (15:55 +0000)] 
wireguard: Install empty configuration files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agofirewall: Fix typo in "iptables"
Michael Tremer [Wed, 14 Aug 2024 15:51:19 +0000 (15:51 +0000)] 
firewall: Fix typo in "iptables"

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Rename local subnets to allowed subnets
Michael Tremer [Thu, 25 Apr 2024 18:36:42 +0000 (20:36 +0200)] 
wireguard.cgi: Rename local subnets to allowed subnets

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agomisc-progs: Add wireguardctrl
Michael Tremer [Wed, 17 Apr 2024 17:13:32 +0000 (17:13 +0000)] 
misc-progs: Add wireguardctrl

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard-tools: New package
Michael Tremer [Sun, 14 Apr 2024 13:50:08 +0000 (13:50 +0000)] 
wireguard-tools: New package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Block unauthorized traffic
Michael Tremer [Thu, 25 Apr 2024 18:32:57 +0000 (20:32 +0200)] 
wireguard: Block unauthorized traffic

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Rename routes to remote subnets
Michael Tremer [Thu, 25 Apr 2024 18:20:13 +0000 (20:20 +0200)] 
wireguard: Rename routes to remote subnets

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agolang: Add translation for "remarks"
Michael Tremer [Thu, 25 Apr 2024 18:16:38 +0000 (20:16 +0200)] 
lang: Add translation for "remarks"

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement toggle enable/disable peers
Michael Tremer [Thu, 25 Apr 2024 18:13:56 +0000 (20:13 +0200)] 
wireguard.cgi: Implement toggle enable/disable peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Make the client configuration downloadable
Michael Tremer [Thu, 25 Apr 2024 18:03:49 +0000 (20:03 +0200)] 
wireguard.cgi: Make the client configuration downloadable

I believe this is much better than copy & paste.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement DNS configuration for clients
Michael Tremer [Thu, 25 Apr 2024 17:50:45 +0000 (19:50 +0200)] 
wireguard.cgi: Implement DNS configuration for clients

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Correctly compose the FQDN
Michael Tremer [Thu, 25 Apr 2024 17:33:21 +0000 (19:33 +0200)] 
wireguard.cgi: Correctly compose the FQDN

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agogeneral-functions.pl: Always load the main settings
Michael Tremer [Thu, 25 Apr 2024 17:32:52 +0000 (19:32 +0200)] 
general-functions.pl: Always load the main settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Call start instead of reload
Michael Tremer [Thu, 25 Apr 2024 17:22:01 +0000 (19:22 +0200)] 
wireguard.cgi: Call start instead of reload

I didn't implement reload in the helper.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Dynamically allocate a pool address for clients
Michael Tremer [Thu, 25 Apr 2024 17:15:53 +0000 (19:15 +0200)] 
wireguard.cgi: Dynamically allocate a pool address for clients

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Ensure that AllowedIPs are in CIDR format
Michael Tremer [Thu, 25 Apr 2024 16:48:22 +0000 (18:48 +0200)] 
wireguard.cgi: Ensure that AllowedIPs are in CIDR format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Route the client pool
Michael Tremer [Thu, 25 Apr 2024 16:47:49 +0000 (18:47 +0200)] 
wireguard: Route the client pool

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Show a QR code that contains the client configuration
Michael Tremer [Thu, 25 Apr 2024 15:32:32 +0000 (17:32 +0200)] 
wireguard.cgi: Show a QR code that contains the client configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Show client configuration after creating a client
Michael Tremer [Thu, 25 Apr 2024 15:14:27 +0000 (17:14 +0200)] 
wireguard.cgi: Show client configuration after creating a client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Check if the client pool is in use and prevent editing
Michael Tremer [Thu, 25 Apr 2024 11:04:01 +0000 (13:04 +0200)] 
wireguard.cgi: Check if the client pool is in use and prevent editing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Add client pool config option
Michael Tremer [Thu, 25 Apr 2024 10:57:08 +0000 (12:57 +0200)] 
wireguard.cgi: Add client pool config option

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement creating host-to-net connections
Michael Tremer [Thu, 25 Apr 2024 10:51:46 +0000 (12:51 +0200)] 
wireguard.cgi: Implement creating host-to-net connections

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Move creating private keys into a separate function
Michael Tremer [Thu, 25 Apr 2024 10:18:14 +0000 (12:18 +0200)] 
wireguard.cgi: Move creating private keys into a separate function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Rename editor to edit-net
Michael Tremer [Wed, 24 Apr 2024 22:50:17 +0000 (00:50 +0200)] 
wireguard.cgi: Rename editor to edit-net

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Fix typo of %checked
Michael Tremer [Wed, 24 Apr 2024 22:44:53 +0000 (00:44 +0200)] 
wireguard.cgi: Fix typo of %checked

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Fix disabling the service
Michael Tremer [Wed, 24 Apr 2024 22:44:38 +0000 (00:44 +0200)] 
wireguard.cgi: Fix disabling the service

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Allow the endpoint to be empty
Michael Tremer [Wed, 24 Apr 2024 22:34:34 +0000 (00:34 +0200)] 
wireguard.cgi: Allow the endpoint to be empty

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Fix saving empty PSKs
Michael Tremer [Wed, 24 Apr 2024 22:34:20 +0000 (00:34 +0200)] 
wireguard.cgi: Fix saving empty PSKs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement option to configure keepalive
Michael Tremer [Wed, 24 Apr 2024 22:22:40 +0000 (00:22 +0200)] 
wireguard.cgi: Implement option to configure keepalive

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Group keys together
Michael Tremer [Wed, 24 Apr 2024 22:04:36 +0000 (00:04 +0200)] 
wireguard.cgi: Group keys together

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement helper functions to read/write subnets
Michael Tremer [Wed, 24 Apr 2024 22:02:58 +0000 (00:02 +0200)] 
wireguard.cgi: Implement helper functions to read/write subnets

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard: Implement optional PSK for post-quantum stuff
Michael Tremer [Wed, 24 Apr 2024 21:50:04 +0000 (23:50 +0200)] 
wireguard: Implement optional PSK for post-quantum stuff

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement deleting peers
Michael Tremer [Wed, 24 Apr 2024 21:20:48 +0000 (23:20 +0200)] 
wireguard.cgi: Implement deleting peers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Check for duplicate names
Michael Tremer [Wed, 24 Apr 2024 21:14:53 +0000 (23:14 +0200)] 
wireguard.cgi: Check for duplicate names

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Add helper functions to encode/decode remarks
Michael Tremer [Wed, 24 Apr 2024 21:07:52 +0000 (23:07 +0200)] 
wireguard.cgi: Add helper functions to encode/decode remarks

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agowireguard.cgi: Implement launching the editor for editing a connection
Michael Tremer [Wed, 24 Apr 2024 21:03:48 +0000 (23:03 +0200)] 
wireguard.cgi: Implement launching the editor for editing a connection

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