Commit Graph

53 Commits

Author SHA1 Message Date
a1346054 e2b9b733af use proper check for root privileges
The root user is not guaranteed to be named 'root'
2022-02-19 04:01:13 +02:00
Valery Kalesnik b04be889f0 Address some shellcheck reported issues 2021-09-12 20:19:21 +03:00
gunix 6d06b31af1 fix typo on readme 2021-09-12 14:29:32 +03:00
gunix b8f4116b2d add PowerShell scripts to README in the 3rd party section 2021-09-12 14:28:46 +03:00
John Parton 1e44d65aab Replace #!/bin/bash shebang with #!/usr/bin/env bash 2021-09-12 14:21:00 +03:00
g00n1x e7d4806a9e use the new v6 serverlist 2021-08-02 16:56:41 +03:00
goonix 1898303f44
add NetworkManager-GUI-Support to the 3rd party section of the readme 2021-06-30 22:15:13 +03:00
Derek Battams 24deb12c74
Add link to piawgcli project (#115) 2021-05-18 16:52:07 +03:00
Michael Moon 804b71f01e
Append triffid/pia-wg to 3rd party repository table (#111)
* Append triffid/pia-wg to 3rd party repository table
2021-04-20 23:14:31 +03:00
Derek Battams 912d606c50
Update my 3rd party repo (#104)
Since pfSense now supports WireGuard directly, Slugger has pivoted his efforts to a pfSense specific solution for PIA + WireGuard.
2021-03-27 13:26:55 +02:00
janranz dd381a35d5 Update README.md to adjust headers / typos
Minor adjustments to capitalization (for consistency), as well as adjusted spelling.
2021-02-21 02:55:50 +02:00
faireOwl 2e29ad2d8d Added notification about PF requirements
Added notification about requirements of PF to maintain an active script, and the refresh time to be expected.
2021-01-26 23:34:42 +02:00
faireOwl b8cb2c3684 Normalize spacing
Added a few \n to echos for invalid input notifications, normalizing spacing.
2021-01-26 21:40:20 +02:00
gunix 42db36b7c1 adding faireOwl to the readme as github somehow didn't show him as contributor though he worked a lot on this repo 2021-01-22 02:06:59 +02:00
gunix 742a492eee Region Selection and Other Improvements
- separated get_region and get_token into two separate scripts, allowing for independent calls to each if desired; this also allows the implementation of other features mentioned below
- implemented use of new centralized authentication server for easier automation; the new API is  located at https://privateinternetaccess.com/gtoken/generateToken
- added server selection capabilities to run_setup.sh, as requested by multiple users
- added one-line call capabilities to run_setup.sh to allow easy automation
- changed PIA_AUTOCONNECT to VPN_PROTOCOL for clarity
- added AUTOCONNECT for one-line calls
- added PREFERRED_REGION for one-line calls
- added colored output to highlight important details
- added input validation for prompts in run_setup.sh
2021-01-22 01:12:23 +02:00
Derek Battams d2d24808b5 Add 3rd party repo: piawgmgr 2020-12-14 20:24:00 +02:00
Zachary Murray b355c4c665 Fix unescaped quotes in manual debug curl command 2020-11-24 03:21:44 +02:00
g00n1x cb51b0b79e multiple README improvements, including a list of 3rd party repos 2020-11-15 03:57:02 +02:00
Saverio Miroddi 338ca1ac42
Check if IPv6 got disabled via kernel parameter before trying to disable it 2020-11-14 23:47:22 +02:00
Saverio Miroddi 3814d4be97 Fix a typo in the README 2020-11-14 17:21:09 +02:00
Saverio Miroddi 69dd8154ce Make the OpenVPN credentials file readable only by root
It previously was world-readable (0644 permissions).
2020-11-14 17:20:33 +02:00
gertjanal f312938435 Fix typo bellow to below 2020-11-12 21:01:06 +02:00
goonix d4b04701a5
Merge pull request #34 from lofidevops/pureos
Confirmed that it works on PureOS amber with Librem One token
2020-11-02 23:14:54 +02:00
David 2e53430904 Add PureOS amber.
Signed-off-by: David <david@librem.one>
2020-11-02 20:35:06 +00:00
gunix 88b44a4b76 fixed #32 2020-11-02 01:47:31 +02:00
gunix d85aaf34df Updated the readme to better reflect the distributions that are currently supported. 2020-11-01 18:37:20 +02:00
iPherian 58f7ed3ad2
Detect interfaces on multiple distributions (fixes #25)
This modification will allow users that use specific distributions (example: Ubuntu 18.04) to use the OpenVPN scripts without getting any strange behavior on interface detection.
2020-11-01 14:14:51 +02:00
gunix 82ebed7c9c #22 fixed 2020-10-23 00:27:09 +03:00
gunix 44bab04ea1 do not stop OpenVPN script if the PIA_PF is missing; also inform the user he needs PIA_TOKEN to run OpenVPN 2020-10-17 04:09:58 +03:00
faireOwl 24c7733c14 Added a 25 second keepalive to keep the NAT active on firewalls. 2020-10-13 20:45:01 +03:00
nurupo 7a76a24a76
Small fixes (#16)
A lot of typo fixes.
2020-10-12 22:49:40 +03:00
gunix 3e2091e009 #15 fixed 2020-10-12 14:38:52 +03:00
gunix 366f132d1e added support for OpenVPN 2020-10-09 23:11:51 +03:00
bub 8d7b921c28
remove deprecated use of xargs -i for better compatibility 2020-10-03 13:39:34 +03:00
gunix 7c933b10d5 improved output and comments for better user experience 2020-09-25 01:28:57 +03:00
gunix e9aa8545ca do not display regions where PF is blocked if PIA_PF=true 2020-09-24 22:54:19 +03:00
gunix 9a3d77ac4e fix comment 2020-09-23 00:34:02 +03:00
gunix 1ab988a12f refactoring for the last commit 2020-09-23 00:32:44 +03:00
Michael Moon aac22fe847
Check more things (#2)
This commits will be reviewed in the next commit, to align coding style with the entire project.

The merge request from @triffid included the following commits:
* connect_to_wireguard_with_token: Check if "jq" and "curl" are available, allow script to issue multiple errors in a single invocation
* connect_to_wireguard_with_token: ensure /etc/wireguard exists
* connect_to_wireguard_with_token: only complain about ipv6 if it's not already disabled
* get_region_and_token: allow specifying maximum latency via environment variable, retain 50ms default
* connect_to_wireguard_with_token: pack tool checks within a function
* get_region_and_token: rename maximum_allowed_latency -> MAX_LATENCY
2020-09-23 00:17:46 +03:00
gunix 53d2da47e3 changed documentation and comments to make it easier to read through 2020-09-20 01:39:14 +03:00
gunix d35694dff0 added FreeBSD 12.1 to the list, as it got tested by the community 2020-09-19 14:29:31 +03:00
gunix 91c647fa28 change variable name for DNS 2020-09-19 13:29:15 +03:00
gunix 0fb2a42b49 added disclaimer to specify that the scripts work only ont he NextGen network 2020-09-19 01:10:37 +03:00
gunix 5bc8216463 added disclaimer to README.md 2020-09-19 00:48:23 +03:00
gunix 49bf4998e0 small fixes 2020-09-19 00:35:47 +03:00
gunix 891a054a07 readme improvements 2020-09-19 00:26:00 +03:00
gunix b88e135b89 refactoring and readme improvements 2020-09-19 00:08:43 +03:00
gunix 09dee21d40 added license 2020-09-18 23:24:40 +03:00
gunix f4a5da4260 improved output for regions 2020-09-18 22:25:39 +03:00
gunix 86364ee4dc display a message regarding how to disconnect the VPN 2020-09-18 21:48:44 +03:00