From owner-freebsd-questions Fri Feb 28 11:16:18 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED6B037B414 for ; Fri, 28 Feb 2003 11:15:37 -0800 (PST) Received: from deter.dk (port74.ds1-oebr.adsl.cybercity.dk [212.242.49.77]) by mx1.FreeBSD.org (Postfix) with SMTP id A2D1F44380 for ; Fri, 28 Feb 2003 11:02:23 -0800 (PST) (envelope-from no-spam@deter.dk) Received: (qmail 25784 invoked by uid 1001); 28 Feb 2003 19:01:38 -0000 Date: Fri, 28 Feb 2003 20:01:38 +0100 From: Morten Grunnet Buhl To: freebsd-questions@FreeBSD.ORG Subject: Re: Input on solution to temporary routing Message-ID: <20030228190138.GB24198@deter.dk> Reply-To: freebsd-questions@freebsd.org Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20030223235029.GB9202@deter.dk> <4465r8hvxw.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4465r8hvxw.fsf@be-well.ilk.org> X-Operating-System: FreeBSD 4.6-STABLE on a i386 X-Uptime: 8:08AM up 36 days, 5:34, 2 users, load averages: 0.02, 0.01, 0.00 User-Agent: Mutt/1.5.1i 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 Lowell Gilbert (freebsd-questions-local@be-well.no-ip.com) wrote: > Morten Grunnet Buhl writes: > > > > opensesamy 192.168.0.2 ftp > > > > which would then temporary route outside ftp connections to 192.168.0.2. > > You could do something like this, but it wouldn't work for more than > one inside box at a time. - I know this. prehaps I did not explain my self properly. Basicly, what I want is to make a script that does a natd -redirect_port tcp XXX.XXX.XXX.XXX:http http Where the XXX.XXX.XXX.XXX is an internal IP address supplied at the command-line. Why I do not have this in my natd.conf file is because there are several machines in my internal network which at different time should function as a http or ftp server. (But lets keep to http for now) So what it all comes down to is that I want to know if there is an easy way around adding and removing natd rules. I am not interested in having the outside port 8080 mapped to some internal IP port 80. What I want is a small script that can be called that either opens or closes the route from port 80 on the outside to port 80 on a specified internal IP. I hope someone out there can help me with this. As I really dont want to reload all the nat rules every-time I need to change one. Thanks in advance /Morten -- DetEr.dk - Rules are made to control the fun. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message