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
Quentin McGaw
64e447b262
Minor code and comments changes
2020-05-29 00:09:49 +00:00
Quentin McGaw
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
2020-05-27 00:52:52 +00:00
Quentin McGaw
ab223a5e06
User specified iptables rules ( #161 )
2020-05-18 09:37:34 -04:00
Quentin McGaw
886d4ad1a9
Update readme for new wiki
2020-05-17 17:54:37 -04:00
Quentin McGaw
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
2020-05-07 12:56:49 +00:00
Quentin McGaw
d12668d57f
Fix logic to disable DNS periodic update
2020-05-05 22:02:23 +00:00
Quentin McGaw
d73765a5f5
DNS_UPDATE_PERIOD environment variable
2020-05-05 18:00:56 +00:00
Quentin McGaw
a97cbcc4e4
Refers to #153
2020-05-04 12:24:34 +00:00
Quentin McGaw
754bab9763
Unbound restart logic
...
- Update files and restart unbound every 24hours
- HTTP route to force update & restart of Unbound
- Fix #151
2020-05-02 17:08:15 +00:00
Quentin McGaw
0d7f6dab1a
Remove unneeded functionNotSet in server
2020-05-02 17:04:01 +00:00
Quentin McGaw
318c3c9032
Control server announcement
2020-05-02 17:02:39 +00:00
Quentin McGaw
7cd35737ba
Defaults DOT_IPV6 to off
2020-05-02 15:40:40 +00:00
Quentin McGaw
363fabc810
Reduced main.go code complexity
2020-05-02 14:48:18 +00:00
Quentin McGaw
8e77842f1e
FatalOnError cancels parent context
2020-05-02 13:05:09 +00:00
Quentin McGaw
88ad10d429
PIA and Windscribe hardcoded IP addresses
...
- Allows to not need to resolve subdomains at start before tunneling
- Allows for Unbound to be configured and started after tunneling
- Refers to #127
2020-05-01 03:14:16 +00:00
Quentin McGaw
f4cd1896c9
Go HTTP control server with restart openvpn route
...
- Fix #147
- Dockerfile updated
- Documentation updated
- Using contexts to restart openvpn
- Code foundation for more http routes
2020-04-30 23:41:57 +00:00
Quentin McGaw
94255aaa38
Better onConnected logic
...
- First port forward after 5 seconds
- Public IP obtained ASAP
- Logging in main only
- Allow port forward firewall with 1 second timeout local context
2020-04-30 12:54:48 +00:00
Quentin McGaw
36424c08ac
Better checks for user provided private addresses
2020-04-26 13:28:14 +00:00
Quentin McGaw
97ea5f63b8
Removes port forward status file at exit
2020-04-19 20:45:34 +00:00
Quentin McGaw
88c9d3d687
Waits 300ms before first DNS resolution try
2020-04-19 20:44:33 +00:00
Quentin McGaw
f1569dac05
Each stream uses a different color, fixes #136
2020-04-19 20:40:31 +00:00
Quentin McGaw
e805d42197
Updated dependencies
2020-04-19 18:13:48 +00:00
Quentin McGaw
422bd8d428
Log stderr stream from shadowsocks
2020-04-14 12:22:14 +00:00
Quentin McGaw
768147095f
Golangcilint in build pipeline and fix lint errors
...
- Fix bad permissions bits for files
- VPNSP is 'private internet access' instead of 'pia' (retro compatible)
- Check errors of deferred unsetEnv functions in params package
- Other lint errors fixing and code simplifications
2020-04-12 20:05:28 +00:00
Quentin McGaw
8f6b6306d6
Formatting of files (goimport)
2020-04-12 20:01:33 +00:00
Quentin McGaw
3d7cfb125a
Using WithPrefix for loggers
2020-04-12 19:07:19 +00:00
Quentin McGaw
d42de99879
Updated golibs and using gomock+mockgen for tests
2020-04-12 18:09:46 +00:00
Quentin McGaw
3ac3e5022c
IP_STATUS_FILE and routing improvements ( #130 )
...
- Obtains VPN public IP address from routing table
- Logs and writes VPN Public IP address to `/ip` as soon as VPN is up
- Obtain port forward, logs it and writes it as soon as VPN is up
- Routing fully refactored and tested
- Routing reads from `/proc/net/route`
- Routing mutates the routes using `ip route ...`
2020-04-12 08:55:13 -04:00
Quentin McGaw
da8391e9ae
Using %s instead of %w for format print
2020-04-12 02:42:32 +00:00
Quentin McGaw
ebdf241888
Show DNS lookup error, refers to #127
2020-04-09 13:17:55 +00:00
Quentin McGaw
60cec716b2
Clears port forward status file at exit, fix #125
2020-04-09 12:11:36 +00:00
Quentin McGaw
67588e0072
Merge branch 'master' of github.com:qdm12/private-internet-access-docker
2020-03-30 12:01:45 +00:00
Quentin McGaw
bfa3d749ac
Fix test
2020-03-30 12:01:35 +00:00
Quentin McGaw
7e79d9696f
TZ setting shown at start ( #119 )
2020-03-30 07:58:40 -04:00
Quentin McGaw
f251c6aa4d
Using UID and GID given for Tinyproxy, fixes #118
2020-03-30 11:56:38 +00:00
Quentin McGaw
0235df74a0
SHADOWSOCKS_METHOD environment variable ( #117 )
2020-03-29 20:06:27 -04:00
Quentin McGaw
e5adccd9c5
Custom UID and GID for subprocesses and files written ( #116 ) Fix #116
...
- Environment variables `UID` and `GID`, both defaulting to `1000`
- All subprocesses (openvpn, tinyproxy, etc.) run using the UID and GID given
- All files are written with an ownership for the UID and GID given
- Port forwarded file has also ownership for UID, GID and read permission only
2020-03-29 19:52:49 -04:00
Quentin McGaw
76cea56864
Windscribe support ( #114 )
2020-03-29 16:42:06 -04:00
Quentin McGaw
643745d33e
OPENVPN_AUTH variable, refers to #94
2020-03-29 16:22:21 -04:00
Quentin McGaw
bdf96d864e
Check custom cipher value for each vpn provider
2020-03-27 01:10:54 +00:00
Quentin McGaw
15a549be11
OPENVPN_CIPHER variable ( #100 ), refers to #94 and #59
2020-03-26 20:29:32 -04:00