Date: Tue, 22 Jan 2002 10:22:26 -0800 From: "Craig Burgess" <craig@CheetahUSA.net> To: <listsub@rambo.simx.org> Cc: <questions@FreeBSD.ORG> Subject: RE: syntax for (nat) multiple -redirect-ports? Message-ID: <JMEJIDBCLMMNOALABHFFIEPNCHAA.craig@CheetahUSA.net> In-Reply-To: <3C4DA698.5080605@rambo.simx.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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?JMEJIDBCLMMNOALABHFFIEPNCHAA.craig>