From owner-freebsd-questions Thu Mar 15 14:59:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx2out.umbc.edu (mx2out.umbc.edu [130.85.253.52]) by hub.freebsd.org (Postfix) with ESMTP id 02C4A37B719 for ; Thu, 15 Mar 2001 14:59:30 -0800 (PST) (envelope-from gmiddl1@gl.umbc.edu) Received: from irix2.gl.umbc.edu (gmiddl1@irix2.gl.umbc.edu [130.85.60.11]) by mx2out.umbc.edu (8.9.3/8.9.3) with ESMTP id RAA22897; Thu, 15 Mar 2001 17:59:27 -0500 (EST) Date: Thu, 15 Mar 2001 17:59:27 -0500 From: "G. Jason Middleton" To: Matthew Emmerton Cc: Subject: Re: how do i redirect or map ports with natd? 2nd round In-Reply-To: <001901c0ada2$7375c8a0$1200a8c0@gsicomp.on.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gracious amigo!!!! I appreciate your help! G. Jason Middleton On Thu, 15 Mar 2001, Matthew Emmerton wrote: > > i have > > internal web and ftp servers plus i play startcraft which uses 116-118, & > > 6112 for transfer of UDP and TCP/IP. How can i redirect these to the > > correct computers in my internal network? > > I use a setup like this: > > In /etc/rc.conf: > natd_flags="-f /etc/rc.firewall.natd" > > In /etc/rc.firewall.natd: > redirect_port tcp 192.168.0.3:20-21 20-21 > redirect_port tcp 192.168.0.3:80 80 > > This causes natd to redirect any incoming traffic on ports 20, 21 and 80 to > one of my internal machines. You can set up similar rules for starcraft's > tcp/udp traffic. > > 'man natd' explains all of this in rather gory detail, although the > explanation of how to do this via a configuration file (instead of > command-line options) is *very* brief. > > -- > Matt Emmerton > G. Jason Middleton _______________________________________________________________________________ Announcement: The revolution will not be televised. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message