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