randomshell
1c77cb7073
Change public IP detection
...
The sed command is easier to understand than multiple grep
If IPv4 isn't available use IPv6
2020-07-02 11:10:27 +00:00
randomshell
40068e02f8
Add installation text
2020-07-01 19:19:10 +00:00
randomshell
2acb9d8184
Chnage addClient() to newClient()
...
Follow naming of openvpn-install repository
2020-07-01 19:09:38 +00:00
randomshell
d765194eac
add manageMenu()
2020-07-01 19:07:23 +00:00
randomshell
4244b2b70a
Remove useless /etc/wireguard/params source
...
We already have the variables we need in the lines above
2020-07-01 18:56:29 +00:00
randomshell
ec9dd5d5df
Add installWireGuard()
2020-07-01 18:53:58 +00:00
randomshell
600703c222
Add initialCheck()
2020-07-01 18:35:42 +00:00
randomshell
09f0611023
Add checkOS()
2020-07-01 18:35:00 +00:00
randomshell
cdfdf4d7a4
Add checkVirt()
2020-07-01 18:35:00 +00:00
randomshell
97551d65c1
Add isRoot()
2020-07-01 18:34:52 +00:00
randomshell
e04fa5356d
Change check for previously installed wireguard
2020-06-26 18:38:29 +00:00
Deface
7c6da8df0e
Arch: do not install wireguard-arch ( #84 )
2020-06-14 16:24:12 +02:00
Stanislas Lange
efa9e5031a
style(script) format with shfmt
2020-04-28 15:03:21 +02:00
Stanislas Lange
5b1ec52ac2
chore(args): rename add_client to add-client
2020-04-28 15:02:30 +02:00
Stanislas Lange
89258ba91d
Mitigate Debian packaging issue
...
bc is missing as dependency: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956869
fix #70
2020-04-26 12:54:16 +02:00
Jelle Dekker
071466eccd
Generate unique pre-shared key for each client ( #69 )
2020-04-22 21:50:49 +02:00
Stanislas
f0891e7235
Add support for adding multiple clients ( #58 )
...
This commit puts the client creation logic into a function.
By running the script followed by `add_client`, the user will be asked a
few questions and a new peer will be added.
Removing client is **not** supported.
The client files have random names.
Fix for https://github.com/angristan/wireguard-install/issues/3
2020-04-08 14:09:22 +02:00
Stanislas Lange
7c2e299a02
Add missing colons to setup questions
...
Signed-off-by: Stanislas Lange <angristan@pm.me>
2020-04-03 18:33:36 +02:00
randomshell
3b342e531c
Prompt with random port during setup ( #64 )
2020-04-03 18:16:59 +02:00
Stanislas Lange
8130dc7b70
Fix shellcheck
2020-03-21 21:53:06 +01:00
Andrew Prokhorenkov
a810f727dd
Use native WireGuard in Fedora >= 32 + support firewalld ( #55 )
2020-03-21 21:47:23 +01:00
Stanislas Lange
f3fd5346c0
Fix shellcheck
2020-03-21 15:44:32 +01:00
Stanislas Lange
bf3cccb8fd
Add warning on Fedora/CentOS when WG is not running because of kernel versions mismatch
...
cf https://github.com/angristan/wireguard-install/issues/30
2020-03-21 15:42:14 +01:00
angristan
b9da4d03cd
Install packages non-interactively
2020-02-15 16:21:45 +01:00
angristan
3b2fb57231
Rename variable
2020-02-15 16:16:05 +01:00
angristan
46bd2cec69
Show client conf as QR Code after install
...
Fix #49
2020-02-11 23:46:27 +01:00
angristan
ac1fb87a4c
Install software-properties-common on Ubuntu to add PPA
...
Fix #48
2020-01-12 12:31:32 +01:00
Shyam Jos
721d16e979
added missing package - resolvconf
...
without resolvconf package, systemd unit file will fail in Debian 10 and ubuntu 18.04 or higher versions
see error below
```
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip link add wg0 type wireguard
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] wg setconf wg0 /dev/fd/63
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip -4 address add 10.9.0.3/24 dev wg0
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip link set mtu 1420 up dev wg0
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] resolvconf -a wg0 -m 0 -x
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: /usr/bin/wg-quick: line 31: resolvconf: command not found
Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip link delete dev wg0
Oct 17 12:11:39 Asus-VivoBook systemd[1]: wg-quick@wg0.service: Main process exited
```
more info here : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930735
2019-10-19 23:12:01 +05:30
angristan
b1ab139fef
Arch Linux: install wireguard-arch kernel module
...
Fix #33
2019-08-24 19:08:31 +02:00
Stanislas
6fc7c44a87
Merge pull request #26 from outis151/patch-1
...
Fix compatibility issues with UFW Firewall
2019-08-08 23:14:03 +02:00
angristan
44ef24620e
Prevent word splitting
...
Make CI happy (shellcheck - SC2046)
2019-08-08 23:02:50 +02:00
angristan
3d664036f0
Make sure iptables is installed
...
Fix #28
2019-08-08 23:01:12 +02:00
angristan
70ed237ffc
Make sure kernel headers are installed
...
Fix #24 . On Fedora/CentOS, kernel-headers is a dependency
2019-08-08 22:56:53 +02:00
outis151
dc3fb15a8a
Fix compatibility issues with UFW Firewall
...
This fixed no tunnel connectivity issue for me using UFW
2019-07-20 19:08:48 +03:00
Luca Lacerda
7bda5435e6
Update names and default selection
2019-06-08 03:40:24 -03:00
Luca Lacerda
25f93b8b9d
Merge branch 'master' into master
2019-06-08 03:36:54 -03:00
Luca Albuquerque
a09de9c57a
Update confirmation
2019-06-05 13:19:01 -03:00
Leopere
bb2861390e
Detect rather than ask IP Version
2019-06-05 11:04:52 -04:00
Luca Albuquerque
8c9c13e582
Update names
2019-06-04 20:36:53 -03:00
Luca Albuquerque
ed75f787b8
Add symmetric key option
2019-06-04 20:28:47 -03:00
angristan
0e4ef1e1e4
Fix endpoint when IPv6 is used
...
Fix #10
2019-05-24 00:26:35 +02:00
angristan
1981429774
Enfore restrictive permissions on /etc/wireguard
2019-05-24 00:25:48 +02:00
angristan
9c9cf66fc8
Make sure /etc/wireguard exists
2019-05-24 00:25:25 +02:00
angristan
8cb8b130d1
Fix endpoint port
...
Fix #18
2019-05-23 23:44:05 +02:00
Shagon94
63092adfd4
fixed client ips
2019-05-17 10:57:53 +02:00
Stanislas
b70cba9f73
Fix client IPs
...
Should fix #14
2019-05-17 10:43:02 +02:00
angristan
203d328a33
Add support for Debian, Fedora, CentOS and Arch
2019-05-12 17:17:59 +02:00
Marcel Goessel
9d26e7c72a
Update wireguard-install.sh
...
fix little typo
2019-05-08 10:38:08 +02:00
angristan
14d72d7b22
Abort the script if OpenVZ or LXC
...
Fix #8
2019-05-05 17:48:46 +02:00
angristan
b78610cb98
Make shellcheck happy
2019-05-05 13:09:07 +02:00