Quentin McGaw
b6135d2476
Support consoles without /dev/stdout
2020-04-30 23:34:35 +00:00
Quentin McGaw
c9b6e79792
Clear ip status file on termination
2020-04-30 12:55:07 +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
ac706bd156
Wait for openvpn to exit on program termination
2020-04-30 11:01:22 +00:00
Quentin McGaw
d864a9f580
Refixes #148
2020-04-30 10:48:26 +00:00
Quentin McGaw
a32318d246
Improve issue templates
2020-04-30 10:38:31 +00:00
Quentin McGaw
45a7a5b9e2
Fix build
2020-04-30 00:46:29 +00:00
Quentin McGaw
9af2a7a640
Retry port forwarding after 5 seconds, fix #148
2020-04-30 00:02:27 +00:00
Quentin McGaw
eb62ad06db
Better context handling (prep for restart logic)
2020-04-29 23:59:23 +00:00
Quentin McGaw
a033637e85
Better exit handling
2020-04-29 01:27:42 +00:00
Quentin McGaw
b0ea739c20
Restarts openvpn on failure without Docker restart ( #144 )
2020-04-28 21:22:18 -04:00
Quentin McGaw
352af84977
Workflows adjustments ( #124 )
...
* reviewdog/action-misspell@master
* Improve issue templates
2020-04-28 08:48:06 -04:00
Quentin McGaw
eb149ee040
Fix bad links in FAQ
2020-04-28 08:43:21 -04:00
Quentin McGaw
9b3166a2e2
Add @Frepke to sponsors in readme
2020-04-28 08:43:13 -04:00
Quentin McGaw
e94f4283e1
Port forwards 1 second after openvpn connects
2020-04-27 12:10:36 +00:00
Quentin McGaw
ef0959a15e
Update Golangci-lint to v1.25.0
2020-04-26 13:28:26 +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
4cb32ef9dc
Reliably wait for all processes to exit
2020-04-19 20:10:48 +00:00
Quentin McGaw
e805d42197
Updated dependencies
2020-04-19 18:13:48 +00:00
Quentin McGaw
cbd11bfdf2
Thanks @Ralph521 !
2020-04-15 12:33:50 +00:00
Quentin McGaw
422bd8d428
Log stderr stream from shadowsocks
2020-04-14 12:22:14 +00:00
Quentin McGaw
58459f0336
PIA_ENCRYPTION in readme, thanks @Frepke
2020-04-14 07:43:14 -04:00
Quentin McGaw
6f6e227b94
Add section for sponsors, donations in readme
2020-04-13 00:32:57 +00:00
Quentin McGaw
e015cd4a27
Windscribe affiliate link, refers to #109
2020-04-13 00:21:41 +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
fb4c9b8a58
Vscode workspace settings
2020-04-12 19:53:50 +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
68203c221d
Refactored documentation for Docker hub workflow
...
- Readme size lowered to 18KB
- Documents created in doc/ directory
- faq.md, firewall.md, development.md
- Title svg as absolute path for Docker hub
- Re-enabled Docker hub description workflow
2020-04-12 13:42:41 +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
e7a475a303
Stops on port forwarding error, fixes #120
2020-03-31 12:03:26 +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
d2117cd043
Improved environment variables table
2020-03-30 00:48:54 +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
3d6a580102
Workflow minor fixes
...
- Renamed bad name in PR docker build
- Removed escaped \n in greetings
- Fixed up misspell action
2020-03-29 11:30:37 -04:00
Quentin McGaw
d4a1828c1d
Issue templates updated
2020-03-29 11:29:59 -04:00
Quentin McGaw
bdf96d864e
Check custom cipher value for each vpn provider
2020-03-27 01:10:54 +00:00