-t | -target_address address
Set the target address. When an incoming packet not associ-
ated with any pre-existing link arrives at the host machine,
it will be sent to the specified address.
The target address may be set to 255.255.255.255, in which
case all new incoming packets go to the alias address set by
-alias_address or -interface.
If this option is not used, or called with the argument
0.0.0.0, then all new incoming packets go to the address
specified in the packet. This allows external machines to
talk directly to internal machines if they can route packets
to the machine in question.
Fabricio wrote:
N�o sei se h� a necessidade "me confirme Jean :)" mas meu rc.firewall est� assim:
/sbin/ipfw -f flush /sbin/ipfw -q add 00050 divert 8668 ip from any to any via xl0 # substitua xl0 por sua interface externa /sbin/ipfw -q add 00100 allow ip from any to any via lo0
Abra�os
Fabricio ----- Original Message ----- From: "Jean Milanez Melo" <[EMAIL PROTECTED]> To: "Grupo Brasileiro de Usuarios FreeBSD" <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 5:23 PM Subject: Re: [FUGSPBR] Redirecionamento c/ IPFW
Boa tarde,
use o natd para isso.
no /etc/rc.conf coloque:
natd_enable="YES" natd_interface="fxp0" # substitua fxp0 por sua interface externa natd_flags="-u -l -f /etc/natd.conf"
No arquivo /etc/natd.conf o IP interno a ser direcionado e a porta, por ex:
redirect_port tcp 10.0.0.6:25 25 redirect_port tcp 10.0.0.6:110 110
Espero ter ajudado.
Atenciosamente Jean Milanez Melo FreeBSD Brasil LTDA. http://www.freebsdbrasil.com.br
On Mon, 10 Mar 2003, Ivan Carlos Ricci wrote:
Boa Tarde
No FreeBSD 4.5, necessito fazer um redirecionamento de portas de um IP externo p/ um IP interno inv�lido(10.0.0.x) Sei que h� como fazer isso usando o fwd do IPFW, sendo que o kernel est� habilitado p/ IPFIREWALL_FORWARD, por�m o redirecionamento n�o funciona. Como devo fazer o redirecionamento de um IP externo de uma porta
espec�fica
p/ um ip interno 10.0.0.x?
[]s IVAN
_______________________________________________________________ Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
---------------------------------------------------------------------------- ----
_______________________________________________________________ Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
_______________________________________________________________ Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
-- -=-=-=-=-=-=-=-=-=-
William David Armstrong System Administrator Bio Systems.
http://biohazard.kick-ass.org:8080/ [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ 102537476 ICQ 27550645
_______________________________________________________________ Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
