с которым совершенно непонятно как дальше жить и как сделать dnat/маскарад
# cat /etc/nftables.conf
flush ruleset
table ip nat {
chain prerouting {
type nat hook prerouting priority 0; policy accept;
iifname vmap { "enp2s0f0.2408" : goto uplink1.2408_dst, "wg0" : goto wg0_dst}
}
chain postrouting {
type nat hook postrouting priority 0; policy accept;
snat oifname map { "wg0" : 192.0.2.4, "enp2s0f0.2408" : 10.0.0.2}
oifname { "enp2s0f0.3808", "tun.aldhissla"} masquerade
}
chain uplink.2408_dst {
dnat to udp dport map {6881 : 172.17.16.105, 5604 : 172.17.17.10, 6890 : 172.17.16.105, 5605 : 172.17.17.101}
dnat to tcp dport map {6881 : 172.17.16.105, 5604 : 172.17.17.10, 6890 : 172.17.16.105, 5605 : 172.17.17.101, bacula-fd : 172.17.17.4}
}
chain wg0_dst {
}