I want to do the equivalent of

iptables -t nat -A POSTROUTING -m ipvs --vaddr -j MASQUERADE

in nftables. The nftables wiki says ipvs is supported, but

add rule ip nat POSTROUTING ipvs vaddr masquerade

does not work. All other variations I have tried do not work either... When I add the rule using iptables and list all rules using nft, I get

vaddr counter packets 0 bytes 0 masquerade

but using this in "add rule" does not work either.

So what would be the correct syntax to use nft in this case?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.