You are not logged in.

#1 2010-09-12 19:39:06

hidefromkgb
Member
Registered: 2009-08-03
Posts: 146

[SOLVED] Strange wifi ad-hoc issue

Hello everybody.

There are 4 laptops between which a WiFi network should be established: Arch (the "router"), 2 Ubuntu 10.04, and Windows 7.
The problem is that only one Ubuntu laptop is able to connect to my Ad-Hoc access point.
The other two can see the name of my AP in the connections list, but when they try to link, nothing happens.
Literally, nothing — ifconfig wlan0 on my machine shows that no data is transferred: RX and TX just do not change, although being refreshed every second.

I have Intel 3945abg wireless card, bringing the AP up with the following script:

#!/bin/bash

ifconfig wlan0 down;
iwconfig wlan0 essid 'TEST' mode Ad-Hoc key s:qwert;
ifconfig wlan0 192.168.3.1;
ifconfig wlan0 up;

killall dnsmasq; dnsmasq;

/etc/rc.d/iptables restart;

iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X

iptables -A INPUT -i lo -j ACCEPT

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i !ppp0 -j ACCEPT
iptables -A FORWARD -i ppp0 -o wlan0 -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A FORWARD -i wlan0 -o ppp0 -j ACCEPT

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT
iptables -A FORWARD -i eth0 -o ppp0 -j REJECT

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

Ubuntu 10.04 on two different laptops was installed from the same LiveCD, and the fact that on the first of them, WiFi worked straight out of the box, makes the problem really weird...

Last edited by hidefromkgb (2010-09-14 22:46:33)

Offline

#2 2010-09-12 21:53:29

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Strange wifi ad-hoc issue

Isn't ad-hoc limited to two devices?

Offline

#3 2010-09-13 10:59:04

hidefromkgb
Member
Registered: 2009-08-03
Posts: 146

Re: [SOLVED] Strange wifi ad-hoc issue

Gusar, i once managed to set up a WiFi server for Quake III on the same machine (1×1 mode = 2 laptops + 1 server), and it ran flawlessly.

Anyway, as for now, each time i tried to link, no other nodes were connected to the server, so i think it's not the problem.

Last edited by hidefromkgb (2010-09-13 11:00:39)

Offline

#4 2010-09-14 18:22:34

hidefromkgb
Member
Registered: 2009-08-03
Posts: 146

Re: [SOLVED] Strange wifi ad-hoc issue

[UPD:]

The same Ubuntu LiveCD, being run on my Arch machine, makes everything work fine o_0!!


So, the question now sounds like:

how to erase all Wireless LAN configuration and infrastructure from my Arch setup so that i am able to reconfigure it from scratch?

Last edited by hidefromkgb (2010-09-14 18:24:03)

Offline

#5 2010-09-14 22:46:04

hidefromkgb
Member
Registered: 2009-08-03
Posts: 146

Re: [SOLVED] Strange wifi ad-hoc issue

Finally solved by installing 2.6.32-LTS kernel.

Offline

Board footer

Powered by FluxBB