natd redirect

Moritz Fromwald mfromwald at
Mon Apr 7 15:55:47 PDT 2003

> On Mon, Apr 07, 2003 at 06:41:39PM +0200, Moritz Fromwald wrote:
> > Hello
> > How is the syntax for natd to redirect udp as well 
> > as tcp?
> > I'd like to forward tcp 4662, 4711 and udp 4662. 
> > Is it possible to change thees ports, without 
> > stopping natd?
> You will need to add a separate rule to handle the udp redirection, I
> believe, if you only want to redirect one port (or indeed, just a subset of
> all ports).  If you want to redirect _all_ ports to a different address, use
> the -redirect_proto or -redirect_address options.
> I don't think it's possible to alter the rules without restarting the
> daemon, so you will have to stop it, rework your arguments and start again.
> I could be wrong, though.
> HTH,
> Dan
> -- 
> Daniel Bye
The question was how to setup this extra rule, I 
found out, that you can specify them by adding the -
redirect_port option twice. Thx a lot!


Moritz Fromwald

More information about the freebsd-questions mailing list