Ok, I successful connect with wireless DHCP after router reflash.
I think that is not problem with network config oraz wireless, because Gargoyle get now ip address form wirless DHCP and on ssh connection from router console I can ping any internet host.
But no pings from any Lan host to internet.
Firewall got bug or somethink is wrong with masquerade,

dns?
I compare configs form LuCi and Gargoule based on Wireless dhcp client and gateway mode on eth0.
Configs from LuCi (working):
Code: Select all
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '192.168.2.1'
config 'interface' 'wan'
option 'proto' 'dhcp'
option 'ifname' 'wifi0'
Code: Select all
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'channel' 'auto'
option 'disabled' '0'
option 'diversity' '0'
config 'wifi-iface'
option 'device' 'wifi0'
option 'encryption' 'none'
option 'ssid' 'Fonera'
option 'network' 'wan'
option 'mode' 'sta'
option 'txpower' '18'
Gargoyle configs:
Code: Select all
root@OpenWrt:/# cat /etc/config/network
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '192.168.2.1'
option 'dns' '192.168.2.1'
config 'interface' 'wan'
option 'proto' 'dhcp'
option 'type' 'bridge'
Code: Select all
root@OpenWrt:/# cat /etc/config/wireless
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'channel' '2'
config 'wifi-iface' 'cfg2'
option 'device' 'wifi0'
option 'mode' 'sta'
option 'network' 'wan'
option 'ssid' 'Fonera'
option 'encryption' 'none'