Quentin McGaw
1fc1776dbf
Simplify main.go
2020-09-12 19:17:19 +00:00
Quentin McGaw
464c7074d0
Get public IP and version only when DNS is ready
2020-09-12 18:50:42 +00:00
Quentin McGaw
e0e450ca1c
Revisit waitgroup ( #241 )
...
* Fix Add to waitgroup out of goroutines calling wg.Done()
* Pass waitgroup to other loop functions
2020-09-12 14:34:15 -04:00
Quentin McGaw
a19efbd923
Updater loop with period and http route ( #240 )
...
* Updater loop with period and http route
* Using DNS over TLS to update servers
* Better logging
* Remove goroutines for cyberghost updater
* Respects context for servers update (quite slow overall)
* Increase shutdown grace period to 5 seconds
* Update announcement
* Add log lines for each provider update start
2020-09-12 14:04:54 -04:00
Quentin McGaw
797fa33971
Servers updater ( #232 )
...
* Support for all VPN providers
* Update all VPN providers servers information
* Remove old tooling binaries
2020-09-05 12:57:16 -04:00
Quentin McGaw
7c102c0028
Fix #135
2020-08-30 14:48:57 +00:00
Quentin McGaw
aac5274eab
Fix #224
2020-08-29 19:14:52 +00:00
Quentin McGaw
d463e4cb69
New PIA servers support ( #227 )
...
* Adapt storage: SyncServers write to file option, export FlushToFile
* CLI built-in updater for old and new PIA servers
* Update hardcoded IP addresses for PIA old and new servers
* Add PIA old to allServers struct and update timestamps
* Adapt code to work with new and old PIA servers
* Remove PIA subdomains (unneeded) from resolver tool
2020-08-28 08:17:04 -04:00
Quentin McGaw
93aaf1ab02
Fix exiting without fatalOnError function
2020-08-27 22:59:58 +00:00
Quentin McGaw
aa9693a84d
Persistent server pools ( #226 )
...
* GetAllServers with version & timestamp tests
* Storage package to sync servers
* Use storage Sync to get and use servers
2020-08-25 19:38:50 -04:00
hyness
7e3e6f166a
Add new PIA servers hostnames to resolver tool ( #222 )
...
Refers to #216
2020-08-20 19:20:59 -04:00
Quentin McGaw
c614a192a4
Shadowsocks in Go ( #220 ), fixes #211
2020-08-20 19:19:54 -04:00
Quentin McGaw
cd60fe4406
Add PIA US Dallas region, refers to #212
2020-07-28 02:40:38 +00:00
Quentin McGaw
a2a9410053
Fix #212
2020-07-28 00:31:19 +00:00
Quentin McGaw
f95f6201b1
Rename repo to Gluetun, refers to #112
2020-07-26 12:07:06 +00:00
Quentin McGaw
8f547500d0
Purevpn support ( #208 )
...
Fixes #192
2020-07-25 11:19:45 -04:00
Quentin McGaw
c5c53a2ff8
FatalOnError fixes
2020-07-23 02:15:37 +00:00
Quentin McGaw
28e0abc922
FIREWALL_VPN_INPUT_PORTS variable, fixes #196
2020-07-20 02:07:13 +00:00
Quentin McGaw
a13be8f45e
Firewall simplifications
...
- Only a map of allowed input port to interface
- port forwarded is in the map of allowed input ports
- port forwarded has the interface tun0 in this map
- Always allow tcp and udp for allowed input ports
- Port forward state is in openvpn looper only
- Shadowsocks input port allowed on default interface only
- Tinyproxy input port allowed on default interface only
2020-07-20 00:39:59 +00:00
Quentin McGaw
85bd4f2e8d
Get default route and local subnet only at start
2020-07-20 00:35:53 +00:00
Quentin McGaw
4baf0420d6
Openvpn get settings http route
2020-07-19 14:26:24 +00:00
Quentin McGaw
29f74df450
Fix #202
2020-07-19 14:22:23 +00:00
Quentin McGaw
51af8d1ab0
PUBLICIP_PERIOD environment variable
2020-07-16 01:12:54 +00:00
Quentin McGaw
1281026850
Nordvpn support ( #189 ), fix #178
2020-07-15 18:14:45 -04:00
Quentin McGaw
616ba0c538
Replace explicit channels with functions
2020-07-15 01:34:46 +00:00
Quentin McGaw
7e7312459d
Cyberghost: read client key as file, see #179
2020-07-14 00:17:31 +00:00
Quentin McGaw
e3a677c22b
Add openvpnconfig command, for #179
2020-07-13 23:43:26 +00:00
Quentin McGaw
618441b008
Vyprvpn support, fix #181 ( #193 )
2020-07-13 08:04:35 -04:00
Quentin McGaw
0fc69e068e
FIREWALL_DEBUG variable, refers to #190 , #194
2020-07-13 02:14:56 +00:00
Quentin McGaw
7252ac722c
Logging improvements ( #195 )
...
- Fix (and test) filtering of lines
- Filter out shadowsocks cannot resolve error
- Change tinyproxy color
- Deduct logging level according to message content
2020-07-12 21:19:44 -04:00
Quentin McGaw
4cd6b33044
Add missing subnets setup, fixes #190
...
- Also setup subnet routes when firewall is disabled
2020-07-12 21:21:41 +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
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
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
1ac06ee4a8
Fatal waits for subprocesses to complete
2020-07-09 22:04:04 +00:00
Quentin McGaw
dc1c7eab81
Fix #187 (silly me #2 )
2020-07-09 11:56:43 +00:00
Quentin McGaw
5bf471767d
Remove unneeded waiter object
2020-07-08 23:43:03 +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
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
7450ffce2b
uid and gid variables (no change at runtime)
2020-07-08 22:13:59 +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
dd529a48fa
Stripped extraneous whitespace ( #180 )
2020-07-07 17:33:35 -04:00
Quentin McGaw
18e99d07d0
Move provider settings in openvpn settings
2020-07-05 20:05:38 +00:00
Quentin McGaw
c9368e352c
DNS_PLAINTEXT_ADDRESS, fixes #176
2020-06-26 14:40:46 +00:00
Quentin McGaw
082a5bdf51
Fix http control server not working when DOT=off
2020-06-16 00:11:22 +00:00