OpenWrt Forum Archive

Topic: Problem: openwrt, linux clients can't dload some pages, windows works

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a really strange problem. I recently purchased a WRT54GL router and immediately installed Openwrt/kamikaze( Kamikaze (r14417). My setup is a bit wierd: my apartment provides free wireless, but I wanted to have my own local network (file sharing, printing etc.). So I setup the new router in client mode(sta), allowing the WRT54GL router to connect wirelessly to the apartments router and wiring my machines via ethernet to WRT54GL.

My problem is: When I run Linux (ubuntu or sabayon) on my machines(desktop and laptop) I am not able to download a rather large number of web pages-ie. the page is accessed but never succeeds to download or downloads at 1-5k per hour!.
When I run these machines under Windows (vista) I have no such problems-all pages download quickly.

Things I can confirm:

My WRT54GL can access and download these pages. Using wget I can grab those pages at top speed.
My desktop running Ubuntu or Sabayon *cannot* download these pages (solutions.brother.com, facebook, etc.)
My laptopo running Ubuntu or Sabayon *cannot* download these pages (solutions.brother.com, facebook, etc.)
My desktop running Vista *can* download these pages (solutions.brother.com, facebook, etc.)
My laptop running Vista *can* download these pages (solutions.brother.com, facebook, etc.)

I post the following in case it mght help:

cat /etc/config/wireless

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'channel' '5'
    option 'disabled' '0'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'mode' 'sta'
    option 'ssid' 'SOMELONGSSID'
    option 'encryption' 'wep'
    option 'key' '123456789'
    option 'network' 'wan'
---------------------------------------------------
cat /etc/config/network 

config 'switch' 'eth0'
    option 'vlan0' '0 1 2 3 5*'
    option 'vlan1' '4 5'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'
    option 'ifname' 'eth0.0 wl0'
    option 'peerdns' '0'
    option 'gateway' '192.168.1.1/24'
    option 'defaultroute' '192.168.1.1'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp'

config 'route'
    option 'target' '10.9.11.0'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.1.1'
    option 'interface' 'wan'
------------------------------------------

I ended up getting things to work by installing tinyproxy. Now I have the WRT54GL setup as a proxy and configure both computers to use the proxy. This solution is not optimal a) tinyproxy on this router is not exactly a speed demon, b) sometimes tinyproxy crashes (and one time it took the router with it). The wierdest thing is that the machines running vista can download these pages through a) the wireless network provided by the apartment and b) with wireless turned off accessing my WRT54GL via ethernet cable. For the life of me I cannot understand why Vista works and Linux(Ubunutu *and* Saayon, on 2 different machines) doesn't.

I tried:

setting up opendns servers, using prepend domainname in dhclient.conf...makes no difference.
thought about changing MTU-but Vista and Linux use same=1500
changing forwarding of reverse lookups etc...mucked around to no avail

I believe that this setup prevents web pages from ascertaining my IP (I believe I am masq'ed)

Really I am quite lost at this point....

Any help would be greatly appreciated.

Try enabling the "mtu_fix" option in /etc/config/firewall. After changing this value, run /etc/init.d/firewall restart.

~ JoW

jow,

here is a dump of my firewall config:

---------------------------------------------
cat /etc/config/firewall

config 'defaults'
    option 'syn_flood' '1'
    option 'input' 'ACCEPT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'

config 'zone'
    option 'name' 'lan'
    option 'input' 'ACCEPT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'

config 'zone'
    option 'name' 'wan'
    option 'output' 'ACCEPT'
    option 'input' 'ACCEPT'
    option 'masq' '1'
    option 'forward' 'REJECT'

config 'forwarding'
    option 'src' 'lan'
    option 'dest' 'wan'
--->    option 'mtu_fix' '1'
--------------------------------------------

Can I assume that the value 1 means that it is already turned on ?

thx,

The discussion might have continued from here.