From owner-freebsd-net@FreeBSD.ORG Thu Sep 20 14:26:08 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8635106564A for ; Thu, 20 Sep 2012 14:26:08 +0000 (UTC) (envelope-from juanjo.listas@doblej.net) Received: from zaragoza.intera5.net (zaragoza.intera5.net [212.81.143.133]) by mx1.freebsd.org (Postfix) with ESMTP id 861EB8FC0C for ; Thu, 20 Sep 2012 14:26:08 +0000 (UTC) Received: from [192.168.3.10] (unknown [192.168.3.10]) (Authenticated sender: juanjose.sanchez@intera5.es) by zaragoza.intera5.net (Postfix) with ESMTPA id 1735A1D911 for ; Thu, 20 Sep 2012 16:38:42 +0200 (CEST) Message-ID: <505B2555.40704@doblej.net> Date: Thu, 20 Sep 2012 16:16:53 +0200 From: =?ISO-8859-1?Q?Juan_Jos=E9_S=E1nchez_Mesa?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20120905 Thunderbird/16.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Multiroute question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 20 Sep 2012 14:26:08 -0000 Hi! (sorry for my bad english) I have a FreeBSD machine (8.2-RELEASE-p3). The machine has two ethernet cards, configured in this way: - Card A: internet IP address - Card B: intranet IP address Default route goes via card A. Now, on the intranet I have a "normal" DSL router. Then, using NAT i've forewarded a simple port from the DSL to the intranet IP of this machine. The incoming packets from the DSL comes ok to the machine (via card B), but the outgoing packet goes to card A, due to the default route. There is a way to configure the network so that outgoing packets goes to the card from where the incoming packets was arrived ? Or is this impossible to configure ? Thanks!!!