Hello everybody.
I'm using my old fonera to connect as client to a remote router and to share internet through eth0.
Mainly, the idea is to use masquerading to share internet on a new net.
The net i'm connected to is a WOW FI (fastweb guest net), which support wpa2 PEAP authenication.
I have LUCI but I usually prefer to configurate the files manually through ssh.
Fonera is mounting
BusyBox v1.15.3 (2011-11-24 02:38:24 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
Backfire (10.03.1, r29592) ------------------------
* 1/3 shot Kahlua In a shot glass, layer Kahlua
* 1/3 shot Bailey's on the bottom, then Bailey's,
* 1/3 shot Vodka then Vodka.
---------------------------------------------------
the configuration is:
/etc/wireless
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
# option 'diversity' '0'
# option 'txpower' '10'
option 'channel' '1'
config 'wifi-iface'
option 'ssid' 'WOW FI - FASTWEB'
option 'device' 'wifi0'
option 'mode' 'sta'
option 'bssid' '12:23:31:F3:57:E0'
option 'network' 'wwan'
option 'encryption' 'wpa2+ccmp'
option 'eap_type' 'peap'
option 'auth' 'MSCHAPV2'
option 'identity' 'myUser'
option 'password' 'myPwd'
/etc/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 'proto' 'static'
option 'ipaddr' '192.168.2.254'
option 'netmask' '255.255.255.0'
option 'ifname' 'eth0'
config 'interface' 'wwan'
option 'proto' 'dhcp'
option 'hostname' 'BananaJoe'
/etc/firewall
config 'defaults'
option 'input' 'DROP'
option 'output' 'DROP'
option 'drop_invalid' '1'
option 'forward' 'DROP'
config 'zone'
option 'name' 'lan'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'network' 'lan'
option 'forward' 'ACCEPT'
config 'zone'
option 'name' 'wan'
option 'masq' '1'
option 'output' 'ACCEPT'
option 'input' 'DROP'
option 'forward' 'DROP'
option 'network' 'wwan'
// deafult rules
config 'forwarding'
option 'dest' 'wan'
option 'src' 'lan'
/etc/dhcp
config 'dnsmasq'
option 'domainneeded' '1'
option 'boguspriv' '1'
option 'filterwin2k' '0'
option 'localise_queries' '1'
option 'rebind_protection' '1'
option 'rebind_localhost' '1'
option 'local' '/lan/'
option 'domain' 'lan'
option 'expandhosts' '1'
option 'nonegcache' '0'
option 'authoritative' '1'
option 'readethers' '1'
option 'leasefile' '/tmp/dhcp.leases'
option 'resolvfile' '/tmp/resolv.conf.auto'
config 'dhcp' 'lan'
option 'interface' 'lan'
option 'start' '100'
option 'limit' '150'
option 'leasetime' '12h'
config 'dhcp' 'wan'
option 'interface' 'wan'
option 'ignore' '1'
Now the problem:
The fonera sometimes disconnect from the wifi.
I noticed a strange behaviour on ifconfig:
root@OpenWrt:~# ifconfig
ath0 Link encap:Ethernet HWaddr 00:18:84:80:AB:F5
inet addr:100.93.61.242 Bcast:100.93.63.255 Mask:255.255.192.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:917618 errors:0 dropped:2 overruns:0 frame:0
TX packets:607578 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1137770644 (1.0 GiB) TX bytes:147177819 (140.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:18:84:80:AB:F4
inet addr:192.168.2.254 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:611231 errors:0 dropped:0 overruns:0 frame:0
TX packets:916639 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:147911654 (141.0 MiB) TX bytes:1150167698 (1.0 GiB)
Interrupt:4 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3659 (3.5 KiB) TX bytes:3659 (3.5 KiB)
wifi0 Link encap:UNSPEC HWaddr 00-18-84-80-AB-F5-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1916103 errors:19 dropped:0 overruns:0 frame:168069
TX packets:572810 errors:732 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:1447454944 (1.3 GiB) TX bytes:164136387 (156.5 MiB)
Interrupt:3 Memory:b0000000-b000ffff
RX packets:1916103 errors:19 dropped:0 overruns:0 frame:168069
TX packets:572810 errors:732 dropped:0 overruns:0 carrier:0
Might it be the cause of the disconnection? Is it normal? thank you for your support.
Reagards.