[FUG-BR] Uma ajuda para NAT com PF

Renato Botelho rbgarga em gmail.com
Quinta Agosto 6 14:48:39 BRT 2009


2009/8/6 Enio Marconcini -:- www.Enio.Pro.Br -:- <eniorm at gmail.com>:
> 2009/8/6 Renato Botelho <rbgarga at gmail.com>
>
>> pfctl -Fa && pfctl -f /etc/pf.conf
>>
>> depois disso, execute e cole os resultados
>>
>> # pfctl -sa
>> # sysctl net.inet.ip.forwarding
>> # ifconfig
>> # netstat -nr
>>
>> --
>> Renato Botelho
>> -------------------------
>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>
>
> aí vai
>
> hobbit# pfctl -Fa
> rules cleared
> nat cleared
> 0 tables deleted.
> altq cleared
> 0 states cleared
> source tracking entries cleared
> pf: statistics cleared
> pf: interface flags reset
> hobbit#
>
> (para checar a sintaxe)
> hobbit# pfctl -n -f /etc/pf.conf
> hobbit#
>
> (carrego as regras)
> hobbit# pfctl -f /etc/pf.conf
> hobbit#
>
> (show nat)
> hobbit# pfctl -sn

# pfctl -sa

Do seu laptop

# traceroute -n www.uol.com.br

-- 
Renato Botelho


Mais detalhes sobre a lista de discussão freebsd