1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-06 06:03:30 +03:00
Commit graph

164 commits

Author SHA1 Message Date
Nyr
a5e7fd9785 Update README.md 2020-08-20 15:31:01 +02:00
Nyr
88796c639b Update README.md 2020-08-20 15:31:01 +02:00
Nyr
3bd0936b35 resolv.conf parsing optimizations 2020-08-20 15:31:01 +02:00
Nyr
7aff38d8d1 Fix #764 2020-08-20 15:31:01 +02:00
Nyr
4b74e0a6b3 Fix #762
Variables which can be empty, shouldn't be quoted in this situation.
2020-08-20 15:31:01 +02:00
Orcun
e1127ae02e egrep IP regex optimizations 2020-08-20 15:31:01 +02:00
Nyr
ff29162017 Add Quad9 DNS servers 2020-08-20 15:31:01 +02:00
Nyr
aa645b6139 Small style changes 2020-08-20 15:31:01 +02:00
Nyr
2bd4b6b56b Grammar improvements 2020-08-20 15:31:01 +02:00
Nyr
9b3e5966ad Small improvements 2020-08-20 15:31:01 +02:00
Nyr
388cfaba3a Fix TUN device check
Fix for the mistaken stderr redirection, sorry about that. Also, run in a
subshell so we don't need to manually close the file descriptor.
2020-08-20 15:31:01 +02:00
Nyr
8013ec56a0 Improve TUN device check
While it looks hackish, I don't think there's a better way (in Bash) to open
the /dev/net/tun character device.

Checking for presence of /dev/net/tun like were doing is not good enough.
2020-08-20 15:31:01 +02:00
Nyr
7d8fcbb476 Improved easy-rsa setup
No need to write the tarball to disk.
2020-08-20 15:31:01 +02:00
Nyr
fabc853efd Improve nf_tables test for OVZ
This test is more reliable and flexible.
2020-08-20 15:31:01 +02:00
Nyr
3990285a1b OpenVZ nf_tables workaround
nf_tables is not available in old OpenVZ kernels, so we need to use
iptables-legacy instead.

This issue only affects Debian 10 as it is the only distribution using iptables
with a nf_tables backend by default.

This is supposedly resolved in the newest kernels: https://bit.ly/3fgNZCh

Additionally, a bugfix for the ip6tables path is also included.
2020-08-20 15:31:01 +02:00
Nyr
92c3ad0d6a Improved firewall installation logic
New logic makes way more sense:
- If either firewalld or iptables are present, use whatever we have
- If not, install firewalld in CentOS/Fedora and iptables in Debian/Ubuntu
2020-08-20 15:31:01 +02:00
Nyr
ddc077182b Improved firewall management
- Always use firewalld for CentOS and Fedora
- Cleaner check to find out if firewalld is active
2020-08-20 15:31:01 +02:00
Nyr
07a10d8650 Fixes #642 2020-08-20 15:31:01 +02:00
Nyr
462148741c Reworked OS detection
- Made OS detection more flexible and fine-grained
- Fedora is now officially supported
2020-08-20 15:31:01 +02:00
Nyr
16b83a454e Addresses #694
- Use a checkip service which works fine over HTTP to avoid issues in systems
where ca-certificates is not available
- Increase timeout to 10 seconds, because the new service is a bit slower from
some locations
- Improve grep sanitization
2020-08-20 15:31:01 +02:00
Nyr
9ba93d2ea9 Miscellaneous improvements
- Fix #694: added sanitization during the public IP address configuration and
switch to AWS checkip since the Akamai service doesn't support HTTPS.
- Add validation to cover an unlikely case where: server is behind NAT,
checkip service is unreachable and user doesn't provide input when asked for
the public IP address or hostname.
- Other small improvements not worth describing in detail.
2020-08-20 15:31:01 +02:00
Nyr
c6d5895054 Update DNS providers
- Verisign removed (performance is subpar compared to competitors)
- NTT is back (fast and reliable)
- AdGuard added (for ad blocking)
2020-08-20 15:31:01 +02:00
Nyr
c716ea8bd9 Small style improvements 2020-08-20 15:31:01 +02:00
Nyr
5bbf083031 IPv6 support
Clients will be provided with IPv6 connectivity if the server has it.

Other very small and unimportant improvements are also included in this commit.
2020-08-20 15:31:01 +02:00
Nyr
b8debf7f7f Remove the iptables NAT table check
LowEndSpirit fixed the issue on their end, so this is longer needed.

Additionally, the check causes unneeded trouble for users whose system doesn't
have the iptables package installed.
2020-08-20 15:31:01 +02:00
Nyr
a294ca80e4 Update to easy-rsa v3.0.7 2020-08-20 15:31:01 +02:00
Nyr
2fab44d54d Fix #727 2020-08-20 15:31:01 +02:00
Nyr
73b43d2913 Update error message
LowEndSpirit no longer requires that.
2020-08-20 15:31:01 +02:00
Nyr
29f7da2c9a Resolves #664 2020-08-20 15:31:01 +02:00
Nyr
a9dc4f7e2a Miscellaneous improvements
This commit contains lots changes which are not very significant on its own but
provide important usability improvements and future proofing.

It also includes changes which required OpenVPN v2.4+ and were pending until
that version became widely available.

- General cleanup
- Improved IP address and NAT configuration
- Added input validation and sanitization
- Fix #603
- Remove "sndbuf" and "recvbuf" parameters
- Add server-side "explicit-exit-notify"
- Switch from "setenv opt" to "ignore-unknown-option"
- Switch from "tls-auth" to "tls-crypt"
- Other minor bugfixes and optimizations
2020-08-20 15:31:01 +02:00
Nyr
41a22bab80 Check for unsupported distributions 2020-08-20 15:31:01 +02:00
Nyr
25d87290a5 Fix LimitNPROC in containers
See #206 for context.
2020-08-20 15:31:01 +02:00
Nyr
75c633e625 Fedora support
The installer now works with Fedora and is probably ready for CentOS 8 too.
2020-08-20 15:31:01 +02:00
Nyr
a75a18c377 Migrate to the new systemd service
OpenVPN 2.4 packages provide a new systemd service unit which uses a different
directory structure. This commit drops support for Ubuntu 16.04 which has v2.3
packages.
2020-08-20 15:31:01 +02:00
Nyr
d3e8c2a19a Update README.md 2020-08-20 15:31:01 +02:00
Nyr
0819fd60ab Switch to systemd for iptables configuration
See #464.
2020-08-20 15:31:01 +02:00
Nyr
d1bf7d3e29 Remove support for old init systems
It was broken since b3953963ba anyway.
2020-08-20 15:31:01 +02:00
Nyr
ea997055e0 Revert "Update to easy-rsa v3.0.6"
This reverts commit 43ccc5fd1c.
2020-08-20 15:31:01 +02:00
Nyr
98c9f4de64 Update README.md 2020-08-20 15:31:01 +02:00
Nyr
43ccc5fd1c Update to easy-rsa v3.0.6 2019-02-02 13:21:30 +01:00
Nyr
456fbf189d Cleaner .ovpn files 2018-12-15 21:26:14 +01:00
Nyr
c90989a0e2 Use a predefined DH group
This is way faster than generating our own, see #532.
2018-10-20 14:52:24 +02:00
Nyr
6e21afcdda Update to easy-rsa v3.0.5 2018-09-25 15:20:15 +02:00
Sidd
22adb31b2e Disable compression to mitigate VORACLE (#509) 2018-08-28 14:18:58 +02:00
Nyr
cc81838501 Revert "Improve iptables configuration"
This reverts commit fdc2bfbdac.
2018-06-14 22:40:45 +02:00
Nyr
fdc2bfbdac Improve iptables configuration
See #464.
2018-06-08 17:46:09 +02:00
Nyr
b3953963ba Switch from /etc/sysctl.conf to systemd-sysctl 2018-06-08 16:07:49 +02:00
Nyr
6061a29028 Small UX improvements 2018-05-10 17:24:43 +02:00
Nyr
5b9f3b62b8
Merge pull request #460 from Kcchouette/patch-1
Fixes a typo.
2018-05-03 14:26:22 +02:00
Kcchouette
269551c25f
Update openvpn-install.sh 2018-05-03 11:03:15 +02:00