From owner-freebsd-net@FreeBSD.ORG Thu May 7 09:14:13 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 63B38702 for ; Thu, 7 May 2015 09:14:13 +0000 (UTC) Received: from mail-yh0-x22c.google.com (mail-yh0-x22c.google.com [IPv6:2607:f8b0:4002:c01::22c]) (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 22AEF1493 for ; Thu, 7 May 2015 09:14:13 +0000 (UTC) Received: by yhda23 with SMTP id a23so9438471yhd.2 for ; Thu, 07 May 2015 02:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NFtjba0KxQvPDZz6Z9lHzq6UPL+ho/Qeux66fSLlr2A=; b=0gu30HkVnQfoOX6YxdIHGwUPr2qW49yv7ugK3kHmcFQSXYKz3XTndyBPij28PoMeBd i+AyLnhMN23tYW+LgTj5T/7iLdctmnTArSgR+c6jv1cyOASFAy1yVKJFSICyLu9/qEW2 JD3OIy68cK6UefCXpFglfOo6YqBcsa9yJU0tolkt4J0v1Bu3h7I5d7WNy4pgdcJLZYeB gdlJzywBW1RH948W6wddm+u5aABeLqrYBevzMyhP/NijJQA28zrbFs7lNH2eXD8iotit sZvp8JwpSYH+zapsmMmCpMN5sJYmFRgma0XGhRwj+YZHTy+hjsLhyeYk0tze0eDKqvzR vzIw== MIME-Version: 1.0 X-Received: by 10.236.222.193 with SMTP id t61mr2357228yhp.40.1430990052117; Thu, 07 May 2015 02:14:12 -0700 (PDT) Received: by 10.13.252.6 with HTTP; Thu, 7 May 2015 02:14:12 -0700 (PDT) In-Reply-To: <554B2A95.8030600@yandex.ru> References: <554B2A95.8030600@yandex.ru> Date: Thu, 7 May 2015 11:14:12 +0200 Message-ID: Subject: Re: FreeBSD makes linux think other subet is in same lan. From: Martin Larsson To: "Andrey V. Elsukov" 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: Thu, 07 May 2015 09:14:13 -0000 yes, that made the trick! Thanks alot Andrey! On Thu, May 7, 2015 at 11:04 AM, Andrey V. Elsukov wrote: > On 06.05.2015 15:51, Martin Larsson wrote: > > 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 > > I think it is because FreeBSD sends ICMP redirects when it finds that > route to the given destination goes back to the receiving interface. > > Try to disable ICMP redirects: > # sysctl net.inet.ip.redirect=0 > > -- > WBR, Andrey V. Elsukov > >