Skip to content

Add Amazon Linux support - #534

Open
CW-B-W wants to merge 9 commits into
angristan:masterfrom
CW-B-W:master
Open

Add Amazon Linux support#534
CW-B-W wants to merge 9 commits into
angristan:masterfrom
CW-B-W:master

Conversation

@CW-B-W

@CW-B-W CW-B-W commented Jan 8, 2025

Copy link
Copy Markdown

Tested on Amazon Linux 2023 & Amazon Linux 2

Comment thread wireguard-install.sh Outdated

# Enable WireGuard kernel module
echo "Enabling WireGuard kernel module..."
modprobe wireguard

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't done by default? 👀

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unnecessary.
I have removed this section and committed.
Thanks!

@angristan

Copy link
Copy Markdown
Owner

Thanks, can you update the readme as well?

@angristan angristan added the enhancement New feature or request label Jan 8, 2025
@CW-B-W

CW-B-W commented Jan 9, 2025

Copy link
Copy Markdown
Author

Thanks, can you update the readme as well?

Sure, updated.

Resolved merge conflict in wireguard-install.sh by keeping upstream's installPackages function usage for better error handling.
…n wireguard-manager.sh

- Remove duplicate SERVER_PORT question that appeared twice
- Add default SERVER_PORT=51820 before port prompt (consistent with wireguard-install.sh)
- Update getHomeDirForClient to accept CLIENT_NAME parameter (fixes function signature mismatch)
The ec2 commit dd5a6f5 added curl to all package installation commands
since the script uses curl on line 119 to get public IP. The upstream
version removed curl, causing the script to fail if curl isn't installed.
This preserves the ec2 modification while keeping upstream's installPackages
function for better error handling.
CW-B-W added 4 commits April 7, 2026 19:27
…ewing

- Remove SERVER_PORT=51820 default, allow user to enter desired port
- Add IP and port conflict checks for existing WireGuard interfaces
- Add 'Show user configuration' option with normal/VLAN modes
- Normal mode: Shows full VPN configuration with DNS
- VLAN mode: Shows subnet-only config without DNS, adds PersistentKeepalive
- Add PersistentKeepalive = 25 to all client configurations
- Update both wireguard-install.sh and wireguard-manager.sh scripts
- Detect default NIC MTU and suggest WireGuard MTU as (NIC_MTU - 80)
- Allow user to configure MTU during interface creation
- Store WG_MTU in parameters for consistency
- Apply configured MTU to both server and client configurations
- Remove hardcoded MTU=1420 in favor of calculated defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants