Quentin McGaw
b4a4e441c1
Fix #199 when ticker period is 0
2020-07-16 12:00:25 +00:00
Quentin McGaw
9abb630692
Get and set settings for DNS
2020-07-16 01:45:05 +00:00
Quentin McGaw
9b92ece5a1
Fix race condition for public ip loop
2020-07-16 01:44:48 +00:00
Quentin McGaw
87a3e54044
Set and get settings for openvpn
2020-07-16 01:26:37 +00:00
Quentin McGaw
76b730e2a6
Improve openvpn logging
...
- Show Initialization Sequence completed in green
- Show all other openvpn logs in the openvpn color
2020-07-16 01:20:47 +00:00
Quentin McGaw
51af8d1ab0
PUBLICIP_PERIOD environment variable
2020-07-16 01:12:54 +00:00
Quentin McGaw
002ffacd35
Shadowsocks get and set settings
2020-07-16 00:05:00 +00:00
Quentin McGaw
404cee9371
Tinyproxy set and get settings
2020-07-16 00:05:00 +00:00
Quentin McGaw
a0312ec916
Shadowsocks and Tinyproxy Start and Stop
2020-07-16 00:04:15 +00:00
Quentin McGaw
83cf59b93e
Start and Stop for dns over tls
2020-07-16 00:04:15 +00:00
Quentin McGaw
ad5de13c25
Logging filtering for openvpn process
2020-07-16 00:04:14 +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
8c7c8f7d5a
Fix Cyberghost port, fixes #179 and #104
2020-07-14 23:08:57 +00:00
Quentin McGaw
78877483e9
Fix #198
2020-07-14 22:31:15 +00:00
Quentin McGaw
de7f12d958
Gluetun git history video 😉
2020-07-14 00:38:55 +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
2f955e0190
Simplified provider object creation
2020-07-13 23:34:03 +00:00
Quentin McGaw
618441b008
Vyprvpn support, fix #181 ( #193 )
2020-07-13 08:04:35 -04:00
Quentin McGaw
4a7d341c57
Fixing extra subnets firewall rules
...
- Fix #194
- Fix #190
- Refers to #188
2020-07-13 02:17:49 +00:00
Quentin McGaw
95ad58687d
Remove duplicate firewall rule for tun0
2020-07-13 02:15:32 +00: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
0731b1cb82
Remove horrible firewall debug 1 printing
2020-07-12 19:22:48 +00:00
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