From owner-freebsd-questions Thu Mar 15 14:55:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id E3A9437B719 for ; Thu, 15 Mar 2001 14:55:14 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.9.3) with SMTP id f2FMrLi71253; Thu, 15 Mar 2001 17:53:22 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <001901c0ada2$7375c8a0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "G. Jason Middleton" , References: Subject: Re: how do i redirect or map ports with natd? 2nd round Date: Thu, 15 Mar 2001 17:51:18 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message