2024-11-17 11:42:28 +05:30
|
|
|
_: {
|
2024-11-23 00:22:19 +05:30
|
|
|
systemd.services.nftables.after = [ "wg-quick-Homelab.service" ];
|
2024-11-17 11:42:28 +05:30
|
|
|
networking = {
|
|
|
|
nftables = {
|
|
|
|
enable = true;
|
|
|
|
ruleset = ''
|
|
|
|
table ip nat {
|
|
|
|
chain PREROUTING {
|
2024-11-19 23:35:28 +05:30
|
|
|
type nat hook prerouting priority dstnat;
|
2024-11-24 15:36:30 +05:30
|
|
|
iifname ens3 tcp dport 69 dnat to 10.10.10.13:6969
|
2024-11-17 11:42:28 +05:30
|
|
|
}
|
|
|
|
chain POSTROUTING {
|
2024-11-19 23:35:28 +05:30
|
|
|
type nat hook postrouting priority srcnat;
|
2024-11-17 11:42:28 +05:30
|
|
|
ip daddr 10.10.10.13 masquerade
|
|
|
|
};
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|