From owner-freebsd-net@freebsd.org Fri Dec 16 12:31:35 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10343C82120 for ; Fri, 16 Dec 2016 12:31:35 +0000 (UTC) (envelope-from contact@makz.me) Received: from ryuko.makz.me (ryuko.makz.me [176.31.133.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A0EA31063 for ; Fri, 16 Dec 2016 12:31:34 +0000 (UTC) (envelope-from contact@makz.me) Received: from localhost (localhost [127.0.0.1]) by ryuko.makz.me (Postfix) with ESMTP id 2CBC123B036A for ; Fri, 16 Dec 2016 13:24:56 +0100 (CET) Received: from ryuko.makz.me ([127.0.0.1]) by localhost (ryuko.makz.me [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id IgM8kztH-uLU for ; Fri, 16 Dec 2016 13:24:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ryuko.makz.me (Postfix) with ESMTP id CD0E523B0366 for ; Fri, 16 Dec 2016 13:24:55 +0100 (CET) X-Virus-Scanned: amavisd-new at makz.me Received: from ryuko.makz.me ([127.0.0.1]) by localhost (ryuko.makz.me [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VurgMAUkUKHa for ; Fri, 16 Dec 2016 13:24:55 +0100 (CET) Received: from ryuko.makz.me (ryuko.makz.me [10.10.0.8]) by ryuko.makz.me (Postfix) with ESMTP id 991CA23B0367 for ; Fri, 16 Dec 2016 13:24:55 +0100 (CET) Date: Fri, 16 Dec 2016 13:24:55 +0100 (CET) From: Maxence Sartiaux To: freebsd-net@freebsd.org Message-ID: <1372618005.12430.1481891095398.JavaMail.zimbra@makz.me> Subject: Policy base routing & GW on same subnet MIME-Version: 1.0 X-Originating-IP: [10.10.0.8] X-Mailer: Zimbra 8.7.0_GA_1659 (ZimbraWebClient - GC55 (Linux)/8.7.0_GA_1659) Thread-Index: yyON24dyLhDZwFZiMoF09AY/Q1ANDg== Thread-Topic: Policy base routing & GW on same subnet Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2016 12:31:35 -0000 Hello I've a problem with a pfsense, unfortunately, i've already asked to pfsense forum but nobody can respond me so i think it's more a bsd issue. I have multiple gateway, two of them are in the same subnet / interface (my default 192.168.0.5 & my second one 192.168.0.1) I create a rule base matching on source and route the traffic to my second gateway. (the rule match properly) But the traffic is always routed to my default gateway. When i use an other gateway which are on a different subnet, the traffic is properly routed to the other gateway. I've tried on differents subnet, differents interfaces, it look like bsd route the traffic to the latest added gateway when there are multiple gateway on a same subnet. Is it a BSD or pfSense issue ? Thank you.