Quentin McGaw
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
2020-07-12 19:15:05 +00:00
Quentin McGaw
6afa4f69a0
Fix routing reading issues
...
- Detect VPN gateway properly
- Fix local subnet detection, refers to #188
- Split LocalSubnet from DefaultRoute (2 different routes actually)
2020-07-12 19:05:48 +00:00
Quentin McGaw
4eb7c4ac36
Support for username and password changes
2020-07-12 14:55:03 +00:00
Quentin McGaw
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)
2020-07-12 14:47:37 +00:00
Quentin McGaw
8b096af04e
DNS_KEEP_NAMESERVER variable, refers to #188
2020-07-11 23:51:53 +00:00
Quentin McGaw
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
2020-07-11 22:02:25 +00:00
Quentin McGaw
11fca08028
Port forwarded firewall fix
2020-07-11 21:30:26 +00:00
Quentin McGaw
2f9d1f09d3
Minor changes
...
- Remove https://ip4.ddnss.de/meineip.php
- Logs when falling back to plaintext DNS
2020-07-11 21:04:46 +00:00
Quentin McGaw
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
2020-07-11 21:03:55 +00:00
Quentin McGaw
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
2020-07-11 20:59:30 +00:00
Quentin McGaw
3d25db1bed
Waits properly for all subprocess to exit
2020-07-08 23:42:54 +00:00
Quentin McGaw
99e386abc8
Using a waitgroup to wait for all programs to exit
2020-07-08 23:36:02 +00:00
Quentin McGaw
8669748289
Shadowsocks loop
2020-07-08 23:29:40 +00:00
Quentin McGaw
a39d885e34
Minor fixes
...
- Not logging program name twice for wait errors
- Wait for tinyproxy to exit
2020-07-08 23:29:22 +00:00
Quentin McGaw
7d36993450
Tinyproxy run loop
2020-07-08 23:20:33 +00:00
Quentin McGaw
0d53461706
Quick fix: uid and gid for openvpn
2020-07-08 22:51:27 +00:00
Quentin McGaw
758f316816
Small constants changes
...
- ifconfig.me/ip added, see #186
- Remove trailing space for a Surfshark region
2020-07-08 22:47:48 +00:00
Quentin McGaw
ad73a027f3
Gets public IP every hour
2020-07-08 22:47:12 +00:00
Quentin McGaw
53b7fafc49
Public IP loop, fixes #186
...
- Uses common http client with 15 seconds timeout
- Repeats on fail after 5 seconds sleep time
2020-07-08 22:33:28 +00:00
Quentin McGaw
765f06e5a8
Write auth file in openvpn loop
2020-07-08 22:11:23 +00:00
Quentin McGaw
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
2020-07-08 13:14:39 +00:00
Rick van Hattem
2c6eae4e90
Set Surfshark ping-restart to valid value ( #183 )
...
No idea why this was here, but thanks for fixing it 🥇
2020-07-07 17:30:06 -04:00
Quentin McGaw
18e99d07d0
Move provider settings in openvpn settings
2020-07-05 20:05:38 +00:00
Quentin McGaw
a4b0e0ff86
Fix provider settings logging
2020-07-05 20:05:15 +00:00
Quentin McGaw
7e36fbbd00
Refers to #179 (Cyberghost)
...
- Fix <crt> -> <cert>
- Fix certificates (ca.crt and client.crt)
2020-07-05 16:20:40 +00:00
Quentin McGaw
c9368e352c
DNS_PLAINTEXT_ADDRESS, fixes #176
2020-06-26 14:40:46 +00:00
Quentin McGaw
3b43b7c2f6
Add script security 2 to run vpn provider scripts
...
Fix Bug: ... #176
2020-06-21 20:21:13 -04:00
Quentin McGaw
cdbb7bf771
Fix #175
2020-06-18 18:05:51 +00:00
Quentin McGaw
5a6cf0fe3a
Remove firewall nat chain clearing, refers to #171
2020-06-16 12:20:33 +00:00
Quentin McGaw
7369808b84
Refactor ( #174 )
...
- Goal was to simplify main.go complexity
- Use common structures and interfaces for all vpn providers
- Moved files around
- Removed some alias models
2020-06-13 14:08:29 -04:00
Quentin McGaw
4f502abcf8
Cyberghost support ( #168 )
...
* Host finder CLI for cyberghost
* Resolver program updated with Cyberghost data
* Gluetun cli clientkey subcommand
2020-06-13 10:43:47 -04:00
Quentin McGaw
bdcadf09ec
Fix: Shadowsocks nameserver when DOT=off
2020-06-13 13:57:26 +00:00
Quentin McGaw
8cae369186
Add FIREWALL variable, refers to #171
2020-06-12 17:11:21 +00:00
Quentin McGaw
a3d75f3d8b
Replace p with r for params reader (lint issue)
2020-06-12 17:07:32 +00:00
Quentin McGaw
634cef2bb2
Only resolve github.com for healthcheck, fix #170
2020-06-10 01:25:10 +00:00
Quentin McGaw
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
2020-06-08 11:08:07 +00:00
Quentin McGaw
69217f61a1
Update PIA servers IP addresses, refers to #171
2020-06-08 11:06:11 +00:00
Quentin McGaw
e33a6a8503
Fix #170
2020-06-05 19:32:12 -04:00
Quentin McGaw
0fb065eb61
Fix bad comparison in healthcheck
2020-06-05 12:46:44 +00:00
Quentin McGaw
f6a2aac475
Fix #170
2020-06-04 22:13:49 +00:00
Quentin McGaw
900fa261d8
Better healthcheck ( #169 ), fixes #133
...
* Changed healthcheck to get and compare IP address
* Change default healthcheck frequency and retries
2020-06-03 21:52:44 -04:00
Quentin McGaw
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
2020-06-03 02:11:35 +00:00
Quentin McGaw
20a3327815
Minor changes
...
- PORT is for Mullvad but also Windscribe (docker-compose, README.md)
- Windscribe configurator does not need lookupIP anymore
2020-06-02 23:07:29 +00:00
Quentin McGaw
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
2020-06-02 23:03:18 +00:00
Quentin McGaw
a7739b6f5d
Add multi hop regions and ips for Surfshark
2020-05-31 19:50:28 +00:00
Quentin McGaw
263368af89
Remove cipher and auth restrictive checks
2020-05-29 12:01:45 +00:00
Quentin McGaw
96e57d2c32
Surfshark ( #167 )
2020-05-29 07:24:27 -04:00
Quentin McGaw
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
2020-05-29 11:17:14 +00:00
Quentin McGaw
cc80d224c2
Review current openvpn configuration
...
- tls-client unneeded if client is specified
- Moved settings around in config file
2020-05-29 10:29:07 +00:00
Quentin McGaw
09a0ba1228
DNS Resolver tool binary
2020-05-29 10:13:29 +00:00