maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Nokia 770 as USB wifi device. (https://talk.maemo.org/showthread.php?t=2206)

Coolty 2006-06-16 05:43

Nokia 770 as USB wifi device.
 
Just a crazy thought, but would it be at all possible to use the nokia 770 as a wifi card to access the internet with on your PC via usb?
I'm sure it IS possible, but who is willing to do it ;)

=DC= 2006-06-16 09:33

Quote:

Originally Posted by Coolty
Just a crazy thought, but would it be at all possible to use the nokia 770 as a wifi card to access the internet with on your PC via usb?
I'm sure it IS possible, but who is willing to do it ;)

Interesting idea, could serve as a nice hardware firewall with the right configuration as well I would think.

HardCoder 2006-06-16 12:43

Woulden't it be easier to just set it up as a router and use usb networking? That should be possible right now...

http://maemo.org/maemowiki/?action=f...esearch=Titles
USB networking howtos

Odin 2006-06-17 00:37

Yes, who is willing to do it...
 
Quote:

Originally Posted by Coolty
Just a crazy thought, but would it be at all possible to use the nokia 770 as a wifi card to access the internet with on your PC via usb?
I'm sure it IS possible, but who is willing to do it ;)

Way more trouble than it is worth.

1) Easier to get a Wi-Fi card for the PC.

2) To make it work, you would need to follow shared network protocols--what a hassle.

hallgreng 2006-06-17 08:17

It should be easy if USB networking is already set up.
Someone needs to compile iptables support into the kernel (they could be distributed as modules in a repo since we are all using the same kernel and compiler from nokia) and then port iptables itself (who knows how much/little work that would be).
From there it is trivial to forward traffic from one interface to another.

All that is needed is iptables...
Though there may be an even simpler way, I only know how to do it with iptables or ipchains

HardCoder 2006-06-17 11:00

if you do not need NAT then you don't need iptables.

just do a "echo 1 > /proc/sys/net/ipv4/ip_forward" to start the routing on the 770 then add the correct routes with the "route" command.

hallgreng 2006-06-17 18:45

Quote:

Originally Posted by HardCoder
if you do not need NAT then you don't need iptables.

just do a "echo 1 > /proc/sys/net/ipv4/ip_forward" to start the routing on the 770 then add the correct routes with the "route" command.

There is always a better way, and this is it =]

Coolty 2006-06-17 18:48

HardCoder, could you perhaps elaborate a little on your method?
what would the route command involve typing?

hallgreng 2006-06-17 19:14

I am just guessing, because I do not know of any way to route traffic using route from the server, but I believe that
Code:

$route add default gw <nokia.770.ip.address> dev <usb_network_interface>
on the workstation would do the trick.
That just tells your workstation to route all internet traffic through the nokia using the usb network device the nokia is plugged into. If the nokia is forwarding packets at this point, then it should be a simple gateway and this will work.

Coolty 2006-06-17 19:43

No no.. i mean if i'm on windows xp, how would i get the nokia to 'bridge' the wlan to the usb ?

HardCoder 2006-06-17 20:23

Quote:

Originally Posted by Coolty
HardCoder, could you perhaps elaborate a little on your method?
what would the route command involve typing?

Let's say that you are accessing a friends network with your 770 and you would like it to route packets to and from your laptop via the usb-network you have already set up.

The precedure is a bit tricky and would be simpler to do with iptables and NAT.
Your friends network uses the network 192.168.1.0/24 and your usb-network uses 192.168.2.0/24. On your N770 you would have to enter the command "echo 1 > /proc/sys/net/ipv4/ip_forward" to enable routing.
On your friends router you would have to set up a new route to your usb-network so that your friends router knows where to send packets adressed to your usb-network. Hopefully your friends router does support this. If it is a linux box then one would enter the command

"route add -net 192.168.2.0/24 gw <ip address to wireless interface on your 770>"

example
route add -net 192.168.2.0/24 gw 192.168.1.16

It's a bit hard to understand if you do not know about routes and how the IP technology works.

Using IPtables and NAT you wouldn't need to set up the route on the router. But you would have to configure iptables. But there are good guides for that. :)


All times are GMT. The time now is 05:25.

vBulletin® Version 3.8.8