Commit Graph

  • 7e7312459d Cyberghost: read client key as file, see #179 Quentin McGaw 2020-07-14 00:17:31 +00:00
  • e3a677c22b Add openvpnconfig command, for #179 Quentin McGaw 2020-07-13 23:43:26 +00:00
  • 2f955e0190 Simplified provider object creation Quentin McGaw 2020-07-13 23:34:03 +00:00
  • 618441b008 Vyprvpn support, fix #181 (#193) Quentin McGaw 2020-07-13 08:04:35 -04:00
  • 4a7d341c57 Fixing extra subnets firewall rules - Fix #194 - Fix #190 - Refers to #188 Quentin McGaw 2020-07-13 02:17:49 +00:00
  • 95ad58687d Remove duplicate firewall rule for tun0 Quentin McGaw 2020-07-13 02:15:32 +00:00
  • 0fc69e068e FIREWALL_DEBUG variable, refers to #190, #194 Quentin McGaw 2020-07-13 02:14:56 +00:00
  • 7252ac722c Logging improvements (#195) Quentin McGaw 2020-07-12 21:19:44 -04:00
  • 4cd6b33044 Add missing subnets setup, fixes #190 - Also setup subnet routes when firewall is disabled Quentin McGaw 2020-07-12 21:21:41 +00:00
  • 0731b1cb82 Remove horrible firewall debug 1 printing Quentin McGaw 2020-07-12 19:22:48 +00:00
  • 07efea612b Minor changes - Remove unneeded string conversions - Remove resolve-retry infinite openvpn configuration (unneeded) - Add cover on single tests and single test files for Vscode Quentin McGaw 2020-07-12 19:15:05 +00:00
  • 6afa4f69a0 Fix routing reading issues - Detect VPN gateway properly - Fix local subnet detection, refers to #188 - Split LocalSubnet from DefaultRoute (2 different routes actually) Quentin McGaw 2020-07-12 19:05:48 +00:00
  • 2acf627918 Fixes #191 Quentin McGaw 2020-07-12 15:21:32 +00:00
  • 4eb7c4ac36 Support for username and password changes Quentin McGaw 2020-07-12 14:55:03 +00:00
  • b4c838e6ab Changes to cyberghost openvpn configuration - Comment out redirect-gateway def1 - Add explicit-exit-notify 2 to ensure disconnection server side - Remove ping-exit instructions - Remove resolv-retry infinite (unneeded) Quentin McGaw 2020-07-12 14:47:37 +00:00
  • 8b096af04e DNS_KEEP_NAMESERVER variable, refers to #188 Quentin McGaw 2020-07-11 23:51:53 +00:00
  • 78b63174ce Update VPN server IP addresses - PIA updated - Surfshark updated - Windscribe updated (US East and Slovenia removed) - Capital letters fixed for regions of Windscribe - Resolver program updated to match latest format for constants Quentin McGaw 2020-07-11 22:02:25 +00:00
  • 11fca08028 Port forwarded firewall fix Quentin McGaw 2020-07-11 21:30:26 +00:00
  • 515e72a0ed Update versions in readme Quentin McGaw 2020-07-11 21:10:41 +00:00
  • 2f9d1f09d3 Minor changes - Remove https://ip4.ddnss.de/meineip.php - Logs when falling back to plaintext DNS Quentin McGaw 2020-07-11 21:04:46 +00:00
  • b1596bc7e4 Firewall refactoring - Ability to enable and disable rules in various loops - Simplified code overall - Port forwarding moved into openvpn loop - Route addition and removal improved Quentin McGaw 2020-07-11 21:03:55 +00:00
  • ccf11990f1 Fix several async issues - race conditions between ctx.Done and waitError channel - Sleep for retry cancels on cancelation of context - Stops the any loop at the start if the context was canceled - Mentions when loops exit - Wait for errors on triggered loop restarts Quentin McGaw 2020-07-11 20:59:30 +00:00
  • 1ac06ee4a8 Fatal waits for subprocesses to complete Quentin McGaw 2020-07-09 22:04:04 +00:00
  • dc1c7eab81 Fix #187 (silly me #2) Quentin McGaw 2020-07-09 11:56:43 +00:00
  • 5bf471767d Remove unneeded waiter object Quentin McGaw 2020-07-08 23:43:03 +00:00
  • 3d25db1bed Waits properly for all subprocess to exit Quentin McGaw 2020-07-08 23:42:54 +00:00
  • 99e386abc8 Using a waitgroup to wait for all programs to exit Quentin McGaw 2020-07-08 23:36:02 +00:00
  • 8669748289 Shadowsocks loop Quentin McGaw 2020-07-08 23:29:40 +00:00
  • a39d885e34 Minor fixes - Not logging program name twice for wait errors - Wait for tinyproxy to exit Quentin McGaw 2020-07-08 23:29:22 +00:00
  • 7d36993450 Tinyproxy run loop Quentin McGaw 2020-07-08 23:20:33 +00:00
  • 0d53461706 Quick fix: uid and gid for openvpn Quentin McGaw 2020-07-08 22:51:27 +00:00
  • 758f316816 Small constants changes - ifconfig.me/ip added, see #186 - Remove trailing space for a Surfshark region Quentin McGaw 2020-07-08 22:47:48 +00:00
  • ad73a027f3 Gets public IP every hour Quentin McGaw 2020-07-08 22:47:12 +00:00
  • 2c96f91043 Merge branch 'master' of github.com:qdm12/private-internet-access-docker Quentin McGaw 2020-07-08 22:33:40 +00:00
  • 53b7fafc49 Public IP loop, fixes #186 - Uses common http client with 15 seconds timeout - Repeats on fail after 5 seconds sleep time Quentin McGaw 2020-07-08 22:33:28 +00:00
  • 7450ffce2b uid and gid variables (no change at runtime) Quentin McGaw 2020-07-08 22:13:59 +00:00
  • 765f06e5a8 Write auth file in openvpn loop Quentin McGaw 2020-07-08 22:11:23 +00:00
  • e304b4a829 Updated readme to match the Dockerfile (#185) Rick van Hattem 2020-07-08 15:19:56 +02:00
  • 3ae4523280 Merge branch 'master' of github.com:qdm12/private-internet-access-docker Quentin McGaw 2020-07-08 13:14:50 +00:00
  • 7a136db085 Simplified loop mechanism for openvpn and dns - Refers to #91 - http control server starts without waiting for unbound and/or openvpn - Trying to get rid of waiter and use channels directly - Simpler main.go - More robust logic overall Quentin McGaw 2020-07-08 13:14:39 +00:00
  • e809e178b9 Added Surfshark documentation for authentication (#182) Rick van Hattem 2020-07-08 03:14:05 +02:00
  • dd529a48fa Stripped extraneous whitespace (#180) Rick van Hattem 2020-07-07 23:33:35 +02:00
  • 2c6eae4e90 Set Surfshark ping-restart to valid value (#183) Rick van Hattem 2020-07-07 23:30:06 +02:00
  • 18e99d07d0 Move provider settings in openvpn settings Quentin McGaw 2020-07-05 20:05:38 +00:00
  • a4b0e0ff86 Fix provider settings logging Quentin McGaw 2020-07-05 20:05:15 +00:00
  • 7e36fbbd00 Refers to #179 (Cyberghost) - Fix <crt> -> <cert> - Fix certificates (ca.crt and client.crt) Quentin McGaw 2020-07-05 16:20:40 +00:00
  • d228216d1c Fix #179 Quentin McGaw 2020-07-04 17:48:22 +00:00
  • c9368e352c DNS_PLAINTEXT_ADDRESS, fixes #176 Quentin McGaw 2020-06-26 14:40:46 +00:00
  • d947d9fe30 Rename dev extension ms-vscode.go to golang.go Quentin McGaw 2020-06-26 14:37:11 +00:00
  • 613ded51ab Upgrade to Alpine 3.12 Quentin McGaw 2020-06-26 14:36:31 +00:00
  • 3b43b7c2f6 Add script security 2 to run vpn provider scripts Fix Bug: ... #176 Quentin McGaw 2020-06-21 20:21:13 -04:00
  • cdbb7bf771 Fix #175 Quentin McGaw 2020-06-18 18:05:51 +00:00
  • 5a6cf0fe3a Remove firewall nat chain clearing, refers to #171 Quentin McGaw 2020-06-16 12:20:33 +00:00
  • 082a5bdf51 Fix http control server not working when DOT=off Quentin McGaw 2020-06-16 00:11:22 +00:00
  • 7369808b84 Refactor (#174) Quentin McGaw 2020-06-13 14:08:29 -04:00
  • 4f502abcf8 Cyberghost support (#168) Quentin McGaw 2020-06-13 10:43:47 -04:00
  • bdcadf09ec Fix: Shadowsocks nameserver when DOT=off Quentin McGaw 2020-06-13 13:57:26 +00:00
  • 8cae369186 Add FIREWALL variable, refers to #171 Quentin McGaw 2020-06-12 17:11:21 +00:00
  • a3d75f3d8b Replace p with r for params reader (lint issue) Quentin McGaw 2020-06-12 17:07:32 +00:00
  • 1a06d01ae2 Fix #172 kernel module for Synology Quentin McGaw 2020-06-10 01:34:20 +00:00
  • 634cef2bb2 Only resolve github.com for healthcheck, fix #170 Quentin McGaw 2020-06-10 01:25:10 +00:00
  • 6107f5c4ab Fix #173 Quentin McGaw 2020-06-10 01:16:58 +00:00
  • 6ae9dc5c2c Update list of donators in readme 👍 Quentin McGaw 2020-06-08 08:31:18 -04:00
  • ea3a173e3b Remove persist-tun, fix #171 - Now openvpn tries other vpn ip addresses available on restart - In case of a bad ip address, it will try other random ones Quentin McGaw 2020-06-08 11:08:07 +00:00
  • 69217f61a1 Update PIA servers IP addresses, refers to #171 Quentin McGaw 2020-06-08 11:06:11 +00:00
  • e33a6a8503 Fix #170 Quentin McGaw 2020-06-05 19:32:12 -04:00
  • 0fb065eb61 Fix bad comparison in healthcheck Quentin McGaw 2020-06-05 12:46:44 +00:00
  • f6a2aac475 Fix #170 Quentin McGaw 2020-06-04 22:13:49 +00:00
  • 900fa261d8 Better healthcheck (#169), fixes #133 Quentin McGaw 2020-06-03 21:52:44 -04:00
  • cfb4dd84bc Replace pia with gluetun wherever possible - in Readme documentation - Changed splash title string - Changed Dockerfile labels - Changed commands and docker-compose service & container name Quentin McGaw 2020-06-03 02:11:35 +00:00
  • 4f72f60a3e .dockerignore updated Quentin McGaw 2020-06-02 23:12:04 +00:00
  • f262ee6454 Resolver cli changes - Max of 10 simultaneous goroutines to avoid being throttled by DNS - All template formatting moved to formatLine function - resolveRepeat is synchronous to avoid being throttled by DNS Quentin McGaw 2020-06-02 23:10:04 +00:00
  • 20a3327815 Minor changes - PORT is for Mullvad but also Windscribe (docker-compose, README.md) - Windscribe configurator does not need lookupIP anymore Quentin McGaw 2020-06-02 23:07:29 +00:00
  • 3ab1298b1f Main function improved - More explicit cli operation - Using ctx and os.Args injected for eventual later testing - Returning exit code - Cli code moved to cli package Quentin McGaw 2020-06-02 23:03:18 +00:00
  • a7739b6f5d Add multi hop regions and ips for Surfshark Quentin McGaw 2020-05-31 19:50:28 +00:00
  • 263368af89 Remove cipher and auth restrictive checks Quentin McGaw 2020-05-29 12:01:45 +00:00
  • 96e57d2c32 Surfshark (#167) Quentin McGaw 2020-05-29 07:24:27 -04:00
  • 85a93bdd34 Remove timestamps from program logs - Using suppress-timestamps for openvpn - Using custom regexp for tinyproxy, shadowsocks and unbound - Time is now only shown once per line - Log level of subprogram is preserverd Quentin McGaw 2020-05-29 11:17:14 +00:00
  • cc80d224c2 Review current openvpn configuration - tls-client unneeded if client is specified - Moved settings around in config file Quentin McGaw 2020-05-29 10:29:07 +00:00
  • c85cca7fdc Workflow adjustments: - Paths ignore for all docker build - Remove security workflow (CVEs should be fixed by Alpine) Quentin McGaw 2020-05-29 10:20:45 +00:00
  • 3f6d3d7c2a Openvpn files parser tool binary Quentin McGaw 2020-05-29 10:13:42 +00:00
  • 09a0ba1228 DNS Resolver tool binary Quentin McGaw 2020-05-29 10:13:29 +00:00
  • 6b81ed6bde Unneeded Docker init, Go entrypoint does it Quentin McGaw 2020-05-29 10:12:38 +00:00
  • 64e447b262 Minor code and comments changes Quentin McGaw 2020-05-29 00:09:49 +00:00
  • d0926111e0 Env variables cleanup in Docker config files Quentin McGaw 2020-05-29 00:03:10 +00:00
  • aac4298f69 Moved main.go to cmd/gluetun/main.go Quentin McGaw 2020-05-28 23:59:35 +00:00
  • f4018d3411 Fix PIA region case sensitivity, refers to #163 Quentin McGaw 2020-05-28 01:07:32 +00:00
  • 0710199409 Updated IP addresses for Windscribe and PIA - Updated test functions to resolve subdomains - IP addresses are in increasing order - One line per region/subdomain Quentin McGaw 2020-05-27 00:52:52 +00:00
  • 43c15b3e68 Removed double message in port forwarding logging Quentin McGaw 2020-05-18 13:39:01 +00:00
  • ab223a5e06 User specified iptables rules (#161) Quentin McGaw 2020-05-18 09:37:34 -04:00
  • fd5e7af3ff Improve environment variables table Quentin McGaw 2020-05-17 18:34:57 -04:00
  • 886d4ad1a9 Update readme for new wiki Quentin McGaw 2020-05-17 17:54:37 -04:00
  • 40a72b6189 Update golangci-lint to 1.27.0 Quentin McGaw 2020-05-17 17:49:40 -04:00
  • 5eb1859f41 Fix #156 falls back to dns on ipv4 only Quentin McGaw 2020-05-09 00:54:49 +00:00
  • b45fa026dd Improved openvpn run loop Quentin McGaw 2020-05-09 00:43:09 +00:00
  • da739a0c3d Fix waitForAll context for graceful exits Quentin McGaw 2020-05-07 12:58:37 +00:00
  • 0dc400b540 Fix Unbound run loop logic - Plain DNS is used only for the first resolving of github.com to obtain block lists and crypto files required by Unbound - DNS over TLS is used at all time by the system and the Go program thereafter, even between periodic restarts - Downtime during a periodic update is < 1 second - On an Unbound start or unexpected exit error, the container falls back on the unencrypted version of the DNS in order to try restarting Unbound Quentin McGaw 2020-05-07 12:56:49 +00:00
  • d12668d57f Fix logic to disable DNS periodic update Quentin McGaw 2020-05-05 22:02:23 +00:00
  • c39affeb12 GolangCi-lint 1. 26.0 Quentin McGaw 2020-05-05 18:01:12 +00:00
  • d73765a5f5 DNS_UPDATE_PERIOD environment variable Quentin McGaw 2020-05-05 18:00:56 +00:00