fassa isso conpile o kernel com as seguinte regras
options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #print information about options IPFIREWALL_FORWARD #enable transparent proxy support options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity options IPFIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT #divert sockets options IPFILTER #ipfilter support options IPFILTER_LOG #ipfilter logging options IPSTEALTH #support for stealth forwarding options TCPDEBUG options DUMMYNET options BRIDGE options QUOTA #enable disk quotas options SUIDDIR options PANIC_REBOOT_WAIT_TIME=20 options NMBCLUSTERS=131072 options HZ=1000 options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN options TCPDEBUG options ACCEPT_FILTER_DATA options ACCEPT_FILTER_HTTP /sbin/ipfw add 7 fwd 127.0.0.1:1020 tcp from 192.168.100.0/24 to any 80 ----- Original Message ----- From: "Carlos Eduardo Mukoyama" <[EMAIL PROTECTED]> To: "Lista de discussao do grupo FUG-BR" <Freebsd@fug.com.br> Sent: Monday, November 28, 2005 4:15 PM Subject: Re: [FUG-BR] Configuracao de Proxy Transparente Sou novato em FreeBSD, como faço para adicionar essas regras?? On 11/28/05, Marcelo Vilela <[EMAIL PROTECTED]> wrote: > > Olá, > > Confira se a > > option IPFIREWALL_FORWARD > > está habilitada no kernel, caso não adcione-a, recompile-o e reinstale-o. > > Abraços. > > Em 28/11/05, Anderson Watanabe de > Oliveira<[EMAIL PROTECTED]> escreveu: > > Pessoal, > > > > > > > > Sou novato no FreeBSD, e estou precisando de uma ajuda... > > > > Preciso colocar as regras de proxy transparente, para obrigar a todos > usarem > > o squid, sem a necessidade de configurar no browser. > > > > as regras que coloquei, foram: > > > > # ipfw add fwd 192.168.0.5,3128 tcp from > > 192.168.0.0/24to > > any 80 > > # ipfw add pass tcp from any to me 3128 > > > > No entando, ao executar a primeira linha, tenho a seguinte mensagem: > > > > ipfw: getsockopt(IP_FW_ADD): Invalid argument > > > > > > O que está errado? Como posso fazer a regra corretamente? > > > > > > Grato, > > > > Anderson. > > > > > > _______________________________________________ > > Freebsd mailing list > > Freebsd@fug.com.br > > http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br > > > > _______________________________________________ > Freebsd mailing list > Freebsd@fug.com.br > http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br > -- Carlos Eduardo Mukoyama Bacharelado em Sistemas de Informação LTIA - UNESP/Bauru _______________________________________________ Freebsd mailing list Freebsd@fug.com.br http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br _______________________________________________ Freebsd mailing list Freebsd@fug.com.br http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br