RES: [FUGSPBR] NAT 1:1

Marcello Silva Coutinho marcelloc em trf1.gov.br
Ter Set 10 14:27:30 BRT 2002


> Tem como no FreeBSD fazer nat 1:1, assim como no linux com o IPTABLES?

no 'man natd', voce encontra:

 -redirect_address localIP publicIP
                 Redirect traffic for public IP address to a machine on the
                 local network.  This function is known as static NAT.  Nor-
                 mally static NAT is useful if your ISP has allocated a
small
                 block of IP addresses to you, but it can even be used in
the
                 case of single address:

                       redirect_address 10.0.0.8 0.0.0.0

                 The above command would redirect all incoming traffic to
                 machine 10.0.0.8.

                 If several address aliases specify the same public address
as
                 follows

                       redirect_address 192.168.0.2 public_addr
                       redirect_address 192.168.0.3 public_addr
                       redirect_address 192.168.0.4 public_addr

                 the incoming traffic will be directed to the last
translated
                 local address (192.168.0.4), but outgoing traffic from the
                 first two addresses will still be aliased to appear from
the
                 specified public_addr.


veja tambem em http://ezine.daemonnews.org/200202/multiweb.html, um exemplo
de nat usando o "natd.conf"



att,
Marcello Silva Coutinho
________________________________________________
Para sair da lista visite o URL abaixo:
http://www2.fugspbr.org/mailman/listinfo/fugspbr



Mais detalhes sobre a lista de discussão freebsd