mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 20:00:16 +00:00
Merge branch 'master' of https://github.com/pivpn/pivpn into test
Syncing test with master
This commit is contained in:
commit
18e5b03da9
4 changed files with 55 additions and 12 deletions
|
@ -1,21 +1,53 @@
|
||||||
<!-- Hi, you are about to open a new issue. -->
|
<!-- PLEASE READ THIS TEMPLATE CAREFULLY BEFORE OPENING AN ISSUE! -->
|
||||||
<!-- For any output requested below, you may alternatively post it on http://pastebin.com and provide the pastebin url in it's place -->
|
|
||||||
|
<!-- Hi, you are about to open a new issue, Please provide us with all the info required below, incomplete issues will decrease our effectiveness to troubleshoot your issue and increase the time we need to spend helping you out, or with your issue closed even if it is a legitimate issue. Please remember we do not have any super power that makes us guess exactly what your issue is without any decent details! -->
|
||||||
|
|
||||||
|
<!-- For any output requested below, you may alternatively post it on http://pastebin.com and provide the Pastebin URL in its place -->
|
||||||
|
|
||||||
|
|
||||||
# PiVPN Issue Template
|
# PiVPN Issue Template
|
||||||
<!-- If the install failed: can you please copy-paste the console output after running `curl install.pivpn.io | bash` between the backticks -->
|
<!-- If the install failed: can you please copy-paste the console output after running `curl install.pivpn.io | bash` between the backticks -->
|
||||||
|
|
||||||
|
<!-- Please explain your issue. Feel free to format your text -->
|
||||||
|
## Issue
|
||||||
|
|
||||||
|
|
||||||
|
## Have you searched for similar issues and solutions?
|
||||||
|
(yes/no / which issues?)
|
||||||
|
|
||||||
|
|
||||||
## Console output of `curl install.pivpn.io | bash`
|
## Console output of `curl install.pivpn.io | bash`
|
||||||
```
|
```
|
||||||
|
Output Here
|
||||||
```
|
```
|
||||||
<!-- If the generation of an .ovpn file fails / the ovpns folder stays empty, please paste the output of `pivpn add` or `pivpn add nopass` between the backticks -->
|
<!-- If the generation of an .ovpn file fails / the ovpns folder stays empty, please paste the output of `pivpn add` or `pivpn add nopass` between the backticks -->
|
||||||
## Console output of `pivpn add` or `pivpn add nopass`
|
## Console output of `pivpn add` or `pivpn add nopass`
|
||||||
```
|
```
|
||||||
|
Output Here
|
||||||
```
|
```
|
||||||
<!-- Please paste the output of `pivpn debug` between the backticks, don't forget to substitute your public IP address if you don't want the world to know it -->
|
<!-- Please paste the output of `pivpn debug` between the backticks, don't forget to substitute your public IP address if you don't want the world to know it -->
|
||||||
## Console output of `pivpn debug`
|
## Console output of `pivpn debug`
|
||||||
```
|
```
|
||||||
|
Output Here
|
||||||
|
```
|
||||||
|
|
||||||
|
## Console Output of `sudo iptables -t nat -S`
|
||||||
|
```
|
||||||
|
Output Here
|
||||||
|
```
|
||||||
|
|
||||||
|
## Console Output of `sudo iptables -S`
|
||||||
|
```
|
||||||
|
Output Here
|
||||||
|
```
|
||||||
|
|
||||||
|
## output of `sudo netstat -uanp | grep openvpn`
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Output Here
|
||||||
|
```
|
||||||
|
|
||||||
|
## Have you taken any steps towards solving your issue?
|
||||||
|
which?
|
||||||
|
|
||||||
<!-- If something else fails, please state the command you used and it's output -->
|
<!-- If something else fails, please state the command you used and it's output -->
|
||||||
<!-- Please explain your issue. Feel free to format your text -->
|
|
||||||
## Issue
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ into a VPN server using the free, open-source [OpenVPN](https://openvpn.net) sof
|
||||||
Have you been looking for a good guide or tutorial for installing openvpn on a raspberry pi or ubuntu based server? Run this script and you don't need a guide or tutorial, this will do it all for you, in a fraction of the time and with hardened security settings in place by default.
|
Have you been looking for a good guide or tutorial for installing openvpn on a raspberry pi or ubuntu based server? Run this script and you don't need a guide or tutorial, this will do it all for you, in a fraction of the time and with hardened security settings in place by default.
|
||||||
|
|
||||||
The master branch of this script installs and configures OpenVPN on Raspbian
|
The master branch of this script installs and configures OpenVPN on Raspbian
|
||||||
Jessie and has been tested on Ubuntu 14.04 running from an Amazon AWS image. Personally, I'd recommend using the Jessie Lite image on a raspberry pi in your home so you can VPN into your home from unsecure remote locations and safely use the internet. However, the scripts do try to detect different distributions and make adjustments accordingly. They should work on the majority of Ubuntu and Debian based distributions including those using UFW by default instead of raw iptables.
|
Jessie, Stretch, Devuan and has been tested on Ubuntu 14.04 and 16.04 running from an Amazon AWS image. Personally, I'd recommend using the Stretch or Jessie Lite image on a raspberry pi in your home so you can VPN into your home from unsecure remote locations and safely use the internet. However, the scripts do try to detect different distributions and make adjustments accordingly. They should work on the majority of Ubuntu and Debian based distributions including those using UFW by default instead of raw iptables.
|
||||||
|
|
||||||
This scripts primary mission in life is to allow a user to have a home VPN for as cost effective as possible and without being a technical wizard. Hence the design of pivpn to work on a Raspberry Pi ($35) and then one command installer. Followed by easy management of the VPN thereafter with the 'pivpn' command. That being said...
|
This scripts primary mission in life is to allow a user to have a home VPN for as cost effective as possible and without being a technical wizard. Hence the design of pivpn to work on a Raspberry Pi ($35) and then one command installer. Followed by easy management of the VPN thereafter with the 'pivpn' command. That being said...
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ a Raspberry Pi Model B or later with an ethernet port, an SD or microSD card
|
||||||
(depending on the model) with Raspbian installed, a power adapter appropriate to
|
(depending on the model) with Raspbian installed, a power adapter appropriate to
|
||||||
the power needs of your model, and an ethernet cable or wifi adapter to connect your Pi to your
|
the power needs of your model, and an ethernet cable or wifi adapter to connect your Pi to your
|
||||||
router or gateway. It is recommended that you use a fresh image of Raspbian
|
router or gateway. It is recommended that you use a fresh image of Raspbian
|
||||||
Jessie Lite from https://raspberrypi.org/downloads, but if you don't,
|
Stretch Lite from https://raspberrypi.org/downloads, but if you don't,
|
||||||
be sure to make a backup image of your existing installation before proceeding.
|
be sure to make a backup image of your existing installation before proceeding.
|
||||||
You should also setup your Pi with a static IP address (see either source
|
You should also setup your Pi with a static IP address (see either source
|
||||||
1 or 2 at the bottom of this Readme) but it is not required as the script can do this for you.
|
1 or 2 at the bottom of this Readme) but it is not required as the script can do this for you.
|
||||||
|
|
|
@ -17,17 +17,17 @@ printf ": NOTE : The output below is NOT real-time!\n"
|
||||||
printf ": : It may be off by a few minutes.\n"
|
printf ": : It may be off by a few minutes.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "\e[1m::: Client Status List :::\e[0m\n"
|
printf "\e[1m::: Client Status List :::\e[0m\n"
|
||||||
printf "\t\t\t\t\t\t\tBytes\t\tBytes\t\n"
|
printf "\t\t\t\t\t\t\t\tBytes\t\tBytes\t\n"
|
||||||
printf "\e[4mName\e[0m\t\t\e[4mRemote IP\e[0m\t\t\e[4mVirtual IP\e[0m\t\e[4mReceived\e[0m\t\e[4mSent\e[0m\t\t\e[4mConnected Since\e[0m \n"
|
printf "\e[4mName\e[0m\t\t\t\e[4mRemote IP\e[0m\t\t\e[4mVirtual IP\e[0m\t\e[4mReceived\e[0m\t\e[4mSent\e[0m\t\t\e[4mConnected Since\e[0m \n"
|
||||||
if grep -q "^CLIENT_LIST" "${STATUS_LOG}"; then
|
if grep -q "^CLIENT_LIST" "${STATUS_LOG}"; then
|
||||||
if [ -n $(type -t numfmt) ]; then
|
if [ -n $(type -t numfmt) ]; then
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
read -r -a array <<< $line
|
read -r -a array <<< $line
|
||||||
[[ ${array[0]} = CLIENT_LIST ]] || continue
|
[[ ${array[0]} = CLIENT_LIST ]] || continue
|
||||||
printf "%s\t\t%s\t%s\t%s\t\t%s\t\t%s %s %s - %s" ${array[1]} ${array[2]} ${array[3]} $(hr ${array[4]}) $(hr ${array[5]}) ${array[7]} ${array[8]} ${array[10]} ${array[9]}
|
printf "%s\t\t%s\t%s\t%s\t\t%s\t\t%s %s %s - %s\n" ${array[1]} ${array[2]} ${array[3]} $(hr ${array[4]}) $(hr ${array[5]}) ${array[7]} ${array[8]} ${array[10]} ${array[9]}
|
||||||
done <$STATUS_LOG
|
done <$STATUS_LOG
|
||||||
else
|
else
|
||||||
awk -F' ' -v s='CLIENT_LIST' '$1 == s {print $2"\t\t"$3"\t"$4"\t"$5"\t\t"$6"\t\t"$8" "$9" "$11" - "$10}' ${STATUS_LOG}
|
awk -F' ' -v s='CLIENT_LIST' '$1 == s {print $2"\t\t"$3"\t"$4"\t"$5"\t\t"$6"\t\t"$8" "$9" "$11" - "$10"\n"}' ${STATUS_LOG}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "\nNo Clients Connected!\n"
|
printf "\nNo Clients Connected!\n"
|
||||||
|
|
|
@ -121,6 +121,17 @@ function keyPASS() {
|
||||||
expect eof
|
expect eof
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#Convert key to des3
|
||||||
|
KEY_FILE="pki/private/${NAME}${KEY}"
|
||||||
|
expect << EOF
|
||||||
|
set timeout -1
|
||||||
|
spawn openssl rsa -in ${KEY_FILE} -des3 -out ${KEY_FILE}
|
||||||
|
expect "Enter pass phrase" { send "${PASSWD}\r" }
|
||||||
|
expect "Enter PEM pass phrase" { send "${PASSWD}\r" }
|
||||||
|
expect "Verifying - Enter PEM pass phrase" { send "${PASSWD}\r" }
|
||||||
|
expect eof
|
||||||
|
EOF
|
||||||
|
|
||||||
cd pki || exit
|
cd pki || exit
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue