From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 23:17:38 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B65616A4CE for ; Sun, 3 Apr 2005 23:17:38 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0FBB43D1F for ; Sun, 3 Apr 2005 23:17:37 +0000 (GMT) (envelope-from gibblertron@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so1042386rnf for ; Sun, 03 Apr 2005 16:17:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=sSh4EBxX2GAR0zPuhHsW2780QKQ1LTJyXQ90AkpNq9scSlgIt7RCLtBFXHWWoFOhXhAitsFiQ0iJKLHHNmf7/2MH4dqbkY7mlN6SEEm2hcLah0bFwMIDiV+nePILTyKp3xP/OvL1AT3/eYD99Rv64hI2MlN8MLKH5VnIyFrfHLI= Received: by 10.38.82.78 with SMTP id f78mr2057773rnb; Sun, 03 Apr 2005 16:17:37 -0700 (PDT) Received: by 10.38.79.52 with HTTP; Sun, 3 Apr 2005 16:17:37 -0700 (PDT) Message-ID: Date: Sun, 3 Apr 2005 16:17:37 -0700 From: patrick To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Adding a default route for a specific NIC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: patrick List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 23:17:38 -0000 I have a FreeBSD 4.11 server with two NICs -- one has a real IP (bge0) and the other has an internal IP (bge1, 192.168.42.6). The default route for the server (defaultrouter= in rc.conf) is the gateway for the real IP. How can I set a route such that traffic going out on bge1 goes through a different router, even if it's to the outside world? Basically, I have a jailed setup running with a private IP address. On the private network, there is a gateway machine that's setup to NAT the traffic out to the internet. Currently, I cannot get out to the internet from the jail unless I set the default route of the entire server to be my internal NAT gateway. Any ideas? Thanks, Patrick