Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/wireguard: add option to set firewall mark
Wireguard can tag its packets with a firewall mark. This can be used for firewalls or policy routing. This is very useful in some setups where all traffic should go through a wireguard interface. The wireguard packets cannot go through the wireguard interface and must be routed differently, which can be done via the Firewall Mark. The nixos option `config.networking.wireguard.interface.<name>.fwMark` is of type `types.str` and not `types.int` to allow for specifying the mark as a hexadecimal value.
- Loading branch information