From owner-freebsd-net@FreeBSD.ORG Thu May 7 09:06:38 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 ADC672EB for ; Thu, 7 May 2015 09:06:38 +0000 (UTC) Received: from forward8l.mail.yandex.net (forward8l.mail.yandex.net [IPv6:2a02:6b8:0:1819::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A2611348 for ; Thu, 7 May 2015 09:06:38 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 2A5371A41443; Thu, 7 May 2015 12:06:24 +0300 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id B35CC1B6105D; Thu, 7 May 2015 12:06:23 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:81f::1d6]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ls2IGAwHBS-6Nj44Qiw; Thu, 7 May 2015 12:06:23 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1430989583; bh=6IQXj2Ku1+eemB9+56MMHHrIXdhU8Ge3oL7pL2fmZTE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type; b=Nzti5HkyNQMtBw9erkGjDAUhAkbNuKRDEmIXDOqqQcBy47UOPxgZ3tOuSdxr+/0S/ a0gMQV2wviZ2gDRHILT7tueOwYa6AaFHsxjrwQQu9mPZH4A/+0D5zItJ3bpLjIAWmO wAppV4n8cchsu+u0GZa3CXHvBex1ub3KOU4xXZIs= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <554B2A95.8030600@yandex.ru> Date: Thu, 07 May 2015 12:04:21 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Martin Larsson , freebsd-net@freebsd.org Subject: Re: FreeBSD makes linux think other subet is in same lan. References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ctac6hlqj3eUi9NWNB73E805phEDMa9wa" 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:06:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ctac6hlqj3eUi9NWNB73E805phEDMa9wa Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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. >=20 > Here is arp -n on linux after the route is added on the freebsd gateway= =2E >=20 > 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=3D0 --=20 WBR, Andrey V. Elsukov --ctac6hlqj3eUi9NWNB73E805phEDMa9wa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVSyqVAAoJEAHF6gQQyKF6eygH/RuEFK3RKNtgc38TekjYzyo0 3V6UhzDtVmGdJW/1kvvIEASC34IKHj4uB+IdWnpOy80qbC+Q5if+2MREdwBpv1nS aZz4zMAVUKnKhmAkgbj46XSraG/VXMCOmN2OAiidNuWrPMs5x9yRteEs4xIiCwDH iIUPot0XunhCknK68aDqq/NnJaHOWq/+0GvLjBKJE8dY4NQV7U2zcUi2jU+BB0Ji 9d6xyILQGHf0hS7A66Xgtr5G9Kriiw90AWHvDrKNCJr9HhMfTTMRq2Cb3gLCr4ve M7s/usax2dCN/QaZ5wb49uBq2+ZEpYgYnr/26iJWnhouysx2XcMAtingDkXE3cE= =izHR -----END PGP SIGNATURE----- --ctac6hlqj3eUi9NWNB73E805phEDMa9wa--