Ciao,
this is my first post.
Friend of mine use a 3G/LTE Internet connection with a daily cap (1 GB/day), so I would like to use my (unused) raspberry pi (vers.B) + USB Wifi + with OpenWRT in order to give him an access point that limit speed and block Internet access (on access point side) in order to avoid to exceed the limit.
I thought something like:
[Internet] -) ) ( ( - [GSM/3G/LTE Dongle 1GB/Day] <WiFi AP SSID: ISPWifi > -) ) ( (- <Wifi:Client> [Raspberry Pi + OpenWRT] <Wifi AP SSID: MySSID > - ) ) ( ( - <Wifi:Client> [Mobile/Tablet/PC/etc…]
ISP Side:
SSID (Es: ISPWifi )
Wifi Password (Es: 12345678)
Wifi Protection/Encryption: WPA2/TKIP
Home Side:
SSID (Es: MySSID)
Wifi Password (Es: ABCDEFGHI )
Wifi Protection/Encryption: WPA2/TKIP
My 1st question : is it possible ??? (I guess yes, so…)
Downloaded and installed OpeWRT on SD, connect Rpi on LAN (tried it first on my home environment) , change on console network.lan.proto=dhcp, commit, then
Web side (LuCI):
- System -> System -> hostname
- System -> System -> TimeZone [Europe/Rome]
- System -> Administration -> password [enable SSH]
On console/ssh side:
opkg install usbutils
opkg install kmod-rtl8192cu
opkg install tc
opkg install iwinfo
opkg install wpa-supplicant
opkg install hostapd
Via LuCI I tried to connect as CLIENT to the “ISPWifi” , then create another “interface” (wlan0-1) as ACCESS POINT, but it doesn’t connect to ISPWifi (treiple-check the ISPWifi password) and I don’t find any MySSID wifi SSID bracasted (on LuCI they have 0% under the radio signal)
Ok it doesn’t work, but is it conceptually correct ?
What's wrong ?
Wifi Status
root@Doraemon:~# wifi status
{
"radio0": {
"up": false,
"pending": false,
"autostart": false,
"disabled": false,
"config": {
"hwmode": "11g",
"path": "platform\/bcm2708_usb\/usb1\/1-1\/1-1.3\/1-1.3:1.0",
"htmode": "HT20",
"txpower": 20,
"channel": "7",
"country": "IT",
"disabled": false
},
"interfaces": [
{
"section": "@wifi-iface[0]",
"config": {
"ssid": "ISPWifi",
"mode": "sta",
"bssid": "XX:XX:XX:XX:XX:XX",
"key": "12345678",
"encryption": "none",
"network": [
"MyNet"
],
"mode": "sta"
}
},
{
"section": "@wifi-iface[1]",
"config": {
"mode": "ap",
"encryption": "none",
"ssid": "MySSID",
"mode": "ap",
"network": [
"MyNet"
]
}
}
]
}
}
Thanks in advance
--
MuT
(Last edited by mutlab on 28 Nov 2016, 13:44)