Skip to content

Update wg.conf to print FwMark if it exists - #437

Open
runbmp wants to merge 1 commit into
ngoduykhanh:masterfrom
runbmp:patch-1
Open

Update wg.conf to print FwMark if it exists#437
runbmp wants to merge 1 commit into
ngoduykhanh:masterfrom
runbmp:patch-1

Conversation

@runbmp

@runbmp runbmp commented Sep 12, 2023

Copy link
Copy Markdown

Currently FwMark doesn't make it from the global settings into the config file when saved/applied

@systemcrash

Copy link
Copy Markdown
Contributor

As long as this is only for the local wg config then this seems acceptable.

@systemcrash

Copy link
Copy Markdown
Contributor

Recommend updating (spaces) to improve readability

{{if .globalSettings.FirewallMark }}FwMark = {{ .globalSettings.FirewallMark }}{{end}}

@Pantamis

Pantamis commented Feb 8, 2024

Copy link
Copy Markdown

I tested it and it work ! Thank you !

gaoyifan added a commit to gaoyifan/wireguard-ui that referenced this pull request Apr 26, 2026
The Firewall Mark from global settings was never written to the
WireGuard config. Render it in the [Interface] section when present.

Refs: ngoduykhanh/wireguard-ui#437
Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants