Score:0

How to add ipvs rule to nftables?

gb flag

I want to do the equivalent of

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

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

add rule ip nat POSTROUTING ipvs vaddr 1.2.3.4 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 1.2.3.4 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?

A.B avatar
cl flag
A.B
The wiki says: consider native interface: https://wiki.nftables.org/wiki-nftables/index.php/Load_balancing . See also https://github.com/zevenet/nftlb / https://www.zevenet.com/knowledge-base/nftlb/what-is-nftlb/#Why_is_nftlb_needed
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.