From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: xt_policy: output policy not valid in PRE_ROUTING and INPUT Date: Mon, 06 Aug 2007 14:44:11 +0200 Message-ID: <46B7179B.7090002@trash.net> References: <46B7145B.4070407@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org To: Krzysztof Oledzki Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Krzysztof Oledzki wrote: > On Mon, 6 Aug 2007, Patrick McHardy wrote: > >> The IPsec policy is selected after routing, which is why can't >> be used in PREROUTING. > > > Is there any other solution than duplicating ipsec policies with "-A > PREROUTING -s (...) -d (...) -p (...) -j RETURN"? I would like to > REDIRECT only packets that are not going thru ipsec tunnels. I can't think of one.