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
Quentin McGaw
98b076e2cb
Rename ENCRYPTION to PIA_ENCRYPTION ( #98 )
2020-03-26 08:11:50 -04:00
Quentin McGaw
e334cf6c5f
Minor changes
2020-03-23 20:37:56 +00:00
Quentin McGaw
9435db8e1e
Fix #90 add env variable OPENVPN_TARGET_IP
2020-03-18 23:49:40 +00:00
Quentin McGaw
d2b361b998
Fix #81 , new env variable OPENVPN_ROOT
2020-03-18 23:05:47 +00:00
Quentin McGaw (desktop)
0eb2e5a120
Removed unecessary tun-ipv6 from pia ovpn config
2020-03-05 01:03:33 +00:00
Quentin McGaw (desktop)
d0f678c315
Add DNS over TLS ipv6 upstream servers, see #88
2020-03-05 00:54:33 +00:00
Quentin McGaw (desktop)
0c48d2d5a0
DOT_IPV6 environment variable added, refers to #88
2020-03-05 00:51:04 +00:00
Quentin McGaw (desktop)
28edae383b
Changed openvpn Mullvad settings, refers to #86
2020-03-04 23:52:41 +00:00
Quentin McGaw (desktop)
939b58c457
Ortograph! Renamed annoucement to announcement
2020-03-04 23:47:21 +00:00
Quentin McGaw
fa0272d5ad
Support Mullvad over openvpn ( #85 )
...
Additional changes:
- Allow empty value for PIA region
- Most settings are lowercased
- `OPENVPN_VERBOSITY` environment variable
- openvpn also tunnels IPv6, and unbound supports ipv6
- auth kept only on disk, not in memory
- readme reworked
- CI script fixed and improved
- Added v2 Docker tag
- Shadowsocks log defaults to `off`
2020-02-29 21:05:20 -05:00
Quentin McGaw (desktop)
dd0170afb1
Annoucement expiration time parsing
2020-02-25 11:46:52 +00:00
Quentin McGaw (desktop)
3ad60349db
Applied JeordyR's changes
2020-02-22 17:55:49 +00:00
Quentin McGaw (desktop)
d1412f43fd
Changed announcement
2020-02-22 17:04:50 +00:00
Quentin McGaw (desktop)
53db4813fa
Allow PIA server to choose compression
2020-02-22 16:34:28 +00:00
Quentin McGaw (desktop)
2f09ed9069
tls-client openvpn client instruction added
2020-02-22 16:34:05 +00:00
Quentin McGaw (desktop)
9202d6c15f
Do not keep auth in memory, only on disk
2020-02-22 16:33:37 +00:00