Commit Graph

99 Commits

Author SHA1 Message Date
hwdsl2
aae852e9d1 Improve sysctl settings 2022-10-31 01:31:29 -05:00
hwdsl2
6747ce9517 Cleanup 2022-10-28 08:59:14 -05:00
hwdsl2
2c2c0f976f Update docs 2022-10-25 00:21:31 -05:00
hwdsl2
acfdef55ae Add templates 2022-10-17 22:47:09 -05:00
hwdsl2
679f0b8784 Update docs 2022-10-16 16:08:38 -05:00
hwdsl2
1541927625 Update docs 2022-10-14 22:07:42 -05:00
hwdsl2
3572d2812e Update tests 2022-10-14 01:26:27 -05:00
hwdsl2
0be7bfbcd4 Update docs 2022-10-11 01:32:08 -05:00
hwdsl2
3b908422ca Update docs 2022-10-09 22:22:08 -05:00
hwdsl2
41c5cfb522 Cleanup 2022-10-09 16:17:37 -05:00
hwdsl2
34ebb148eb Update tests 2022-10-04 23:59:22 -05:00
hwdsl2
10a1c7dfe1 Improve IP check
- Install iproute (for the "ip" command) in the unlikely cases that
  it is not already installed.
- Abort and exit if server IP cannot be detected.
- Cleanup
2022-10-04 23:51:37 -05:00
hwdsl2
05f9f80095 Update docs 2022-10-04 18:07:17 -05:00
hwdsl2
a9cd2432f9 Add tests 2022-10-04 01:05:05 -05:00
hwdsl2
d069673874 Add header 2022-10-03 21:25:40 -05:00
hwdsl2
d86412b9a4 Update docs 2022-10-02 23:17:30 -05:00
hwdsl2
679e833609 Cleanup 2022-10-01 23:58:08 -05:00
hwdsl2
e602a0cd38 Update docs 2022-10-01 23:38:27 -05:00
hwdsl2
e27426da48 Add usage 2022-10-01 23:31:08 -05:00
hwdsl2
9e4fced00b Cleanup 2022-10-01 23:28:19 -05:00
hwdsl2
f2a0815898 Update docs 2022-10-01 15:36:59 -05:00
hwdsl2
02e3ddd89d Improve reliability
- Wrap the script in a function to guard against partial download.
2022-10-01 15:02:42 -05:00
hwdsl2
8b973fb110 Support auto install
- Support automatic install using default options. To do this,
  users can add the argument "--auto" when running the script.
- Cleanup
2022-10-01 14:55:32 -05:00
hwdsl2
3e57822d27 Improve listing clients
- When listing existing clients, show total and improve output.
2022-09-26 22:11:58 -05:00
hwdsl2
516ff9271e Update docs 2022-09-25 22:53:24 -05:00
hwdsl2
6f163241b3 Add list clients option
- Add an option to list existing clients.
2022-09-25 22:46:35 -05:00
hwdsl2
51b1b44093 Cleanup 2022-09-24 20:54:01 -05:00
hwdsl2
0eca3c5a87 Update docs 2022-09-23 00:14:35 -05:00
hwdsl2
10d45a7040 Improve user input
- On servers with multiple IPv4, use the IP address on the default
  route, instead of asking the user to select.
2022-09-22 00:19:38 -05:00
hwdsl2
4de37a141b Improve IP check
- Use two different services for getting the server's public IP.
  This improves reliability in case one of them is unavailable.
- Cleanup
2022-09-20 23:26:51 -05:00
hwdsl2
0ce6897321 Improve user input
- On servers with multiple IPv4 addresses, check if one of them
  matches the server's public IP. If so, select that IP and skip
  the IP selection question.
- If the server is behind NAT, try to find its public IP and
  ask the user only if the IP cannot be found.
- Cleanup
2022-09-20 01:29:41 -05:00
hwdsl2
608822a146 Update docs 2022-09-20 00:11:10 -05:00
hwdsl2
919ca4be78 Improve client DNS
- Allow specifying custom DNS server(s) for VPN clients.
- Use Google Public DNS as the default option.
- Cleanup
2022-09-20 00:01:31 -05:00
hwdsl2
583aba219e Update docs 2022-09-19 22:54:10 -05:00
hwdsl2
ff5b9e81c0 Cleanup 2022-09-19 22:54:00 -05:00
hwdsl2
36b8cb278d Improve client removal
- When removing a client, also remove previously generated client
  config file for the client.
- Cleanup
2022-09-10 00:10:08 -05:00
hwdsl2
04922c83cc Improve setup
- When uninstalling the VPN, disable IP forwarding.
2022-09-09 08:53:55 -05:00
hwdsl2
b3053b048d Optimize sysctl settings
- Improve VPN performance by optimizing sysctl settings, such as tuning
  TCP buffer sizes and enabling the TCP BBR congestion control algorithm
  on supported systems (kernel versions 4.20 and newer).
- References:
  https://cloud.google.com/blog/products/networking/tcp-bbr-congestion-control-comes-to-gcp-your-internet-just-got-faster
  https://github.com/google/bbr/blob/master/Documentation/bbr-quick-start.md
  https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/bbr.md
2022-09-08 23:34:53 -05:00
hwdsl2
899b772354 Improve user input
- When adding or removing a client, abort and exit if the user
  enters an empty client name or client number.
2022-09-02 23:42:09 -05:00
hwdsl2
e60bb933c7 Improve client config
- When running the script using "sudo", export client configuration
  to the user's home directory instead of /root.
2022-09-02 22:42:55 -05:00
hwdsl2
d9e121e0f0 Add support for CentOS 9
- Merge upstream change Nyr/wireguard-install commit 5c53ebd,
  with enhancements.
- Add support for version 9 of CentOS Stream, AlmaLinux and
  Rocky Linux.
2022-08-21 22:58:20 -05:00
hwdsl2
505958b307 Fix resolv.conf detection
- Apply upstream change Nyr/wireguard-install commit 98f45f8.
- Some systems have other DNS servers along with 127.0.0.53 in /etc/resolv.conf.
2022-08-21 22:46:55 -05:00
hwdsl2
0e00b824c1 Update docs 2022-07-13 22:07:44 -05:00
hwdsl2
bc7c9d135e Update README 2022-06-20 11:16:53 -05:00
hwdsl2
8d8c9a7f13 Update nftables check
- The check for nftables is only needed during initial install.
2022-06-04 23:29:31 -05:00
hwdsl2
2d8182dc02 Update README 2022-06-04 22:48:42 -05:00
hwdsl2
19f8ea3f38 Update README 2022-06-03 08:29:35 -05:00
hwdsl2
0443468ccb Update README 2022-06-02 09:09:51 -05:00
hwdsl2
b84fd70d86 Improve script reliability
- Retry 'apt-get update' and exit on package install errors.
2022-06-02 08:58:37 -05:00
hwdsl2
a9c4005b82 Update README 2022-05-28 15:19:10 -05:00