New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

bubba connect via wifi

Got problems with your B2 or B3? Share and get helped!
Post Reply
gringo
Posts: 10
Joined: 19 Feb 2011, 03:39

bubba connect via wifi

Post by gringo »

hello

how i can i connect my bubba via wifi?

i try with iwconfig, but no ip from router. i use wpa...

thx for help :)
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: bubba connect via wifi

Post by Ubi »

As the information in your post is so minimal and cryptic, I'd suggest you read page 6 of the getting started manual you received. This describes connecting to the B3 server via wireless.

If you need more info, read the full manual which is available here: http://download.excito.net/web/B3/B3-UM-eng.pdf. The info you need is on page 61-65.
gringo
Posts: 10
Joined: 19 Feb 2011, 03:39

Re: bubba connect via wifi

Post by gringo »

thanks for the answer. i try to explain:

ok.. i have a thomson router with an integrated access point. now, i want connect the bubba2 to this thomson router over wifi.

on webgui, i only can configure the wlan interface as an access point, but i want us the wifi as client to connect to the thomson router.

i hope its easier to understand... and sorry for my english...
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: bubba connect via wifi

Post by Cheeseboy »

Hi Gringo,

This is the wrong place for this question, you should have posted it in the thread for Bubba2/B3.

The software controlling the WiFi on the Bubba2 and B3 is called hostapd. It is designed to be an access point (hence the "ap" in the name), not a client. Some googling gave me the idea that it might be configured to be a client:
http://lists.shmoo.com/pipermail/hostap ... 02217.html
But it's not what it's designed to do.

You might want to email excito directly with this question.

Best regards,

Cheeseboy
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: bubba connect via wifi

Post by Ubi »

generally the wifi specifications do not allow to connect access points to each other, which is a shame. I guess the best way to go is to put a USB dongle in the back of your B3 and us it as a client to the router.
phil
Posts: 3
Joined: 19 Feb 2011, 19:30

Re: bubba connect via wifi

Post by phil »

Maybe I can help...

I use both my bubba2 and bubba3 (bubba1 should be similar in this regard, or?) without any LAN connectors. Only the power plug is plugged in. It is all working over Wifi, I think you would like to have a similar setup!?


Maybe my solution is not the best/most elegant one (some of these network settings could be also set with some more high level unix/debian/bubba specific tools), but in the end it is very easy and effective.
I've used this setup since the day I got my bubba2 (and then bubba3) and it still works without problems.

Please read the whole message before you edit any file:

So first of all I edited my /etc/network/interfaces file that now contains also this section (at the end, leave the settings for eth0, eth1 unchanged):

Code: Select all

auto mon.wlan0
iface mon.wlan0 inet static
        address 192.168.0.2
        gateway 192.168.0.1
        netmask 255.255.255.0
        wpa-psk 1111111111111111111111111111111111111111111111111111111111111111
        wpa-ssid mySSID
        pre-up ifconfig mon.wlan0 down && ifconfig wlan0 down
        pre-up iptables-restore < /etc/iptables.rules
        up iwconfig mon.wlan0 mode managed
        post-down iptables-save > /etc/iptables.rules
on bubba2 it is similar without the "mon." part...
I think also the ifconfig xyz downs are not necessary needed, but I added them to make sure that everything is reset.

The wpa-psk can be generated with wpa_passphrase (maybe you need to install wpasupplicant first?)

Now you need to add some iptable rules (otherwise all traffic will be blocked), for example I use:

Code: Select all

...
-A INPUT -i mon.wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i mon.wlan0 -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i mon.wlan0 -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -i mon.wlan0 -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A INPUT -i mon.wlan0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i mon.wlan0 -p tcp -m tcp --dport 80 -j ACCEPT
...
or (bubba2):

Code: Select all

...
-A INPUT -i wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 22 -j ACCEPT
...
As you can see from the interface settings I store the rules in /etc/iptables.rules.
But you can choose any location (maybe it is not the best place).

You can add rules to iptables with "iptables -A .... " (as above) and then dump the whole rule set with "iptables-save > /etc/iptables.rules".
Note: maybe you should bring down your wlan interface first (ifdown mon.wlan0; ifdown wlan0) before you save the iptables (or you make changes to it with a text editor) since the "post-down" step (see above) will override the file (if you have already added the "iface mon.wlan0 inet static" part to your interfaces file).

Please pay attention with the configuration of the /etc/network/interface file since if it contains errors or wrong settings it could happen that you are unable to log in to your bubba (e.g. the network interfaces do not come up and then also SSH and maybe also the normal LAN/WAN connections eth0 eth1 don't work anymore)...
Anyways, you can restore the bubba or simply edit the file with another computer (by connecting the HDD).
Maybe you should make a backup copy of the file first.

If it answers your question... I hope I understood your question right ... and it works also for you, somebody could write a little howto.

Cheers,
Philipp
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: bubba connect via wifi

Post by Ubi »

well done! But if I'm correct your B3 and B2 are now wifi clients and no longer act as base stations right?
phil
Posts: 3
Joined: 19 Feb 2011, 19:30

Re: bubba connect via wifi

Post by phil »

Ubi wrote:well done! But if I'm correct your B3 and B2 are now wifi clients and no longer act as base stations right?
You are totally right. I wanted to write that but then I forget it...
I personally don't need to have both an access point and the ad-hoc connection but I think (please correct me if I'm wrong) that you can set wlan0 to managed and mon.wlan0 to master mode?
I didn't test that setup since I didn't require it, but if somebody knows more about that (and posts the interface configuration) I could test it for you.
Last edited by phil on 20 Feb 2011, 08:37, edited 1 time in total.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: bubba connect via wifi

Post by Ubi »

I know too little of wireless networking to have a meaningful comment on this, but I do think that anyone that manages Bubba to combine a wifi client and a master has really improved the machine, as you now also have a wifi repeater for free!My gut feeling says it shouldn't be that difficult, yet I've never seen anyone do it, with any machine.
Post Reply