From owner-freebsd-questions Tue Jan 22 9:51:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rambo.simx.org (rambo.simx.org [194.17.208.54]) by hub.freebsd.org (Postfix) with ESMTP id B5CC337B400; Tue, 22 Jan 2002 09:51:30 -0800 (PST) Received: from rambo.simx.org (rocky [192.168.0.2]) by rambo.simx.org (8.11.6/8.11.6) with ESMTP id g0MHpKX50692; Tue, 22 Jan 2002 18:51:20 +0100 (CET) (envelope-from listsub@rambo.simx.org) Message-ID: <3C4DA698.5080605@rambo.simx.org> Date: Tue, 22 Jan 2002 18:51:20 +0100 From: "Roger 'Rocky' Vetterberg" Reply-To: listsub@rambo.simx.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Craig Burgess Cc: questions , questions@FreeBSD.ORG Subject: Re: syntax for (nat) multiple -redirect-ports? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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