From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: conntrack and IKE confused on 2.6.16 Date: Wed, 22 Mar 2006 18:24:32 +0100 Message-ID: <44218850.5080602@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Marco Berizzi 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 Marco Berizzi wrote: > Hi. I'm experimenting a quite strange problem > with linux 2.6.16 > Yesterday one of our user with his laptop has > killed my ipsec vpn ;-) > Here is my network schema: > > priv-net-fi--|lnx|--pub-ip-fi**internet**pub-ip-ve--|lnx2.6.16|--priv-net-venezia > > > The is an ipsec tunnel between the two private > networks: priv-net-fi and priv-net-venezia. The > two ipsec endpoint addresses are pub-ip-fi and > pub-ip-ve. So far so good. > On the 2.6.16 box there is a forward & nat rule > that allow also udp 500: packet with dport=500 > from the priv-net-venezia are allowed to be > forwarded & natted (with pub-ip-ve) to the > internet. Our user has double clicked on the vpn > connection and his laptop has tried to establish > an ipsec tunnel with the system lnx (for the > priv-net-fi subnet): packet with dport=500 was > natted (with the pub-ip-ve) and forwarded to > pub-ip-fi. > Ok, time for IKE rekey: lnx (pub-ip-fi) try to > talk to lnx2.6.16 pub-ip-ve, but lnx2.6.16 forward > packets with dport=500 to the user laptop (172.16.1.227): > > This is 'cat proc/net/ip_conntrack | grep 172.16.1.227': > > udp 17 169 src=172.16.1.227 dst=pub-ip-fi sport=500 dport=500 > packets=51 bytes=9264 src=pub-ip-fi dst=pub-ip-ve sport=500 dport=500 > packets=77 bytes=29760 [ASSURED] mark=0 use=1 I'm not sure I understand you correctly. The notebook users establishes a VPN to the remote side. Why shouldn't the IKE-traffic be directed back to him?