Commit Graph

42 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Alexandre
943475e01b update 2025-12-22 08:29:27 +01:00
Alexandre
9e2f740df3 Add sysctl script to local sbin directory 2025-12-21 21:09:41 +01:00
Alexandre
bc7f031fa9 Ensure wireguard sysctl wrapper is always used 2025-12-21 17:15:57 +01:00
github-actions
b76416d0d9 GitHub bot: sanitize (spaces + LF endings) & chmod 2025-11-19 08:31:02 +00:00
Alexandre
c8799206f1 build 2025-11-19 08:30:07 +00:00
github-actions
2bbe34e236 GitHub bot: sanitize (spaces + LF endings) & chmod 2025-11-19 08:09:20 +00:00
Alexandre
9f85d6553e Ensure permissions 2025-11-19 08:08:24 +00:00
Alexandre
37bfccf751 Fix regex patterns in ipv6_unavailable function
https://github.com/alexbelgium/hassio-addons/issues/2139#issuecomment-3548534952
2025-11-18 18:28:12 +01:00
github-actions
749b48fc9b GitHub bot: sanitize (spaces + LF endings) & chmod 2025-11-18 11:33:03 +00:00
Alexandre
c0539ea87d Handle IPv6-less hosts in ip6tables shim 2025-11-18 12:28:20 +01:00