From owner-freebsd-questions Mon Aug 20 11: 6:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.oak-wood.co.uk (pc1-dale2-0-cust111.not.cable.ntl.com [62.254.2.111]) by hub.freebsd.org (Postfix) with SMTP id 5812737B40B for ; Mon, 20 Aug 2001 11:06:52 -0700 (PDT) (envelope-from lists@oak-wood.co.uk) Received: from chris.oak-wood.co.uk ([192.168.37.3]) by mail.oak-wood.co.uk with SMTP (Mailtraq/1.1.6.1176) id ML9712AFBAA for freebsd-questions@freebsd.org; Mon, 20 Aug 2001 19:06:40 +0100 Message-ID: Date: Mon, 20 Aug 2001 19:06:35 +0100 To: freebsd-questions@freebsd.org From: Chris Hastie Subject: Re: Port redirection with natd References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed User-Agent: Turnpike/6.00-Beta-6-U () X-Hops: 1 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 Mon, 20 Aug 2001, Nick Rogness wrote >On Mon, 20 Aug 2001, Chris Hastie wrote: > >> I'm trying to set up an internet gateway with NAT and some port >> redirection using Free BSD 4.3-CURRENT. The machine has two nics, xl0 >> faces the internet and sis0 faces my LAN. >> >> So far the NAT works fine, but I can't get the port redirection going at >> all. > Have you turned on logging to see what is going on? Time to own up to my totally clueless credentials. I've been using FreeBSD, my first venture away from Mr Gates, since, oh, Saturday afternoon, and I haven't figured out this logging thing yet. Lots of things tell me how to log stuff, but I can't figure out where to find the logs they generate :( Instructions on 1) how to tell natd to log activity and 2) where to find the logs would be very much appreciated > >> >> # natd -n xl0 -f /etc/natd.conf >> >> returns >> >> |natd: Unable to bind socket.: Address already in use. >> > > natd is already running and bound to port 8668 [from the startup]. Right, so it is not the three sockets I'm trying to divert that are already bound. > >> Additionally, I can get no response from any of those ports by >> telnetting to them with another machine. >> > > The redirect_port stuff will only work from the outside with your > setup. Try going to an outside machine and telnetting. Best I can manage at the moment is to log into a shell account on a remote machine and then try and telnet back to myself from there. To port 23 this is fine and I can then log into my FreeBSD no probs. But to the supposedly redirected ports I get no response. -- Chris Hastie http://www.oak-wood.co.uk/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message