From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 11:26:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B233D106569D for ; Thu, 9 Oct 2008 11:26:06 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from tmailer.gwdg.de (tmailer.gwdg.de [134.76.10.23]) by mx1.freebsd.org (Postfix) with ESMTP id 7606D8FC32 for ; Thu, 9 Oct 2008 11:26:06 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de ([134.76.8.60]) by mailer.gwdg.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Kntef-0002VX-IX for freebsd-questions@freebsd.org; Thu, 09 Oct 2008 13:26:05 +0200 Date: Thu, 9 Oct 2008 13:26:05 +0200 (CEST) From: Konrad Heuer To: freebsd-questions@freebsd.org Message-ID: <20081009131623.M34013@gwdu60.gwdg.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Subject: Multiple NICs routing question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 11:26:06 -0000 Hello, I've a server box with four NICs addressing different subnets: NIC1: one class c subnet of same class b network NIC2: another class c subnet of same class b network NIC3: local unrouted network NIC4: local unrouted network In the current configuration I use a default gateway (and no routing daemon) in the subnet addressed by NIC1. Now of course, if a client in an arbitrary different class c subnet contacts the server using the ip address of NIC2, it gets a reply from NIC1. How can I cange this? I'd like the server to answer via the interface the client uses when connecting. Maybe that's a silly question, but thanks for any reply! Best regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de