Linux/hostapd: AP can ping clients, clients can access internet, can't access www@wlan1 with more than 5-6 packets at once

Posted by mhambra on Server Fault See other posts from Server Fault or by mhambra
Published on 2010-12-25T02:15:56Z Indexed on 2010/12/25 2:55 UTC
Read the original article Hit count: 285

Filed under:

Please edit the title, can't make it sound better. -- OP.

Hi all, I have a Wifi USB dongle in a PC, that serves as an AP for laptop.

wlan1: 192.168.2.1, netmask 255.255.255.0, routed: 
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1

ping 192.168.2.2 (laptop): ping was ok for lot of packets.

Now, I try to access 192.168.2.1:80/myindex.html (apache) from laptop, and can see that own 1kb test page. But, trying to access 192.168.2.1:80/my.jpg, I see the following:

 GET /my.jpg
 HTTP/1.1 200 OK
 <jpg header, about a kilobyte>
 <TCP packet retransmisson>
 <TCP packet retransmisson>
 <end of stream>

It seems to be a hostapd's problem (networked stuff worked fine with Ad-Hoc), but it may be also forwarding/routing problem too. What to google for?

Even more strange, SSH to that host works fine.

© Server Fault or respective owner

Related posts about linux-networking