From owner-freebsd-net@FreeBSD.ORG Wed May 6 19:51:51 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A59B1C00 for ; Wed, 6 May 2015 19:51:51 +0000 (UTC) Received: from mail-yk0-x22f.google.com (mail-yk0-x22f.google.com [IPv6:2607:f8b0:4002:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62F12156A for ; Wed, 6 May 2015 19:51:51 +0000 (UTC) Received: by ykeo186 with SMTP id o186so5587931yke.0 for ; Wed, 06 May 2015 12:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gUbuY8PDarCr2k8F8HmyhUaE+gGwTd2i/qtQjO+Jrbg=; b=yrbGHYVMmVrq3LT8cLs6kpIuy5xrOWOKsYaE0Y4PG6Bu8lvVbYrcf0f6+EVN6Nk2CW nqHUmr0LvUtr/qqsDk5xwqFWykLuWhuz1Sgrm7fwWC4Ibcwybhp0uY5zQmklpat6PaPm EcZ/XcdEgXmsGd//R0JHxELvev1FRQ24+4oOPzATGCaBG/BKwOsnhpy6WscsdtdoWqvM 3WHQsfPlWdJ/SAAsYbeMJnzOhEn/oD70K5r3PINfAchNmjCoWscp9jkv9w2CvZ2uxAvZ AqbAfkJ60YVs/taxKd79YqnEe8zkWg6N7OZUXEecsZIBfMD1AgW0lnaV/YciEkyeko8e eZdA== MIME-Version: 1.0 X-Received: by 10.236.110.9 with SMTP id t9mr285445yhg.35.1430941909507; Wed, 06 May 2015 12:51:49 -0700 (PDT) Sender: ermal.luci@gmail.com Received: by 10.129.123.197 with HTTP; Wed, 6 May 2015 12:51:49 -0700 (PDT) In-Reply-To: References: Date: Wed, 6 May 2015 21:51:49 +0200 X-Google-Sender-Auth: N_2_2mSRdWhvX6nHBCJPNcssOfI Message-ID: Subject: Re: FreeBSD makes linux think other subet is in same lan. From: =?UTF-8?Q?Ermal_Lu=C3=A7i?= To: Martin Larsson Cc: freebsd-net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2015 19:51:51 -0000 On Wed, May 6, 2015 at 2:51 PM, Martin Larsson wrote: > This is a small summary of > > https://forums.freebsd.org/threads/routing-issue-with-ipsec-windows-works-linux-doesnt.51201/ > . > > > Setup: > My side > 192.168.1.0/24 > Freebsd (default gateway and ipsec gateway, 192.168.1.1) > windows, linux etc > > 10.11.12.0/24 > other net > > 1: connect with ipsec to another subnet. > When tunnel is up, all computers behind can ping the remote subnet, but not > freebsd itself. > Did you try by running ping with -S option to ping? Normally you should not need the route below since ping needs to be sourcing from your LAN ip to go to the other end. > So, I add a route: route add -net 10.11.12.0/24 192.168.1.1 > > Now, FreeBSD itselt can also ping 10.11.12.0/24 host, but Linux stop > working. > windows can ping in both cases though. > > Here is arp -n on linux after the route is added on the freebsd gateway. > > Linux:~ # arp -a > ? (10.11.12.13) at on eth0 > ? (192.168.1.125) at b4:52:7e:95:2a:f5 [ether] on eth0 > ? (192.168.1.1) at 00:1b:21:00:62:62 [ether] on eth0 > ? (192.168.1.160) at 84:38:38:6a:ec:91 [ether] on eth0 > ? (192.168.1.6) at 1c:6f:65:21:36:96 [ether] on eth0 > ? (192.168.1.5) at 00:1a:4d:63:d8:5c [ether] on eth0 > > So somehow it thinks 10.11.12.0/24 is in its lan. > This very same scenario works fine if I replace my freebsd gateway with > openbsd or linux. > So could this be a bug or am I doing something wrong? > > Best regards > Niklas > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Ermal