Respect user-selected WG_PORT #1

Closed
nepthar wants to merge 1 commit from patch-1 into master
nepthar commented 2024-03-25 12:46:46 -04:00 (Migrated from github.com)

I found that setting the WG_PORT env var did not successfully change the listen port of the service. This fills that in in the wg0.conf template.

I found that setting the WG_PORT env var did not successfully change the listen port of the service. This fills that in in the wg0.conf template.
kroegerama commented 2024-04-11 16:02:33 -04:00 (Migrated from github.com)

This bug also affects TrueNAS Scale, as it seems. When installing the wg-easy app in TrueNAS Scale, the default port is 30057. So if you don't know better and just confirm the default options, Wireguard won't work at all.

It was really hard to find the cause and I finally ended up in this pull request. Is there anything blocking you from merging @WeeJeWel? I was able to fix it by defining the correct port, but other users might not find this info and get stuck.

This bug also affects TrueNAS Scale, as it seems. When installing the wg-easy app in TrueNAS Scale, the default port is `30057`. So if you don't know better and just confirm the default options, Wireguard won't work at all. It was really hard to find the cause and I finally ended up in this pull request. Is there anything blocking you from merging @WeeJeWel? I was able to fix it by defining the correct port, but other users might not find this info and get stuck.
nepthar commented 2024-04-11 16:14:11 -04:00 (Migrated from github.com)

Hey, I forgot about this! Yes, I'd love to have this merged :)

Hey, I forgot about this! Yes, I'd love to have this merged :)
WeeJeWel commented 2024-04-11 16:46:03 -04:00 (Migrated from github.com)

This repo has moved to wg-easy/wg-easy.

This repo has moved to wg-easy/wg-easy.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
WeeJeWel/wg-easy!1
No description provided.