Jelle Dekker
d1652a03b1
The SERVER_NAME variable is used in a 'verify-x509-name' check to allow the client to verify it is talking to the correct server. However, its value was always equal to 'server'. This wasn't unique for each installation and therefore provided no additional safety check. So I've modified it to be random for each installation of PiVPN. Additionally, the variable is now actually being used when specifying the server name in the build-server-full command.
...
Source for obtaining a random UUID (thank you): Earthgecko (https://gist.github.com/earthgecko/3089509 )
2017-09-21 14:39:16 -05:00
David Quattlebaum
5c4a51b695
Final testing passed
...
Changes:
- Document that Devuan is supported.
- Use special PLAT name, Raspvuan for Pi version
- Use service command for any *vuan PLAT, systemd is no on any
Devuan.
- add net-tools to PIVPN_DEPS
2017-06-06 18:27:23 -04:00
David Quattlebaum
2eb11cad0c
changes for devuan
...
- To simplify further additions to PLAT or OSCN, use
the case command for checking
- Treat Devuan as Debian
- Add /sbin:/usr/sbin to PATH before calling ifconfig
- Ensure net-tools is installed so we have ifconfig
2017-06-04 16:18:26 -04:00
Jelle Dekker
d5f0a81f80
Clearly indicate that a user selects a list item with the space bar.
2017-04-17 15:49:52 +02:00
EWouters
ff97f40ecf
Fix: mkdir: cannot create directory ‘/home/$pivpnUser/ovpns’: File exists
2017-03-22 13:47:55 +13:00
EWouters
cd4d13691d
fixed check for when both nopass and a password argument are passed to the script
2017-03-16 22:25:17 +13:00
EWouters
27c34aa297
Removed -p flag to create home dir
...
As described in #165 ( fc14664
) it is not desirable.
2017-03-15 17:24:42 +13:00
EWouters
75b7995a87
Removed SERVER_NAME parameter
...
because it is hardcoded as "server" in other scripts
2017-03-15 02:40:39 +13:00
EWouters
277a212a8f
tabs to spaces
2017-03-14 15:39:53 +13:00
EWouters
097145392c
set -e and set +e around line 800 to 815
...
I am not sure why this statement does not work with -e. We can also
remove the set -e statement altogether.
2017-03-14 15:39:07 +13:00
EWouters
7315353179
Moved echo to file statements to front, add missing
...
fixed a typo
replaced tabs with spaces
2017-03-14 15:25:39 +13:00
EWouters
5b5129f1bc
fix: cp: cannot stat ‘/tmp/pivpnINT’: No such file
2017-03-14 14:26:22 +13:00
EWouters
2a639e753e
Fixed sed command and mkdir if folder exists
2017-03-14 10:48:16 +13:00
EWouters
71021d6ffa
Added all parameters, initial testing done
2017-03-13 19:44:29 +13:00
EWouters
5db23185fd
Added pi-hole's undocumented flags
...
UNTESTED!
2017-03-13 17:00:28 +13:00
Kaladin Light
faaabe4c0e
Fixes Issue #195
2017-01-28 13:58:10 -05:00
Kaladin Light
dc9924f147
Have debug work without being root
2017-01-27 17:46:34 -05:00
Kaladin Light
5ce48cbaaf
Trying to ensure interface is set, maybe related to iptables issues.
...
If not, we at least will see in pivpnDebug output now.
2017-01-27 15:42:42 -05:00
redfast00
b727fa3970
Fix-189
2017-01-22 12:44:36 +01:00
Kaladin Light
df16e8dd59
Fixes Issue #173 and #174
2016-12-25 18:06:32 -05:00
Kaladin Light
371f339fed
Rework things
2016-12-24 00:20:45 -05:00
Kaladin Light
22b5bfef68
Add fix iptables help to debug script (1/2)
2016-12-11 13:36:14 -05:00
Kaladin Light
6b406ffb27
Fix type for moving client script
2016-12-11 10:04:33 -05:00
Kaladin Light
eaf78ab6bb
Try to fix apt errors now. If we can't then exit so the user can address.
2016-12-10 00:58:36 -05:00
Bastiaan Nelissen
6e3ad10a80
fixed download location
...
fixed easy-rsa download location
Conflicts:
auto_install/install.sh
2016-12-08 18:37:22 -05:00
Bastiaan Nelissen
98d63b7bd0
fixed wget command
...
wget was targeted to a directory instead of a file
2016-12-08 18:31:43 -05:00
Kaladin Light
07cdc2771b
Fix new clients command
2016-12-08 12:18:21 -05:00
Kaladin Light
da5facecbc
Add 'pivpn clients' command to show list of connected clients
2016-12-08 11:43:30 -05:00
Kaladin Light
6c456d3b90
Minor fixes for couple issues
2016-12-07 13:03:32 -05:00
Kaladin Light
26152889f6
Testing a failure
2016-12-07 11:55:36 -05:00
Kaladin Light
082200ba7c
More adjustments/fixes for easy-rsa3
2016-12-05 15:54:54 -05:00
Kaladin Light
a503fa7f93
Ensure openvpn doesn't install easy-rsa now
2016-12-05 15:35:47 -05:00
Kaladin Light
ff1ade9e9f
Bug fixes for easyrsa3 modifications
...
Cleanup chooseUser function and fix issue with creating a user
password not being set correctly.
2016-12-05 14:55:30 -05:00
Kaladin Light
27e0fa8bb5
Ensure we don't get prompted for confirmation on init-pki
2016-12-05 12:13:09 -05:00
Kaladin Light
0b96cae1a3
Phase 1 (of 3?): Server modifications for easy-rsa3
2016-12-04 00:20:37 -05:00
Kaladin Light
f61b26f669
Small adj
2016-11-22 23:47:09 -05:00
Kaladin Light
083de9336d
Can't use nslookup if it isn't installed yet...
2016-11-22 23:18:24 -05:00
Kaladin Light
542bcda9a1
Don't assume user's DNS is their gateway. Use what they have.
2016-11-22 13:23:51 -05:00
Kaladin Light
1cada67979
Don't like the install log, get rid of for now
2016-11-19 16:26:40 -05:00
Kaladin Light
5e29fdf3fb
Help debugging with install log
2016-11-19 15:52:13 -05:00
Kaladin Light
7f662ad13d
Hopefully Fixes Issue #153
2016-11-18 17:22:36 -05:00
Kaladin Light
cf9f052445
Update to setStaticIPv4 function
2016-11-10 12:25:31 -05:00
Kaladin Light
d844f874a3
Update to getStaticIPv4Settings function
2016-11-10 12:18:17 -05:00
Kaladin Light
b2362ab591
Update to chooseInterface function
2016-11-10 11:13:31 -05:00
Kaladin Light
4516137dca
Minor updates to some checks.
2016-11-10 10:51:19 -05:00
Kaladin Light
02bf7c0ad8
Fix apt-get switches to not generate unexpected output
2016-11-09 22:33:21 -05:00
Kaladin Light
6997a0b9a7
Fixes Issue #71 :
...
- Uses network address instead of IP in the push route to avoid warnings
- If a second DNS is not entered, remove second occurence of the dhcp-option DNS
2016-11-09 15:02:40 -05:00
Kaladin Light
67722ca7f4
Once again pi-hole had a more robust stty setup so lets borrow that :)
2016-11-08 12:03:42 -05:00
Kaladin Light
7c64afdc92
Get rows/cols with stty instead of tput
2016-11-07 22:49:00 -05:00
redfast00
6d1f6f6f07
Fixes #142
2016-11-05 14:42:37 +01:00