Re: [PATCH iptables 2/3] extensions: libip[6]t_SNAT/DNAT: use the new nft syntax when do xlate

2016-08-30 Thread Pablo Neira Ayuso
On Sun, Aug 28, 2016 at 04:50:47PM +0800, Liping Zhang wrote: > From: Liping Zhang > > After commit "src: add 'to' for snat and dnat" in nftables tree, > we should recommend the end user to use the new syntax. > > Before this patch: > # iptables-translate -t nat

[PATCH iptables 2/3] extensions: libip[6]t_SNAT/DNAT: use the new nft syntax when do xlate

2016-08-28 Thread Liping Zhang
From: Liping Zhang After commit "src: add 'to' for snat and dnat" in nftables tree, we should recommend the end user to use the new syntax. Before this patch: # iptables-translate -t nat -A POSTROUTING -j SNAT --to-source 1.1.1.1 nft add rule ip nat POSTROUTING