From: "Marco Berizzi" Subject: conntrack and IKE confused on 2.6.16 Date: Wed, 22 Mar 2006 17:03:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: To: netfilter-devel@lists.netfilter.org 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 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 Is this a normal behaviour? PS: IKE daemon on lnx2.6.16 is openswan