From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: Re: ipsec matching in postrouting nat Date: Sat, 20 Jun 2020 23:00:35 +0200 Message-ID: <20200620210035.GG26990@breakpoint.cc> References: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Marek =?iso-8859-15?Q?Gre=A8ko?= Cc: netfilter@vger.kernel.org Marek Gre=A8ko wrote: > Hello, >=20 > I would like to write rule similar to: >=20 > iptables -t nat -A POSTROUTING -o ppp0 -m policy --dir out --pol ipsec -j= RETURN >=20 > in nftables. But I am not successful. >=20 > I tried: >=20 > oifname "ppp0" meta secpath exists return >=20 > with no luck. >=20 > Is there some equvalent of the iptables command? Try replacing 'meta secpath' with 'rt ipsec'