From owner-freebsd-questions Fri Sep 27 4:31:48 2002 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 7B63037B401 for ; Fri, 27 Sep 2002 04:31:47 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F5B643E6A for ; Fri, 27 Sep 2002 04:31:46 -0700 (PDT) (envelope-from csilaghi@gmx.net) Received: (qmail 980 invoked by uid 0); 27 Sep 2002 11:31:45 -0000 Received: from 66-190-85-207.charterga.net (HELO apollo.daemon.tech) (66.190.85.207) by mail.gmx.net (mp019-rz3) with SMTP; 27 Sep 2002 11:31:45 -0000 Received: from apollo.daemon.tech (localhost.daemon.tech [127.0.0.1]) by apollo.daemon.tech (8.12.3/8.12.3) with ESMTP id g8RBapaB005472 for ; Fri, 27 Sep 2002 07:37:01 -0400 (EDT) (envelope-from csilaghi@apollo.daemon.tech) Received: (from csilaghi@localhost) by apollo.daemon.tech (8.12.3/8.12.3/Submit) id g8RBaZtS005471 for freebsd-questions@freebsd.org; Fri, 27 Sep 2002 07:36:35 -0400 (EDT) Date: Fri, 27 Sep 2002 07:36:31 -0400 From: Claudiu Silaghi To: freebsd-questions@freebsd.org Subject: Re: 2 gateways - seperate routes for different ports? Message-ID: <20020927113631.GA5417@gmx.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <1469.203.24.200.7.1033122192.squirrel@webmail.cyvox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469.203.24.200.7.1033122192.squirrel@webmail.cyvox.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 27, 2002 at 08:23:12PM +1000, Alek - freebsd@it.cyvox.org wrote: > Greetings, > > I currently have 2 gateway servers that I would like to consolidate. > > One is a permanent dialup with a static IP - this maintains DNS, routes my > SMTP namespace and is relatively secured with IPFW. > The other is a cable connection with a dynamic IP running NAT but > unsecured because I haven?t figured out how to configure IPFW with a > dynamic IP? yet. You could use something like this in your scripts: /sbin/ifconfig $interface|grep broadcast|awk '{print $2}' That should take care of the dynamic IP. > I want to consolidate these 2 boxes, but I would need to route port 25 and > 53 traffic through the dialup connection and everything else through the > cable connection? I expect I should be able to do this with IPFW?? No? > Any ideas / solutions appreciated. > > Cheers, > > Alek. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message