cara a regra que fa nat eh o divert e fica mais ou menos assim:
$fwcmd add 99 divert natd ip from any to any via $oif
falows
Versão Imprimível
cara a regra que fa nat eh o divert e fica mais ou menos assim:
$fwcmd add 99 divert natd ip from any to any via $oif
falows
ae cara da uma olhada nesse tutorial...
http://www.free.bsd.com.br/noticia.p...T=64&PARA=topo
falows
Coloque no kernel as opcoes:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT
options DUMMYNET #essa opcao é para controle de banda
options HZ=1000
apos recompilar o kernel...
/sbin/natd -s -m -n rl0
( rl0 é o nome da placa de rede)
ipfw add divert natd all from any to any via rl0
Sem mais,
:twisted:
seta no kernel esta opcoes
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT
depois criar um script com elas linhas
################
/sbin/ipfw add 0050 divert natd all from any to any via rl0
/sbin/natd -l -f /etc/natd.conf
:(6) :good: :twisted:
aproveitando a deixa... onde (arquivo??) fica as regras do ipfw ???