Commit Graph

727 Commits

Author SHA1 Message Date
Alexandre
929d3b435a qbittorrent: bump version to 5.1.4-16 2026-02-16 19:50:29 +01:00
Alexandre
2d4eaaa44c Remove interface name length restriction
Removed truncation of OpenVPN interface name if it exceeds 15 characters.
2026-02-08 11:16:24 +01:00
Alexandre
ed97320d8d Limit VPN interface names to 15 chars 2026-02-08 11:15:35 +01:00
Alexandre
bff4164203 Move VPN config filename validation to startup scripts 2026-02-05 16:46:39 +01:00
Alexandre
7d45a36ee6 Stop addon if exit nok 2026-02-05 10:29:27 +01:00
Alexandre
4f750ad756 Propose to stop addon if openvpn script fails for logs clarity 2026-02-05 10:28:34 +01:00
litinoveweedle
c6104f5a82 fix vpn check script logic 2026-02-04 16:17:49 +01:00
litinoveweedle
3e8add95ba remove unused /etc/openvpn directory 2026-02-04 15:19:28 +01:00
litinoveweedle
0fca3e1b5f Merge branch 'qbittorrent_vpn_overhaul' of https://github.com/litinoveweedle/alexbelgium-hassio-addons into qbittorrent_vpn_overhaul 2026-02-04 09:26:52 +01:00
litinoveweedle
76a6a64965 Check for wireguard_config option to avoid assigning string "null" to variable 2026-02-04 09:26:48 +01:00
Alexandre
b04ac63ce7 Check for openvpn_config option to avoid assigning string "null" to variable 2026-02-04 09:19:26 +01:00
litinoveweedle
5daf3c240f config selection logic fix 2026-02-03 23:16:56 +01:00
Alexandre
c69440da1a Fix sed command for OpenVPN runtime config 2026-02-03 21:31:19 +01:00
litinoveweedle
38302a8428 fix opevpn config path in log message 2026-01-29 17:08:40 +01:00
litinoveweedle
092bf0ab46 fixed find of openvpn configs 2026-01-29 17:04:31 +01:00
litinoveweedle
ffaec60c47 correct check for bashio fs.directory_exists 2026-01-29 16:51:57 +01:00
litinoveweedle
22dc8a8351 overhaul of the cont-init vpn scripts 2026-01-27 12:17:30 +01:00
litinoveweedle
7e0281bc21 remove unnecessary OpeVPN scripts 2026-01-25 17:40:17 +01:00
litinoveweedle
47a43c82b4 initial VPN logic implementation
both Wireguard and OpenVPN are  now handled by single service file
This remove dependency to external tools
Simplify vpn routing by using dedicated routing table which is used by qbittorrent torrent client listenning directly on the vpn interface.
To prevent DNS leeks traffic to addon configured DNS servers is forced to use same dedicated routing table
2026-01-25 09:21:49 +01:00
Alexandre
c972094f59 Handle WireGuard sysctl failure on read-only hosts 2025-12-22 08:53:18 +01:00
Alexandre
9aa8bf2664 Merge pull request #2234 from alexbelgium/codex/adapt-vpn-guard-for-openvpn_alt_mode
Handle VPN monitor interface binding
2025-11-24 22:12:16 +01:00
Alexandre
62669745e8 Fix condition for VPN interface binding 2025-11-24 22:12:00 +01:00
Alexandre
50388590cd Handle VPN monitor interface binding 2025-11-24 22:10:17 +01:00
Alexandre
c305cd34c7 Implement public IP fetching in vpn-monitor script
Added a function to fetch and validate public IP addresses from multiple sources.
2025-11-24 22:09:19 +01:00
Alexandre
49586fc243 Remove public IP fetching function from run script
Removed the _fetch_public_ip function and its usage in the run script.
2025-11-24 22:08:56 +01:00
Alexandre
8aa7ce13ce Update 95-vpn-monitor.sh 2025-11-24 22:07:34 +01:00
Alexandre
b94818666b Add shared VPN leak monitoring service 2025-11-24 14:11:57 +00:00
Alexandre
c25fd8ae1e revert 2025-11-24 13:56:09 +00:00
Alexandre
60859009bb Update run 2025-11-24 14:54:30 +01:00
Alexandre
3bbd21e83d Update run 2025-11-24 14:50:39 +01:00
Alexandre
c278320079 Create finish script for vpn_guard service
Add finish script to handle Nginx failure in vpn_guard.
2025-11-24 14:46:39 +01:00
Alexandre
759d8ab131 Add VPN leak monitoring script
This script monitors VPN connection and checks for IP leaks, allowing nginx to start only when the VPN is active.
2025-11-24 14:46:19 +01:00
Alexandre
431dcb50d3 Simplify nginx run script by removing VPN checks
Removed VPN monitoring and IP leak protection logic from the nginx run script.
2025-11-24 14:43:28 +01:00
Alexandre
f4bcaa38db Enhance VPN IP and country retrieval methods
Updated the VPN_INFO_URL to allow for country lookup by IP and improved the public IP fetching method with multiple fallback URLs.
2025-11-24 14:21:32 +01:00
Alexandre
53adeabb39 Decrease initial delay for VPN leak monitoring
Reduced initial delay for VPN leak checks from 60 to 30 seconds.
2025-11-24 14:10:48 +01:00
Alexandre
bb58c2898d Update run 2025-11-24 14:08:30 +01:00
Alexandre
86e10379cd Update run 2025-11-24 09:47:56 +01:00
Alexandre
a230b28ffd Update run 2025-11-24 09:22:28 +01:00
Alexandre
81cee949ab Modify VPN monitor condition for public IP check
Change condition to check if /currentip is not empty before starting the VPN monitor.
2025-11-24 09:09:56 +01:00
Alexandre
72d1071fa5 Change condition for VPN leakage service start 2025-11-24 09:09:21 +01:00
Alexandre
b3be37640e Improve validation and error handling in svc-qbittorrent
Refactor validation and error handling in WireGuard setup.
2025-11-24 09:02:35 +01:00
Alexandre
7ee0c3785e Clean up country code URL sources in run script
Removed unused URL sources for country code lookup.
2025-11-24 08:59:09 +01:00
Alexandre
0264ef9d97 Implement public IP check for VPN leak monitoring
Added public IP fetching and logging for VPN services.
2025-11-24 08:50:17 +01:00
Alexandre
822c03dac9 Refactor VPN and WireGuard handling in run script
Refactor VPN leak monitoring and WireGuard setup logic, improving clarity and functionality. Adjust log messages for better understanding.
2025-11-24 08:46:48 +01:00
Alexandre
bda1ffedde Enhance VPN leak monitoring and IP fetching methods
Refactor public IP fetching and VPN leak monitoring logic. Introduce new helper functions for fetching public IP and country code with improved error handling and randomization of URL sources. Update WireGuard and OpenVPN integration to include leak monitoring.
2025-11-24 08:45:37 +01:00
Alexandre
6e7308f4e6 Remove IP address retrieval from WireGuard script
Removed the code that retrieves the current IP address.
2025-11-24 08:18:38 +01:00
Alexandre
79ed3e5808 clean 2025-11-24 07:18:00 +00:00
Alexandre
e4b963a267 Update 93-openvpn.sh 2025-11-24 08:17:16 +01:00
Alexandre
f59c21e72e Refactor public_ip.sh for better portability and error handling
Updated shebang to use env for portability and improved error handling in public IP retrieval.
2025-11-24 08:13:46 +01:00
Alexandre
5a41d1c265 Add script to fetch public IP from multiple providers
This script attempts to retrieve the public IP address by querying multiple services in a randomized order. If successful, it writes the IP to /currentip; otherwise, it outputs an error message.
2025-11-24 08:11:13 +01:00