Michael Moon
|
887d0b9301
|
Reorganise dependency checks and a few code blocks, clarify some messages
|
2021-04-19 13:23:04 +08:00 |
|
Michael Moon
|
611f706cf3
|
Only test for ip and wg if we need them; -c config-only does not require them
|
2021-04-02 14:54:44 +08:00 |
|
Michael Moon
|
42f06a9d7c
|
pia-wg -c (config only) option will now also spit out a QR code for use with phones
|
2021-04-02 14:41:21 +08:00 |
|
Michael Moon
|
147ef7be1c
|
Reshuffle reconnect mechanics after discussion with PIA L2 tech support, add option to only generate config eg for use with a router or another third-party Wireguard client
|
2021-04-02 13:54:44 +08:00 |
|
Michael Moon
|
9ed4828744
|
Only use console codes if stdout is a terminal
|
2021-02-10 12:34:10 +08:00 |
|
Michael Moon
|
8aac2ef06a
|
Big update: centralise config option processing into one file, auto-generate requisite routing tables if they're not already available
|
2021-02-10 12:24:59 +08:00 |
|
Michael Moon
|
bbc6f0502e
|
Keep previous connection info cached so it can be reused on cold boot - add pia-wg -n option to force re-choosing and endpoint
|
2021-01-12 13:15:53 +08:00 |
|
Michael Moon
|
59278ced81
|
add some timeouts, fall back to public serverlist if VPN serverlist fetch fails
|
2020-11-14 21:37:38 +08:00 |
|
Michael Moon
|
bdfd607655
|
Try harder to find pia-portforward since PATH is fairly plain in init scripts
|
2020-09-30 12:23:54 +08:00 |
|
Michael Moon
|
b9e7c8b9e5
|
pia-wg: if PORTFORWARD="true", only accept port-forwarding servers, and request a port forward after connection
|
2020-09-26 16:27:01 +08:00 |
|
Michael Moon
|
d3f03cc48e
|
Attempt to protect passwords that contain special characters from shell interpretation
|
2020-09-14 22:02:08 +08:00 |
|
Michael Moon
|
9805ac1463
|
USER -> PIA_USERNAME to avoid collision with common system env var
|
2020-09-14 20:35:44 +08:00 |
|
Michael Moon
|
5f9e884e53
|
Use newly available v4 server list to update cache after connection
|
2020-08-26 06:39:04 +08:00 |
|
Michael Moon
|
ac7d270d2a
|
pia-wg: use fwmark instead of ip rules to steer wireguard packets, prettify location list output
|
2020-08-20 12:31:36 +08:00 |
|
Michael Moon
|
4015c34f6f
|
Fix dirs in init script to match new locations in pia-wg, fix pia-wg stripping groups on serverlist update, fix pia-wg always selecting a US-based server, minor rearrangements
|
2020-07-21 19:41:59 +08:00 |
|
Michael Moon
|
90d2442f03
|
Change default config and cache locations for root user
|
2020-07-20 15:03:11 +08:00 |
|
Michael Moon
|
2d787561b6
|
Fallback to common name if registration using dns name fails, preserve "groups" section of server list and pick a random port in case PIA ever opens more ports for wireguard
|
2020-07-18 14:00:17 +08:00 |
|
Michael Moon
|
cda3ed5093
|
Ensure we exit 0 on success, fix a typo where we grabbed a new server list every single time instead of every few days
|
2020-07-17 00:49:45 +08:00 |
|
Michael Moon
|
5863d08065
|
Switch server list to new generation list
|
2020-07-15 17:11:01 +08:00 |
|
Michael Moon
|
31c9f28223
|
Don't wait indefinitely for connection to stabilise, fail after a while so we can try again
|
2020-07-15 17:02:40 +08:00 |
|
Michael Moon
|
8e7131d1d8
|
pia-wg: check sysfs instead of invoking ip link to test if interface exists
|
2020-06-30 14:56:37 +08:00 |
|
Michael Moon
|
1b2679cdf6
|
Exit properly if key registration fails, don't overwrite token file with every invocation, allow ctrl+c to work while waiting for connection to stabilise
|
2020-06-25 18:22:23 +08:00 |
|
Michael Moon
|
47dd996ae6
|
Add timeout while activating public key, make sure to ping the right interface during connection check
|
2020-06-25 12:51:51 +08:00 |
|
Michael Moon
|
e5795872e1
|
Use PIA's self-signed RSA cert to verify endpoints's serial number instead of their wildcard *.privateinternetaccess.com cert, clean up some meaningless warnings during interface setup
|
2020-06-17 17:08:18 +08:00 |
|
Michael Moon
|
4986fca570
|
Add suggestions from /u/Threarah, no longer require wg-quick, re-fetch server list after connection if cached list is stale, check that the few prerequisites are available
|
2020-06-17 14:39:53 +08:00 |
|
Michael Moon
|
4696b1bbb2
|
Clarify token file location in an error message
|
2020-06-16 17:38:34 +08:00 |
|
Michael Moon
|
ff2df879a3
|
handle = in keys properly
|
2020-06-09 21:49:07 +08:00 |
|
Michael Moon
|
064cd537df
|
Make output less noisy, allow endpoint hop without a teardown/setup cycle
|
2020-06-04 17:00:08 +08:00 |
|
Michael Moon
|
b37773362b
|
Fix some ip route stuff
|
2020-05-20 15:16:33 +08:00 |
|
Michael Moon
|
5a3bc432f1
|
Move configs to ~/.config/pia-wg/ by default, expand settings management, improved gateway discovery, extra routing rules
|
2020-05-19 13:54:38 +08:00 |
|
Michael Moon
|
bd6af408a0
|
Use first gateway instead of last. TODO: find proper gateway
|
2020-05-13 12:53:33 +08:00 |
|
Michael Moon
|
176ba4a5d6
|
Stop wg from breaking certain network setups, do it manually instead if required. Also add commented DNS entries
|
2020-05-11 23:28:21 +08:00 |
|
Michael Moon
|
6bea2c91fa
|
Change default location to US (any)
|
2020-05-11 23:10:35 +08:00 |
|
Michael Moon
|
7952d0b541
|
Add pattern match for location
|
2020-05-11 23:03:47 +08:00 |
|
Michael Moon
|
de7d24a094
|
Fix a minor error with the no-saved-password handling
|
2020-05-11 22:04:19 +08:00 |
|
Michael Moon
|
0591a92daf
|
Huge raft of updates adding to tpretz's simple script
|
2020-05-11 21:59:12 +08:00 |
|
Thomas Pressnell
|
f366a1f77d
|
|
2020-04-19 12:12:55 +01:00 |
|