Commit Graph

769 Commits

Author SHA1 Message Date
Alexandre
929d3b435a qbittorrent: bump version to 5.1.4-16 2026-02-16 19:50:29 +01:00
Alexandre
e81c072eab Fix array initialization for IP addresses 2026-02-08 17:41:32 +01:00
Alexandre
a665b1b02f Allow multiple Address fields 2026-02-08 17:33:56 +01:00
Alexandre
eee640ab99 Optimize handshake by using ping instead of DNS lookup
Removed DNS lookup for handshake and replaced with ping.
2026-02-08 17:26:39 +01:00
Alexandre
1aa400fc57 Implement WireGuard handshake wait logic
Add WireGuard handshake waiting function to manage connection establishment.
2026-02-08 14:37:39 +01:00
Alexandre
7ec00843b2 Add preshared-key 2026-02-08 14:31:55 +01:00
Alexandre
e45de4f7a2 Prefer ipv4 to resolve hostnames 2026-02-08 13:16:48 +01:00
Alexandre
3d2d275cb2 Fix ipv6 endpoints resolve 2026-02-08 13:15:35 +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
ad80d1e2b6 Merge pull request #2448 from alexbelgium/qbittorrent_debug_mode
Implement logging for OpenVPN with configurable level
2026-02-05 16:38:11 +01:00
Alexandre
22032fd28f Install default route only once 2026-02-05 16:02:27 +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
Alexandre
1365ed148b Update vpn 2026-02-05 09:26:35 +01:00
Alexandre
c01005d63a Debug message
Simplified debug logging setup for OpenVPN.
2026-02-05 09:22:55 +01:00
Alexandre
97615a1fad Add log level configuration and debug option 2026-02-05 09:21:27 +01:00
Alexandre
9cd110f4b9 lower case 2026-02-05 09:17:47 +01:00
Alexandre
cb8b267184 Implement logging for OpenVPN with configurable level
Add logging functionality with configurable log level for OpenVPN.
2026-02-05 09:03:17 +01:00
litinoveweedle
30123292aa implement waiting for opevpn interface to come up 2026-02-04 19:33:05 +01:00
litinoveweedle
6759f66a8a fix openvpn options 2026-02-04 19:14:06 +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
litinoveweedle
ec4b5417ea fix DNS_server parsing 2026-02-03 22:58:12 +01:00
litinoveweedle
5ac54f5d1c Merge branch 'qbittorrent_vpn_overhaul' of https://github.com/litinoveweedle/alexbelgium-hassio-addons into qbittorrent_vpn_overhaul 2026-02-03 22:38:08 +01:00
litinoveweedle
5647aac528 multiple bug fixes
fix script premature termination as bashio set -e?
fix parsing of the DNS servers
improve ip/host checks
2026-02-03 22:36:46 +01:00
Alexandre
60cb4c9c26 Update vpn 2026-02-03 21:59:11 +01:00
Alexandre
c69440da1a Fix sed command for OpenVPN runtime config 2026-02-03 21:31:19 +01:00
litinoveweedle
8c5171b027 removed host dependency 2026-02-03 21:09:17 +01:00
litinoveweedle
9789b9dab6 added comments 2026-02-03 17:42:40 +01:00
litinoveweedle
333116c8fc improve endpoint hostname validation 2026-02-03 17:34:48 +01:00
litinoveweedle
2e0327fe87 fixes
replaced IFS by mapfile where relevant
2026-02-03 13:00:32 +01:00
litinoveweedle
bfdbd1e289 fixed vpn script execute permissions 2026-01-29 17:18:20 +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
80f7efb013 overhaul cont-init vpn scripts 2026-01-27 12:15:16 +01:00
litinoveweedle
b001f1ebca Add wireguard MTU option
+ fix OpenVPN suffix to both conf and ovn
2026-01-26 20:24:29 +01:00
litinoveweedle
38c8929605 vpn service script improvements & fixes
simplified logging + notify user on the VPN behavior
improved DNS servers handling + IPv6 defaults
added Wireguard persistent-keepalive option
fixed some execution bugg + typos
2026-01-26 18:11:13 +01:00
litinoveweedle
7e0281bc21 remove unnecessary OpeVPN scripts 2026-01-25 17:40:17 +01:00
litinoveweedle
1a0df6c5c2 improve dns servers handling
fixed routing rule addresses
2026-01-25 17:23:59 +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
litinoveweedle
f3f4d2ef81 Implement cleanup for temporary files in iptables-restore
Add cleanup function to remove temporary files on exit.
2026-01-22 23:09:08 +01:00
litinoveweedle
30e047c020 Add cleanup function to ip6tables-restore script 2026-01-22 23:08:09 +01:00