From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Kath Subject: Re: Reject non-ipsec traffic Date: Thu, 21 Jul 2011 12:01:21 -0700 Message-ID: <1311274881.1484.49.camel@lt> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Ryan Whelan Cc: Petr Pisar , netfilter@vger.kernel.org On Thu, 2011-07-21 at 13:05 -0400, Ryan Whelan wrote: > The issue is that IPSec is protecting a GRE tunnel and if IPSec fails > for some reason, GRE will be happy to work without it; tunnelling > everything in the clear. I was just hoping to put some kind of fail > safe in place so if IPSec stopped working or failed to start, > unencrypted traffic wouldn't be transmitted. You could create a private loopback address on each endpoint, and use those loopback addresses in the encryption policy. The only way the loopback addresses can reach each other is while the IPsec associations are up. Then set up the GRE tunnel with the loopbacks as its endpoints. That way, when the IPsec tunnel is down, GRE will no longer be happy to work without it.