Editing Networking
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | + | '''The Comprehensive Alternative Networking Guide''' | |
- | + | A lot of the alternative networking methods on this wiki and in the forum have out-date information. This guide is for OS2008 Diablo. For more detailed information on a specific interface see the relevant wiki page or search the forums. | |
- | + | (FYI: to add a new page to the wiki just navigate to it http://wiki.maemo.org/your-new-page this was not obvious to me until I remembered how wikipedia is set up) | |
+ | ------------------------- | ||
- | + | '''We will cover:''' | |
+ | built-in wifi (Managed), external USB wifi (r8187), ethernet (via USB), bluetooth PAN, usb networking, and forwarding traffic to a wired computer. | ||
- | + | == Built-in wifi (Managed) == | |
+ | The built-in wireless card is pictured in detail here: http://talk.maemo.org/showthread.php?t=30032&highlight=antenna | ||
- | + | This interface is wlan0 and uses the closed-source cx3110x driver. For the NITdroid project an open-source driver http://stlc45xx.garage.maemo.org was created. As it stands, the internal wifi chipset is not capable of injection with either of these drivers. | |
- | + | A useful utility is WifiInfo which shows signal strength, internal IP address, power savings toggle and a AP scan option. | |
== External USB wifi (r8187) == | == External USB wifi (r8187) == | ||
Line 18: | Line 21: | ||
The Alfa goes for about $35, while the knock-off is about $25. | The Alfa goes for about $35, while the knock-off is about $25. | ||
- | You are going to need more power than the N810 can provide for itself. There are many ways to do this. [http:// | + | You are going to need more power than the N810 can provide for itself. There are many ways to do this. [[http://maemo.org/ EXAMPLES]] of power injection |
- | Download | + | Download and untar this archive containing the compiled drivers. |
- | + | For example, download [[http://p7230.homelinux.com/os2008/rtl8187_diablo.tar here]] to Documents | |
# cd /home/user/MyDocs/.documents/ | # cd /home/user/MyDocs/.documents/ | ||
# tar -xvf rtl8187_diablo.tar | # tar -xvf rtl8187_diablo.tar | ||
Line 30: | Line 33: | ||
Script: | Script: | ||
- | |||
echo host > /sys/devices/platform/msusb_hdrc/mode | echo host > /sys/devices/platform/msusb_hdrc/mode | ||
insmod ieee80211_crypt-rtl.ko | insmod ieee80211_crypt-rtl.ko | ||
Line 36: | Line 38: | ||
insmod r8187.ko | insmod r8187.ko | ||
echo -n 1 > /sys/bus/usb/devices/1-1/bConfigurationValue | echo -n 1 > /sys/bus/usb/devices/1-1/bConfigurationValue | ||
- | |||
The first line tells the N810 to set the USB mode as host | The first line tells the N810 to set the USB mode as host | ||
Line 95: | Line 96: | ||
which should point to your router's admin page (default gateway). | which should point to your router's admin page (default gateway). | ||
- | ===nefarious use=== | + | --------- |
+ | ===nefarious use warning=== | ||
while on the subject, instead of connecting to router, let's change the mode from Managed to Monitor (injection-capable) | while on the subject, instead of connecting to router, let's change the mode from Managed to Monitor (injection-capable) | ||
Line 112: | Line 114: | ||
Deauthenticate attack. The X's are the BSSID of the Access Point/Router | Deauthenticate attack. The X's are the BSSID of the Access Point/Router | ||
- | # aireplay wlan1 -0 0 | + | # aireplay wlan1 -0 0 XX:XX:XX:XX:XX:XX -e ROUTER_NAME |
Deauthenticate user with the c parameter. | Deauthenticate user with the c parameter. | ||
- | # aireplay wlan1 -0 0 | + | # aireplay wlan1 -0 0 XX:XX:XX:XX:XX:XX -e ESSID -c XX:XX:XX:XX:XX:XX |
Fake authentication. | Fake authentication. | ||
- | # aireplay wlan1 -1 5 | + | # aireplay wlan1 -1 5 XX:XX:XX:XX:XX:XX |
ARP attack. Takes awhile to start injecting packets. ARPs good, ACKs bad. | ARP attack. Takes awhile to start injecting packets. ARPs good, ACKs bad. | ||
- | # aireplay wlan1 -3 | + | # aireplay wlan1 -3 XX:XX:XX:XX:XX:XX -e ESSID |
== Ethernet == | == Ethernet == | ||
+ | Save the following .deb packages [[http://p7230.homelinux.com/os2008/dbus-scripts_1.0.3_armel.deb dbus-scripts]] and [[http://p7230.homelinux.com/os2008/usbLAN_0.4.6_armel.deb usbLAN]] to Documents. | ||
- | + | # cd /home/user/MyDocs/.documents/ | |
+ | # dpkg -i dbus-scripts_1.0.3_armel.deb | ||
+ | # dpkg -i usbLAN_0.4.6_armel.deb | ||
- | = | + | If you have a USB=>Ethernet dongle with the RTl8150 chipset, specifically the Linksys USB100M (ebay about $15 w/ shipping) then it should be plug and play. Plug ethernet cable into adapter dongle, dongle into USB OTG cable and OTG cable into N810. It should automatically connect to the dummy IAP "WIRED" and then "Unable to to connect, no file system available" should popup. At this point, you should be able to ping google.com and web browse. |
- | + | ||
- | + | ||
== Bluetooth PAN == | == Bluetooth PAN == | ||
+ | On the host computer, install blueman. Blue Man. Not bluemon (installed by default). | ||
+ | Reboot (or you could open a terminal and run blueman-applet). | ||
- | + | *Blueman>Local Services>Network> | |
+ | **Check "Group Network" and "Network Access Point (NAP)". | ||
+ | **Select dnsmasq, change IP address to 192.168.3.14. | ||
+ | **Check "Enable Routing (NAT)" | ||
+ | **Finally select "Let Blueman handle the network interfaces" | ||
+ | *Apply. | ||
+ | |||
+ | Pair tablet with computer. | ||
+ | *Select BT applet>Devices>New. | ||
+ | *Select your computing device and Pair. | ||
+ | **The computer will popup (sometimes minimized) asking for the passcode that the tablet provides. Make sure "trusted" is checked. If you SElinux installed it may ask if you want to always set as trusted, do so. | ||
+ | |||
+ | Go here and follow directions to install PC Connectivity Manager packages. | ||
+ | |||
+ | *Settings>Control Panel>PC-Connectivity Manager>Advanced | ||
+ | **Select [...] next to Environments>New>Name it bluetooth. | ||
+ | ***Connection type>Bluetooth>Options select enable. | ||
+ | ****Under "Bluetooth address" click Search to pair with your computer. | ||
+ | *Click Save>Basic (make sure Bluetooth is checked)>Apply. | ||
+ | |||
+ | *If you SElinux installed on your computer it may ask if you want to always set as trusted, do so. | ||
+ | |||
+ | *The BT icon/applet should now be blue. | ||
+ | |||
+ | Now open nano or your favorite text editor as root | ||
+ | # nano /etc/resolv.conf | ||
+ | and add the router's IP/gateway to the file on a new line | ||
+ | NAMESERVER 192.168.1.1 | ||
+ | CTRL+X then y and enter | ||
+ | |||
+ | You should now be able to ping google.com | ||
== USB networking == | == USB networking == | ||
+ | Make sure you have the wonderful PC Connectivity Manager installed on the tablet. | ||
+ | |||
+ | * Main Menu>Settings>Control Panel>PC Connectivity Manager | ||
+ | ** Advanced> | ||
+ | *** Select Environments [...] and New and input USB | ||
+ | ** Select USB Network>Options>drop-down next to Mass Storage change to Network | ||
+ | **Default values here will work, should be: | ||
+ | ***IP adress 192.168.2.15 | ||
+ | ***Gateway 129.68.2.14 | ||
+ | ***Network Mask: 255.255.255.0 | ||
+ | **Save>Apply | ||
+ | |||
+ | ===Fedora=== | ||
+ | |||
+ | *System>Administration>Network>(Input root password) | ||
+ | **>New>Ethernet connection>Forward>Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget (usb0) | ||
+ | **>Forward>Select Statically set IP addresses> | ||
+ | ***Address: 192.168.2.14 | ||
+ | ***Subnet mask: 255.255.255.0 | ||
+ | ***Default gateway address: 192.168.2.14 | ||
+ | ***Primary DNS: 209.18.47.61 (or 4.2.2.2 or whatever DNS server you like) | ||
+ | ***Secondary DNS: 209.18.47.62 | ||
+ | **>Forward>Apply | ||
+ | |||
+ | NetworkManager should now successfully connect to it (initially networkmanager should have seen the USB connection but fail at connecting) | ||
+ | |||
+ | From the tablet ping 192.168.2.14 if that works, then it's time to let the tablet open to the Internet | ||
+ | *System>Administration>Firewall>(Input root password)> | ||
+ | ** Hit OK to warning dialog | ||
+ | (actually it says Close)>Trusted Interfaces> | ||
+ | ** Check usb0>Apply | ||
+ | Now you should be able to ping google.com from the tablet. If google.com can't be pinged try 4.2.2.2 to see if you picked a faulty DNS server. | ||
+ | |||
+ | |||
+ | XP & Debian-based (Ubuntu) | ||
+ | Follow directions HERE | ||
+ | |||
+ | Vista | ||
+ | You are out of luck (AFAIK). RDNIS gadget drivers seem to be unsupported. | ||
+ | Use adhoc instead, if the Windows driver for your laptop's card supports it. | ||
- | |||
- | + | ---- | |
- | [[Category: | + | Special Thanks to: |
+ | qwerty12, paulkoan, texrat, Patrik Flykt, the PC Connectivity team and everyone else involved. | ||
+ | [[Category:Users]] |
Learn more about Contributing to the wiki.