system: mark wireguard traffic
For use with nftables.
This commit is contained in:
parent
2e4547119f
commit
18064e21c0
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ def save_config():
|
|||
# Print wireguard config.
|
||||
with open(output / 'etc/wireguard/wg.conf', 'w', encoding='utf-8') as f:
|
||||
# Server configuration.
|
||||
wg_intf = '[Interface]\nListenPort = {port}\nPrivateKey = {key}\n\n'
|
||||
wg_intf = '[Interface]\nListenPort = {port}\nPrivateKey = {key}\nFwMark = 51820\n\n'
|
||||
f.write(wg_intf.format(port=settings.get('wg_port') or 51820, key=settings.get('wg_key')))
|
||||
|
||||
# Client configuration.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue