Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 1999 10:47:28 -0500
From:      Benjamin Gavin <gavinb@supranet.net>
To:        Michel Quadflieg <michel@quadspeed.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NATD/IPFW question
Message-ID:  <4.1.19990518103947.00c563c0@mail.supranet.net>
In-Reply-To: <4.1.19990518160458.009236a0@area51>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <internal>:9999 <external>:9999
redirect_port udp <internal>:9999 <external>:9999

# Address Redirection Rules
redirect_address <internal> <external>
-----------------------------------

  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




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