Commit graph

117 commits

Author SHA1 Message Date
Stanislas Lange
c7dceb0cc5
Update reboot warning
Remove OS condition. It also happen on Debian now, because we update the kernel from the backports, so we need to reboot
2020-07-31 14:50:31 +02:00
randomshell
00fddab997 Merge branch 'master' 2020-07-30 21:17:22 +00:00
randomshell
bea98cdce6 Fix $CLIENT_NAME variable 2020-07-30 21:16:25 +00:00
Stanislas
c9b01e8d62
Merge pull request #106 from angristan/debian-backports
Fix Debian installation: use backports
2020-07-30 11:33:43 +02:00
randomshell
3583ffc4c3 Don't force server IP to end with .1 2020-07-30 00:07:21 +00:00
randomshell
a249b71cb0 Merge remote-tracking branch 'upstream/master' 2020-07-30 00:00:36 +00:00
randomshell
79234ea7c1 Merge remote-tracking branch 'upstream/debian-backports' 2020-07-29 23:56:46 +00:00
Stanislas Lange
6e518633f3
Fix Debian installation: use backports
And limit to Debian 10. Fix #101
2020-07-29 12:24:22 +02:00
Stanislas
b6f09e7e87
Merge pull request #105 from angristan/dependabot/github_actions/ludeeus/action-shellcheck-0.5.0
Bump ludeeus/action-shellcheck from 0.4.1 to 0.5.0
2020-07-29 10:42:15 +02:00
dependabot[bot]
8464fc4ea2
Bump ludeeus/action-shellcheck from 0.4.1 to 0.5.0
Bumps [ludeeus/action-shellcheck](https://github.com/ludeeus/action-shellcheck) from 0.4.1 to 0.5.0.
- [Release notes](https://github.com/ludeeus/action-shellcheck/releases)
- [Commits](https://github.com/ludeeus/action-shellcheck/compare/0.4.1...c489c81f79527f818be72b97b918b06e75eaee6d)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-29 06:23:41 +00:00
Stanislas
746dbe4f7f
Merge pull request #104 from iandk/patch-2
Add colon
2020-07-27 12:48:59 +02:00
Ian
dfd7736a7d
Add colon 2020-07-27 11:54:06 +02:00
randomshell
29e8fa3851
Update DNS question
Co-authored-by: Stanislas <angristan@pm.me>
2020-07-27 03:20:58 +00:00
Stanislas
0af7427e85
Merge pull request #99 from robiiinos/misc/dependabot
Add Dependabot
2020-07-24 11:41:40 +02:00
Stanislas
66b1be42e4
Merge pull request #98 from robiiinos/misc/actions
Update GitHub Actions
2020-07-24 11:40:53 +02:00
robiiinos
13df507393 Update GitHub Actions 2020-07-18 21:49:19 +02:00
robiiinos
1ffbf87dc6 Add Dependabot 2020-07-18 21:32:09 +02:00
randomshell
ab67b21cbc Save the client configuration in the correct $HOME
Fix #96
Ported from openvpn-install repo
2020-07-09 18:33:57 +00:00
randomshell
0d65a00844 Fix client subnet mask
The server configuration has `$CLIENT_WG_IPV4/32,$CLIENT_WG_IPV6/128` and it is inconsistent with the client configuration `$CLIENT_WG_IPV4/24,$CLIENT_WG_IPV6/64`.

We only want 1 IP for the peer, so the fix is changing clients subnets to /32 and /128.
2020-07-04 22:30:05 +00:00
randomshell
fc8039a3cf Use firewall-cmd only if firewalld is running
Fix #95
2020-07-04 22:23:16 +00:00
randomshell
e7d4bee59f Fix installation on CentOS
https://github.com/angristan/wireguard-install/issues/95#issuecomment-653696198

Fedora might need this change too.
2020-07-04 22:10:10 +00:00
randomshell
42d2d1908c Save user DNS for all clients 2020-07-02 20:23:40 +00:00
randomshell
541019587c Better variables escaping 2020-07-02 19:44:44 +00:00
randomshell
ca2178cff2 Clean $ENDPOINT code
https://github.com/angristan/wireguard-install/pull/58#discussion_r449002047
2020-07-02 15:08:10 +00:00
randomshell
3d343c3fd7 Update README
We changed arguments to a menu in d765194eac
2020-07-02 12:55:58 +00:00
randomshell
6a40208a80 Add confirmation text before install 2020-07-02 12:55:58 +00:00
randomshell
fb240ebdf7 Add installQuestions()
Needed for a later headless installation code
2020-07-02 12:55:58 +00:00
randomshell
942e215f76 Add some newlines for readability 2020-07-02 12:55:58 +00:00
randomshell
8696a05131 Ignore shellcheck infos 2020-07-02 12:55:58 +00:00
randomshell
26e989cd2c Add initial script description 2020-07-02 12:55:58 +00:00
randomshell
45f533cbdd Add validation for $SERVER_PUB_NIC 2020-07-02 12:55:58 +00:00
randomshell
23e31150f9 Add validation for $SERVER_WG_NIC 2020-07-02 12:55:58 +00:00
randomshell
93c49879ea Add check for WireGuard server IP
Code adapted from angristan/openvpn-install#550. Thanks @TheBritishAccent

IPv6 regex tested with fd42:42:42::1 and fdc9:281f:04d7:9ee9::1
2020-07-02 12:55:58 +00:00
randomshell
1b5288996f Add validation on $SERVER_PORT 2020-07-02 12:55:58 +00:00
randomshell
aa583ce4b2 Remove unnecessary echo 2020-07-02 12:55:58 +00:00
randomshell
36d209397e Use $SERVER_WG_IPV4 and $SERVER_WG_IPV6 when suggesting the client IP 2020-07-02 12:55:58 +00:00
randomshell
97ec76dffb Basic regex check for client IP
Needs improvement
2020-07-02 12:55:58 +00:00
randomshell
9c6576dfc9 Add validation on DNS input
Fixes #68

Co-authored-by: Chris Lewicki <chris@lewicki.dev>
2020-07-02 12:54:39 +00:00
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
Stanislas
59570c786b
Merge pull request #85 from randomshell/patch-1
Change check for previously installed wireguard
2020-06-27 16:45:15 +02:00
randomshell
e04fa5356d
Change check for previously installed wireguard 2020-06-26 18:38:29 +00:00