20 lines
504 B
Nix
20 lines
504 B
Nix
_: {
|
|
systemd.services.nftables.after = [ "wg-quick-Homelab.service" ];
|
|
networking = {
|
|
nftables = {
|
|
enable = true;
|
|
ruleset = ''
|
|
table ip nat {
|
|
chain PREROUTING {
|
|
type nat hook prerouting priority dstnat;
|
|
iifname ens3 tcp dport 69 dnat to 10.10.10.13:6969
|
|
}
|
|
chain POSTROUTING {
|
|
type nat hook postrouting priority srcnat;
|
|
ip daddr 10.10.10.13 masquerade
|
|
};
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|