From owner-freebsd-questions Tue Jan 22 10:22:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from felix.cheetahusa.net (felix.cheetahusa.net [216.133.11.108]) by hub.freebsd.org (Postfix) with ESMTP id AC3AA37B48E for ; Tue, 22 Jan 2002 10:21:25 -0800 (PST) Received: from falcon (falcon.cheetahusa.net [192.168.10.139]) by felix.cheetahusa.net (8.11.6/8.11.6) with SMTP id g0MILAQ65528; Tue, 22 Jan 2002 10:21:11 -0800 (PST) (envelope-from craig@CheetahUSA.net) From: "Craig Burgess" To: Cc: Subject: RE: syntax for (nat) multiple -redirect-ports? Date: Tue, 22 Jan 2002 10:22:26 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <3C4DA698.5080605@rambo.simx.org> 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 Hi Roger, and "ahhhhh" - the conf file looks like it could be a winner. (Duoh?) Thanks. craig > Craig Burgess wrote: > > > What is the correct working syntax for the rc.conf > file to "open" > > different ports for different machines on the local LAN? > > > > This one works: > > 'natd -s -m -v -n -redirect_port tcp 192.168.0.130:2050-2051 > > 2050-2051' > > BUT > > how do I add a redirect for different ports to a > different machine? > > (I'm trying to get pcAnywhere to work as 'host' behind the > > firewall. Firewall type is "open.") I can't tell if > the problem is > > with the pcAnywhere configuration, or my redirect_port > arguments. > > > > thanks, > > > > craig > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > I have found that using a config file makes it easier to > make changes to your natd configuration. > Create for example /etc/natd.conf, which in your case could > contain something like this: > > interface > use_sockets yes > same_ports yes > redirect_port tcp 192.168.0.130:2050-2051 2050-2051 > redirect_port udp 192.168.0.130:2050-2051 2050-2051 > > Start natd with 'natd -f /etc/natd.conf'. > You could then add or remove options whenever you want, just > edit the file and -HUP natd. > > -- > R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message