Amigo, configurar do jeito que voce está fazendo, seguindo a risca o tutorial do Juanillo não vai funcionar mesmo. vou explicar porque: Eu demorei uns tres dias de incansável trabalho pra conseguir fazer uma bridge que funcionasse a lan local e a wireless. Para isso tive que fundir dois tutoriais:
viewtopic.php?f=39&t=65257 (Como fazer um AP com BFW e uma placa com Chipset atheros ( Por Juanillo )) e;
viewtopic.php?f=39&t=65278&p=144870#p144870 (Como Converter um Router Brazilfw em AP ( Acces Point ) – ( Autor: elpelado ).
O primeiro ensina como fazer um PC-AP recebendo o sinal da internet pela placa de rede wireless ( o que não é o seu caso nem foi o meu). O segundo foi feito com base no BFW 2.30, que ainda usava disquetes para instalação e configuração.
foi assim que eu consegui:
estando tudo instalado, inclusive a placa wireless (ath0) e o addon athap.tgz, voce vai no WebAdmin --> Configurações da rede. Vá até onde está a guia "Configuração da rede wireless (WLAN)" , coloque como dispositivo da rede WLAN a sua placa wireless (ath0) e configure o end IP dentro da faixa de IP da sua placa de rede local ( se for a eth0 -> 192.168.0.1 , coloque a ath0 em qualquer ip dentro dessa faixa, ex: 192.168.0.2, e a mascara de rede igual)
Backup e reboot.
Reiniciado e confirmada a mudança, vamos editar o arquivo "/etc/rc.d/pkgs/mod.zz_bridge".
Isso pode ser feito tanto pela linha de comando ou pelo proprio WebAdmin em Atheros Wi-Fi AP --> Others --> Edit Bridge Configurations File.
Olhe como ficou a conf do meu arquivo:
- Código: Selecionar todos
#
# Coyote Bridge Configuration Script
# Claudio Roberto Cussuol - 02/24/2005
#
# To enable the bridge remove or comment the next line
#BRIDGE=DISABLED
if [ "$BRIDGE" != "DISABLED" ] ; then
echo Loading Bridge modules...
(cat /etc/modules.bridge; echo) |
while read module args
do
case "$module" in
\#*|"") continue ;;
esac
insmod /lib/modules/bridge/"$module".o $args > /dev/null
done
fi
#Adding the Interfaces
#Usually eth1 = Internet Interface - Do not add it to the bridge
#To Enable the Bridge uncomment these lines
brctl addbr br0
ifconfig eth0 up
ifconfig eth0 0.0.0.0
brctl addif br0 eth0
#ifconfig eth2 up
#ifconfig eth2 0.0.0.0
#brctl addif br0 eth2
#ifconfig eth3 up
#ifconfig eth3 0.0.0.0
#brctl addif br0 eth3
#ifconfig eth4 up
#ifconfig eth4 0.0.0.0
#brctl addif br0 eth4
ifconfig ath0 up
ifconfig ath0 0.0.0.0
brctl addif br0 ath0
# ... you can add as many interfaces as you have just copying these lines ...
#In order to use the bridge as your local interface you
#have to add this line to the main configuration file (/etc/coyote.conf):
#IF_LOCAL=br0
Um detalhe importante é : comente a linha onde está escrito:
BRIDGE=DISABLED
Descomente as linhas referentes a eth0 e adicione as linhas referentes a ath0.
Vá agora em "/etc/coyote/ firewall" e acressente a seguinte linha:
- Código: Selecionar todos
admin Y permit tcp any any 8180 #WebAdmin
Vá agora em seu arquivo mestre de configuração e troque o ath0 por br0.
- Código: Selecionar todos
INETTYPE='PPPOE'
DNS1='200.204.000.010'
DNS2='200.204.000.138'
LOCAL_IPADDR='192.168.0.1'
LOCAL_NETMASK='255.255.255.0'
WLAN_IPADDR='192.168.0.3'
WLAN_NETMASK='255.255.255.0'
NETMASK='255.0.0.0'
PPPOE_USERNAME='xxxxxxxxxxxxxx'
PPPOE_PASSWORD='xxxxxxxxxx'
PPPOE_IDLE='NO'
DHCPSERVER='YES'
DHCPD_START_IP='192.168.0.10'
DHCPD_END_IP='192.168.0.253'
ADMIN_AUTH='xxxxxxxxxxxxxxx/'
IF_LOCAL='eth0'
IF_INET='eth1'
IF_WLAN='br0'
USE_DNS_CACHE='YES'
ENABLE_CRON='YES'
LANGUAGE_WEBADMIN='BRZ'
TZ=EST3
backup e reboot.
Vai funcionar.
Faz ai e posta os resultados, ok?
Editado: 19/04/2009Após a atualização para o SP1+ da versão 2.31.10, voce deve fazer a edição do Arquivo mestre de configuração modificando as linhas abaixo :
IF_LOCAL='br0'
IF_WLAN='br0'
Editado pela última vez por naufragoweb em Sáb Abr 18, 2009 4:44 pm, em um total de 3 vezes.