OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Need help with ad hoc wifi
slapout
post Apr 24 2004, 10:52 AM
Post #1





Group: Members
Posts: 50
Joined: 10-November 03
Member No.: 832



I've searched thru the forum and done some googling, but I still can't seem to get my wifi setup working.

I'm trying to network my 5600 & my WinXP Home pc so that I can share my dial up connection.

I'd like to setup an ad hoc network. On the PC I'm using a Linksys WUSB54G. And on the Zaurus I have a Linksys WCF12.

I used the network wizard in XP and the Network app in the Z to set things up. (I'm using the rom that came with my Z. It's 1.00 which i think is like the 3 rom on the 5500).

They seem to see each other: When I tell the Z to connect windows shows it connected and the Z shows connected.

The information button on the Z shows:

IP Address: 192.168.0.33 (DHCP)
Subnet Mask: 255.255.255.0
DNS Server: 192.168.0.1
Default Gateway: 192.168.0.1

However in the Z Network app on the Current Tab it shows:
WLanService: OffLine
AccessPoint: Unable to detect (makes sense--I'm not using one)
ESSID: <blank>
Signal: 0%
Quality: 0%

I'm not able to see webpages in Opera. Any idea what I'm doing wrong?
Go to the top of the page
 
+Quote Post
lindenle
post Jan 16 2006, 02:28 PM
Post #2





Group: Members
Posts: 12
Joined: 17-November 05
Member No.: 8,554



I am not sure i can help you too much. I have this working from zaurus to a linux machine. The zarus uses a symbol wifi and the linux machine is using an orinoco gold card. In my case I am sharing a LAN connection but it should be pretty much the same.

On Laptop:
iwconfig eth1 essid "ADHOC" key off mode Ad-Hoc channel 10
ifconfig eth1 192.168.1.1 up

On Zaurus:
Using wifi control add essid and switch to ad-hoc mode and channel .
Also enter netmask and ip by hand by unchecking the set automatically box.
Also enter the dns servers from your isp into the wifi manager by hand.

Now back to linux machine to nat the zaurus out to the world, i do:
#!/bin/bash
#
# This script will allow ip forwarding from INTIF to EXTIF
#
#
#
EXTIF=eth0
INTIF=eth1
IPTABLES=$(which iptables)

$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

echo "1" > /proc/sys/net/ipv4/ip_forward

$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE

One could also run a dhcp server on eth1 to answer and give ip dns etc but that was too much work for my need (updating calendar on Z).
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd May 2013 - 02:42 PM