Commit graph

556 commits

Author SHA1 Message Date
4s3ti
2ea469359c Issue #607
Added -p on mkdir /opt/pivpn this fixes issue #607
2020-01-08 13:13:34 +01:00
4s3ti
92381fc2a6 Removed echos
Removed echos i have introduced before exits,
for the *dumb* obvious reasons were causing script to exit.
2020-01-08 02:12:13 +01:00
4s3ti
e6fdfd29b7 Code review, Cleanup.
Moved installPiVPN up, to better match the order when it is called.
Added Some cuotes to make shellcheck happy.
Added exit codes and error messages in case cd fails to not exit
silently.
2020-01-07 20:27:19 +01:00
4s3ti
fd555f924a Merge Test into Local
Origin and Local diverged, pulling to get it right
2020-01-07 01:47:27 +01:00
Orazio
1d0c66a970 Use radiolist to select a VPN 2020-01-07 01:45:06 +01:00
4s3ti
b9f237fe92 Changes for FR #897
Support For DHCP IP Reservation

Main:
  - added If statement to skipp SetStaticIPv4 if dhcpRserv=1

getStaticIPv4Settings:
  - Added Whiptail asking if user wants to use DHCP reservation Settings, this will add dhcpReserv and
    skip setStaticIPv4 while still logging everything.
ConfigExample files:
  - Added staticReserv=0 to config examples. so it can be used with Unattended install
    * 0 means static ip will be setup.
    * 1 means DHCP Reservation will be used and no chage will be made to the interfaces
2020-01-07 01:30:17 +01:00
Orazio
800fd91353 Use radiolist to select a VPN 2020-01-06 11:53:29 +01:00
4s3ti
5cea5bddf8 Code Review: Improvements & Bug Fixes
* Removed Unecessary pipe on availableInterfaces
* Changed OS Support messages accross the script
  - Removed OS Version names from the script, this avoids having to change the code everytime a new OS Version is Released, instead we update the wiki with propper information.
* Changed MaybeOSSupport whiptail tiltes and messages to make it more clear.
  - Messages and titles could cause confusion to users and specially developers
* Moved Funcions Comment to correct place.
* DistroCheck Function:
  - Moved up before other functions so it better refflects the order they are called.
  - changed Case identation to make it easier to read.
  - Added info to # compatibility Comment, Removed unecessary comments
  - added break to exit out of case, easier to understand that the script should move on.
* Added Shellcheck ignores,
* chooseinterface Function:
  - Changed function Logic and cleaned it up
  - Fixed Issue #906
  - Added exit code if no interfaces are found
* Updated LatestUpdate.md
2020-01-06 02:06:47 +01:00
Orazio
8d9bb3422b
Merge pull request #891 from h-town/test
Supersede Google DNS for privacy
2020-01-03 18:10:16 +01:00
Orazio
ba3bf24d89
Merge branch 'test' into test 2020-01-03 18:08:23 +01:00
h-town
465d157a19
Revise route query for IP & GW selection from Quad9 to TEST-NET-1 2020-01-03 10:56:28 -06:00
h-town
78a6f14742
Replace mention of 'Google' with 'Quad9' 2020-01-03 10:43:23 -06:00
Orazio
ef6e84419e Fix typo and mv command 2020-01-02 18:50:12 +01:00
Orazio
a9f5e7346f
Revert to more portable commands 2019-12-31 12:28:26 +01:00
Orazio
ed46588900 Add rm safeguard to updateRepo(), update README 2019-12-31 10:43:10 +01:00
Orazio
3e1126ac1a Add logo (2) 2019-12-30 22:02:23 +01:00
Orazio
66e4156fb1 Add logo 2019-12-30 22:00:41 +01:00
Orazio
fdb512d7d6
Update README.md 2019-12-30 21:55:37 +01:00
Orazio
41984e5f40 Fix update scripts from test branch 2019-12-30 11:44:33 +01:00
Orazio
a6087f8bda bc is not actually required when installing via DKMS 2019-12-29 18:35:37 +01:00
Orazio
a561607272 Mostly changes to the install script, see below
Handle running the install script over an existing installation (as the script already did before branching to test-wireguard), providing:
    - Update, downloads latest scripts from git repo
    - Repair, reinstall PiVPN while keeping existing settings
    - Reconfigure, start over overwriting the existing settings
  Tag iptables rules as an attempt to make sure that the uninstall script only removes PiVPN rules
  Change the armv6l installation to reflect the split of WireGuard snapshots into wireguard-linux-compat and wireguard-tools
2019-12-29 18:25:35 +01:00
Orazio
d17d381049 - When suggesting to use Pi-hole, use the VPN server IP instead of the LAN IP to allow
DNS resolution even if the user does not route the local network through the tunnel.

- Format listCONF in a similar way as listOVPN

- Specifically look for a free octet in the last word of clients.txt and not just any word.
  Necessary otherwhise public keys starting with a number will match against an octet.
  Example: if line is 'name 5abcdefgh 4', then looking for ' 5' will match but '5$' will
  not (correctly).

- 'pivpn -c' will show the Connected Clients List for WireGuard too
2019-12-27 15:48:42 +01:00
h-town
4257ba76c2
Remove Google DNS
Remove Google DNS for privacy purposes, replace with Quad9
2019-12-24 03:23:21 -06:00
h-town
e01089945e
Remove Google DNS
Remove Google DNS for privacy purposes, replace with Quad9
2019-12-24 03:18:11 -06:00
4s3ti
05b189486d README.md update
readme file is slightly outdated, updated it to better represet the
current state of the project.
2019-12-22 20:19:39 +01:00
4s3ti
86f60b9504 Deleted Old Issue Template 2019-12-22 18:54:36 +01:00
4s3ti
8b00c131bd Deleted Old Issue Template 2019-12-22 18:52:58 +01:00
4s3ti
37b9250c2e Issue templates from master 2019-12-22 18:52:03 +01:00
4s3ti
03916e85d4 Update issue templates 2019-12-22 18:48:10 +01:00
4s3ti
36f96aee7d Update issue templates
New issue templates, now issues are categorized by, but, feature request, Support request
2019-12-22 18:44:16 +01:00
4s3ti
a1722af967 Moving to Pivpn.dev
Changed all appearances of pivpn.io to pivpn.dev
2019-12-20 23:37:40 +01:00
4s3ti
33b2b2468d pivpn.io to pivpn.dev, http to https
Changed all appearances of pivpn.io to pivpn.dev
Changed all appearances of http to https
2019-12-20 23:30:00 +01:00
4s3ti
248f9cc3fa s/pivpn.io/pivpn.dev
Changed Readme files to pivpn.dev
2019-12-20 23:16:35 +01:00
Orazio
a2a325e58c
Merge pull request #881 from corbolais/unbound
Unbound
2019-12-12 15:25:27 +01:00
corbolais
1594d951af Merge branch 'test' of https://github.com/pivpn/pivpn into unbound 2019-12-12 14:41:43 +01:00
Orazio
0aaf8473a6
Merge pull request #882 from orazioedoardo/test
Revert some minor changes
2019-12-12 12:25:06 +01:00
Orazio
5f82a0740e Use variable, create openvpn home, add shellcheck reminder 2019-12-10 19:07:08 +01:00
Orazio
c20e7d2150 Use ${pivpnNET} and ${subnetClass} when adding ufw nat rules 2019-12-10 16:49:40 +01:00
Orazio
d022cafa25 Revert some minor changes 2019-12-10 16:06:28 +01:00
Orazio
ca11f79629
Merge pull request #880 from corbolais/shellcheck4test
Shellcheck4test
2019-12-10 14:57:44 +01:00
Orazio
b8cbce304c
Merge pull request #878 from corbolais/ufw-care
take care of /etc/ufw/before.rules nat section. safeguard against acc…
2019-12-10 14:56:57 +01:00
Orazio
95b5934814
Merge branch 'test' into ufw-care 2019-12-10 14:56:38 +01:00
Orazio
85907f6b80
Merge branch 'test' into shellcheck4test 2019-12-10 14:53:11 +01:00
Orazio
8936dd2b08
Merge pull request #877 from corbolais/debian-ownership
debian openvpn has dedicated user and group, so rather use those than…
2019-12-10 14:49:23 +01:00
Orazio
3687a124bd
Merge pull request #876 from corbolais/dns-4test
add local resolver as DNS option.
2019-12-10 14:36:30 +01:00
corbolais
da988f6cf4 add gitignore, add unbound config for recursive verifying resolver (increased privacy).
Signed-off-by: corbolais <corbolais@gmail.com>
2019-12-09 21:48:08 +01:00
corbolais
41dbf2b5c6 merge: drop bsdmainutils pkg
Signed-off-by: corbolais <corbolais@gmail.com>
2019-12-09 19:18:58 +01:00
Orazio
cd1b8fbf7f Use printf with column in the listCONF.sh script 2019-12-09 17:05:34 +01:00
corbolais
729674595b rm openvpn:openvpn user/group iff openvpn pkg is removed. shellcheck cleanup. preliminary fixes. add (global) FIXMEs.
Signed-off-by: corbolais <corbolais@gmail.com>
2019-12-09 13:34:25 +01:00
corbolais
e76f3755ab consistent use of pivpnNET, subnetClass and vpnGw.
Signed-off-by: corbolais <corbolais@gmail.com>
2019-12-09 12:41:40 +01:00