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;
|
|
|
|
iifname ens3 tcp dport 22 dnat to 10.10.10.13:2222
|
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
|
|
|
|
};
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|