Commit graph

437 commits

Author SHA1 Message Date
Jonathan
d0729779a1
feat(install): Add possibility to use Pi-hole in unattended install (#1825)
In unattended install, there is no possibility to
specify if user wants to use Pi-hole DNS as DNS.

Introducing a --use-pihole argument, user can decide
if PiVPN configuration should be aligned to the
Pi-hole installation.
2024-04-05 22:14:20 +02:00
Orazio
850e665642
Updates to subnet generation and client creation (#1782)
* refactor(core): allow any subnet and netmask

* fix(scripts): prevent adding more clients than the subnet allows

* fix(scripts): correctly remove leading zeros from ipv6 quartets

* refactor(core): new probabilistic subnet generation with fallback to other RFC1918 subnets
2024-04-05 22:14:19 +02:00
Orazio
20d3a4ccd4
fix(install): don't treat http errors as unavailable ipv6 2024-01-29 08:53:41 +01:00
kokomo123
701a817fed
refactor(core): Change wording on the window (#1779)
* Change wording on the user selection window
2023-11-07 20:46:43 +01:00
4s3ti
13ac5ceeb0
feat(Network): Add support for network manager
fix #1774: Add support for network manager running on Raspberrypi OS bookworm
2023-11-04 18:46:17 +01:00
4s3ti
16189edc7b
fix(core): typo on distroCheck 2023-08-03 23:33:23 +02:00
Dennis Roth
4446ea0c2f add alpine container support 2023-07-19 10:37:16 +02:00
4s3ti
ef6b0e825d
feat: Support debian 12(Bookworm) 2023-07-02 11:19:29 +02:00
Thad Guidry
241d7c4209
feat(core): OS Support
Add Ubuntu lunar support
2023-05-13 12:03:10 +02:00
Sriram Keerthi Madhava Kunjathur
23337523fa fix(core): Use absolute path for git
On installations such as OctoPi, git is shadowed by /root/bin/git. This change forces the script to use /usr/bin/git which isn't affected by other executables with the name 'git' in the path.
2023-04-08 01:50:53 +02:00
4s3ti
fe03be4396
refactor(core): Ignore SC2317 2023-03-16 01:13:08 +01:00
4s3ti
81646f30ff
feat(Core): Drop Support for Stretch and Xenial
Drop support for Debian 9 Stretch
Drop support for Ubuntu 16.04 Xenial
2023-03-15 21:44:25 +01:00
4s3ti
ab1fe20399
fix(ufw): set missing openvpn ipv6 variables
fix #1607
Add missing pivpnNETv6 variable definition for OpenVPN
2022-10-08 02:39:53 +02:00
4s3ti
5ee9425ad4
fix(install): Correct dev on PiHole iptables rule
Change PiHole iptables rule from IPv4dev to pivpnDEV
2022-09-17 16:40:17 +02:00
4s3ti
a544a86712
fix(install): Add Pi-hole iptables rule
fix #1559
add iptables rule to allow dns requests
2022-09-17 16:31:38 +02:00
4s3ti
8603013fc3
fix(ufw): Fix ufw insert error
fix ufw error when inserting rules with an empty chain
2022-09-17 15:10:15 +02:00
4s3ti
955f268db2
fix(ufw): Remove space before commit
Remove the before commit on ufw rules
fix #1607
fix #1620
2022-09-17 11:32:54 +02:00
4s3ti
e5b9486c52
fix(makeovpn): Remove expect dependency
Remove dependency on expect
Fix issue #1600 and #1601
2022-08-25 00:27:55 +02:00
4s3ti
5d0cc9e072 feat(ossupport): Jammy Support & CI Updates
Add support for Ubuntu Jammy (22.04)
Add CI tests for Ubuntu Jammy
Remove CI tests for Ubuntu Xenial
Rename CI tests stages
Add new CI Scripts to get pipeline code more "DRY"
Update CI Scripts to exit on error with /bin/bash -e
Add semantic-release settings
Add CI Release step for PiVPN automated versioning
2022-08-17 22:11:48 +02:00
Giulio Coa
8100537a7c fix: revert code style
Revert the code style of a piece of code
2022-08-11 17:28:31 +02:00
Giulio Coa
dda4d99f10 refactor: improve code style
Improve the code style of some pieces of code
2022-08-09 10:09:43 +02:00
Giulio Coa
9a7b7dfe72 fix(installer): fix code style
Fix a code style bug
2022-08-06 05:52:38 +02:00
Giulio Coa
d049755f82 fix(installer): fix code style
Fix a code style bug
2022-08-06 05:33:14 +02:00
Giulio Coa
e09f3a04bd fix(installer): fix some code style errors
Fix some code style error about the pipelines
2022-08-05 23:11:22 +02:00
Giulio Coa
82a7cbfc27 refactor(installer): fix the code style
Fix the code style
2022-08-05 09:06:31 +02:00
Giulio Coa
b17d309860 refactor(installer): format the code
Format the code following the new rules
2022-08-05 01:02:38 +02:00
Giulio Coa
47e8908489
refactor(installer): remove dependency on the edge repository and download source code to temp dir 2022-08-01 17:52:51 +02:00
Giulio Coa
edb36c08f7
Added Alpine Linux support (#1567) 2022-07-26 15:20:35 +02:00
Stanislav Simovski
ae1513c50e
Fixes #1556 2022-06-25 12:29:58 +03:00
MichaIng
d861de2918
Add support for builtin WireGuard module
in which case there is no dedicated file in /lib/modules. A rare case but possible.

Additionally the recursive globbing has been replaced by dpkg-query's internal recursive asterisk matching, which performs better/faster. This does now also match on "wireguard.kosomething", but I think "wireguard" is specific enough and dots in kernel modules names uncommon, to no be an issue.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-06-10 15:15:25 +02:00
MichaIng
f120fab78f
Add support for xz-compressed WireGuard kernel module
which is the default since Linux 5.15.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-06-10 14:38:10 +02:00
Orazio
2b791eb6a8 Update EasyRSA to version 3.1.0 2022-05-24 08:32:16 +02:00
Orazio
a5e41c466f Use easy-rsa commit 8d1be1c instead of release 3.0.7 for OpenSSL 3 support. 2022-05-03 17:14:31 +02:00
Orazio
bf7f3ae694 Fix static IP support on 64-bit Raspberry Pi OS. 2022-05-03 11:19:45 +02:00
DerDanilo
12155858bc simplify ipv6 leak whiptail 2022-03-14 10:35:01 +01:00
DerDanilo
9c1c98b785 add option to force IPv6 config, forced IPv6 route by default, add IPv6 options for cli and unattended file 2022-03-13 21:30:33 +01:00
Orazio
14d9fc6a45
Fix redirect text to sysctl config file
sudo echo hello > world doesn't work: sudo runs echo as root but the
redirection is executed as standard user.
2022-03-10 12:38:45 +01:00
Orazio
24b748f1bc
Check IPv6 connectivity via HTTPS 2022-03-10 12:35:59 +01:00
4s3ti
8833815983
Merge pull request #1464 from DerDanilo/customgitrepoandbranch
Customgitrepoandbranch
2022-03-10 11:01:16 +01:00
DerDanilo
642aa383a4
Merge branch 'test' into wg_ipv6_client_config 2022-03-10 10:56:50 +01:00
DerDanilo
f9ef8c3881 fix lint SC2236 2022-03-09 20:16:30 +01:00
DerDanilo
4dfcfd0d17 add IPv6 support, exclude from testing since travis doesn't have proper ipv6 support 2022-03-09 20:13:50 +01:00
DerDanilo
619ce02474 Add support for Ubuntu focal and arm64 as it's working fine by now 2022-03-09 20:12:44 +01:00
DerDanilo
75cebe13a5 add custom git url and branch options 2022-03-09 20:06:39 +01:00
Orazio
28485fc696
Too many empty lines 2021-12-25 16:42:23 +01:00
Orazio
b9c6078ec3
Exclude subnets for which there is a route 2021-12-25 15:44:08 +01:00
Orazio
ba2527d67b Fix vpnGW variable creation when pivpnNET was 10.X.0.0 or 10.0.0.0
Bash built-in substitution doesn't work in those cases, example:

$ pivpnNET=10.34.0.0
$ vpnGw="${pivpnNET/.0/.1}"
$ echo $vpnGw
10.34.1.0
2021-12-25 14:51:56 +01:00
Orazio
85b3e82274 Generate random virtual subnet, avoiding common subnets and those already used by the system 2021-12-25 14:40:37 +01:00
4s3ti
e42c339baa Debian 11 Bullseye
Added Debian 11 bullseye to list of supported OS
2021-11-24 22:21:10 +01:00
4s3ti
e458cba36a Main Funcion cleanup
General code cleanup
Moved loose code into funcions
Removed unecessary coments
Moved some comments to their funcions
2021-11-24 22:04:33 +01:00