Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2002 18:51:20 +0100
From:      "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org>
To:        Craig Burgess <craig@CheetahUSA.net>
Cc:        questions <freebsd-questions@FreeBSD.ORG>, questions@FreeBSD.ORG
Subject:   Re: syntax for (nat) multiple -redirect-ports?
Message-ID:  <3C4DA698.5080605@rambo.simx.org>
References:  <JMEJIDBCLMMNOALABHFFOEPGCHAA.craig@CheetahUSA.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <if name>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C4DA698.5080605>