Commit Graph

716 Commits

Author SHA1 Message Date
Alexandre
bc7f031fa9 Ensure wireguard sysctl wrapper is always used 2025-12-21 17:15:57 +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
Alexandre
1ce8364f54 Update run 2025-11-23 16:12:38 +00:00
Alexandre
558ecd07cd Update IP retrieval method in WireGuard script 2025-11-23 15:50:41 +00:00
Alexandre
ca6ad47646 Update IP retrieval method in OpenVPN script 2025-11-23 15:50:13 +00:00
Alexandre
1efa2ce23a Update run 2025-11-23 15:42:17 +00:00
Alexandre
de9aae736e Implement iptables-legacy fallback for WireGuard
Added iptables-legacy fallback for WireGuard setup.
2025-11-19 20:36:06 +01:00
Alexandre
065674de81 Set strict perms on WireGuard IPv4 fallback config 2025-11-19 20:26:53 +01:00
Alexandre
271123e500 Add IPv4 fallback for WireGuard connections 2025-11-19 20:18:40 +01:00
Alexandre
8e1a05362a Update run 2025-11-19 15:54:48 +01:00
Alexandre
9809407dd7 Improve VPN IP monitoring in nginx run script
Refactor nginx run script to enhance VPN IP monitoring and logging.
2025-11-19 15:38:25 +01:00
Alexandre
27241c1885 Refactor WireGuard script to remove port mapping
Removed port mapping logic for WireGuard and added IP retrieval.
2025-11-19 15:29:14 +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
alexbelgium
769d9bf0a6 fix: auto-fix linting issues 2025-08-24 00:33:36 +00:00
github-actions
9233a63806 GitHub bot: sanitize (spaces + LF endings) & chmod 2025-08-17 13:51:06 +00:00