From owner-freebsd-questions@FreeBSD.ORG Tue Dec 17 02:37:46 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E06FA0E for ; Tue, 17 Dec 2013 02:37:46 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3DBA91C80 for ; Tue, 17 Dec 2013 02:37:45 +0000 (UTC) Received: from [192.168.1.34] (host86-161-162-125.range86-161.btcentralplus.com [86.161.162.125]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id rBH2bb6h006447 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 17 Dec 2013 02:37:38 GMT (envelope-from frank2@fjl.co.uk) Message-ID: <52AFB8F1.8020906@fjl.co.uk> Date: Tue, 17 Dec 2013 02:37:37 +0000 From: Frank Leonhardt Organization: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: connecting servers on lan to internet References: <52AF88D5.4050908@hdk5.net> In-Reply-To: <52AF88D5.4050908@hdk5.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: frank2@fjl.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 02:37:46 -0000 On 16/12/2013 23:12, Al Plant wrote: > I need to connect 1 mail server, 1 web server to the internet. All > running FreeBSD. > > Currently all servers are on ADM circuit with different IPS.( Like one > other recent post the cable speed rate has been lowered to where the > servers don't up load any more.) Luckly we will have Fiber Optic > cable coming to our lane this March. I want to put the servers behind > the router a (FreeBSD) PF firewall on the single telco line with its > own IP to make sure the DNS etc works from there before the telco > Fiber optic cable gets here. > > If I NAT the two servers to the lan and direct the DNS to the single > line IP will that work? Hi AL, What you're trying to do is certainly possible. Taking a guess as to what your setup might be, you'll need need a natd.conf (or whatever you decide to call it) that looks something like this: ----------------------------------- interface rl0 redirect_port tcp 192.168.1.200:25 25 redirect_port tcp 192.168.1.201:80 80 redirect_port tcp 192.168.1.201:443 443 ----------------------------------- The first line is the interface name (realtek in this case). The mail server is on 192.168.1.200 and the web server is on 201. Pretty simple. I assume you've got natd (and dhcpd) working anyway, so you've done the hard bit. I guess you just need confirmation that it will definitely do what you want. Regards, Frank.