I'd like to know if someone has found a way to do this. I've been able to create a set for my DNAT rules with nftables, however I haven't been able to achieve what I truly want. This is the Set I have so far:
nft add map ip nat dnat_map{type ipv4_addr . inet_service : ipv4_addr \;}
However what I really want to achieve is something like this
nft add map ip nat dnat_map{type ipv4_addr . inet_service : ipv4_addr . inet_service \;}
But Nftables really doesn't like that format so have anyone been able to make a map that allows element to have both the daddr and dport plus the dnat daddr and port? Assuming ofc that an element would look like this(Yes I need a different port on the dnat addr):
nft add element ip nat dnat_map{\
1.1.1.1 . 2222 : 192.168.1.1 . 22,\
}