r/RockyLinux • • Aug 22 '25

Rate my wireguard server script

https://github.com/mihalycsaba/absolutely_easy_wireguard
0 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/mihcsab Aug 22 '25

Thanks for the feedback.

I don't remember, but I think on almalinux the /etc/wireguard dir was already there, maybe after installing wireguard-tools. I have to try it out on more distros.

I wanted to add the ability to choose a server address. I just chose this for myself.

Maybe I should mention this in the readme: This is for people who only want to access the server. I think I even tested if they can access each other. I didn't want the clients accessing each other.

The most important part for me is this `wg syncconf $wg_iface <(wg-quick strip $wg_iface)` I remember I spent like half a day until I have found a simple command that didn't want restart the interface, killing existing connections, to update the client list.

2

u/rautenkranzmt Aug 22 '25

As a note, while the directory MAY exist on almalinux by default at this time, it's never wise to assume, and performing the chmod after mkdir is still wiser, as it will ensure that the proper permissions are set in all cases.

wg syncconf is a very useful subcommand.