From owner-freebsd-questions Tue May 18 8:50: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from horse.supranet.net (horse.supranet.net [205.164.160.8]) by hub.freebsd.org (Postfix) with ESMTP id 0924C152D0 for ; Tue, 18 May 1999 08:49:10 -0700 (PDT) (envelope-from gavinb@supranet.net) Received: from rat (rat.supranet.net [205.164.160.15]) by horse.supranet.net (8.9.3/8.9.3) with SMTP id KAA01956; Tue, 18 May 1999 10:48:55 -0500 (CDT) Message-Id: <4.1.19990518103947.00c563c0@mail.supranet.net> X-Sender: gavinb@mail.supranet.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 18 May 1999 10:47:28 -0500 To: Michel Quadflieg From: Benjamin Gavin Subject: Re: NATD/IPFW question Cc: freebsd-questions@freebsd.org In-Reply-To: <4.1.19990518160458.009236a0@area51> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Just create a file for the natd configuration (i.e. /etc/rc.natd): ------------------------------------- /etc/rc.natd: #!/bin/sh # Natd Configuration File # Global Configuration Directives dynamic yes use_sockets yes same_ports yes unregistered_only yes # Port Redirection Rules redirect_port tcp :9999 :9999 redirect_port udp :9999 :9999 # Address Redirection Rules redirect_address ----------------------------------- Then in your rc.conf file, just add (or change) the following line in rc.conf: /etc/rc.conf: natd_flags="-f /etc/rc.natd" This will redirect a single port, or an entire address to the internal machine. Just make sure that if you redirect the port _and_ you are not running an open firewall, then you will need to add lines to your firewall configuration to allow traffic to the internal machine on the port that you assign. Let me know if you have any questions. Ben Gavin At 04:09 PM 5/18/99 +0200, you wrote: >Hello all > >I got a question is it possible to divert imcoming traffic to an >private ip? > >So something like this > >--------- ------------------ > ------------- >|Internet|------->port 9999 |FreeBSD-server|-------->port 9999 |other server| >--------- ------------------ > ------------- > static routed ip Private ip adress > >And off course also sending data back......This because i want to set up >a gaming server but the server software is not (yet) aviable for FreeBSD.... > > >TIA Michel > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message /--------------------------------------------------------------------------/ Benjamin Gavin - Senior Consultant *********** NO SPAM!! ************ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message