| View previous topic :: View next topic |
| Author |
Message |
sjeur n00b

Joined: 11 Jan 2007 Posts: 5
|
Posted: Thu Jan 11, 2007 12:15 am Post subject: ports >1024 blocked, internet slow [SOLVED] |
|
|
On my network, all connections to ports >1024 are blocked. This seems to result in very slow connections.
I can't unblock those connections, so that's no option.
Browsing websites, fetching mail, etc. is extremely slow (max 7KB/s).
I have discovered that ACTIVE FTP transfers are fast (maximum speed of my ISP), although passive FTP transfers are slow.
All other protocols seem to be slow too.
Does anyone have an idea why this is, or how to get around this?
Also, this only seems to apply on Gentoo. I have tried other distros, OpenSUSE and Ubuntu for instance, they don't have this problem.
In Windows XP, there aren't any problems either.
Last edited by sjeur on Fri Jan 12, 2007 3:49 am; edited 1 time in total |
|
| Back to top |
|
 |
mose Guru


Joined: 04 Jun 2005 Posts: 313 Location: Piacenza
|
Posted: Thu Jan 11, 2007 12:17 am Post subject: |
|
|
Web browsing uses port 80, so I think that isn't related to your port blocking.
How did you realized that ports >1024 are blocked?
By the way, are you behind a router? |
|
| Back to top |
|
 |
sjeur n00b

Joined: 11 Jan 2007 Posts: 5
|
Posted: Thu Jan 11, 2007 12:55 am Post subject: |
|
|
I am indeed behind a router. It all worked well until the network admin blocked the ports >1024, so I do think it's related.
I asked him to remove the block, it then worked good. But the ports are to be blocked here. |
|
| Back to top |
|
 |
mose Guru


Joined: 04 Jun 2005 Posts: 313 Location: Piacenza
|
Posted: Thu Jan 11, 2007 11:08 am Post subject: |
|
|
So the problem isn't with Gentoo... but with the router! Sorry, I can't help you with that  |
|
| Back to top |
|
 |
sjeur n00b

Joined: 11 Jan 2007 Posts: 5
|
Posted: Thu Jan 11, 2007 1:03 pm Post subject: |
|
|
| I know, but why does it work on all operating systems, except for Gentoo? |
|
| Back to top |
|
 |
mose Guru


Joined: 04 Jun 2005 Posts: 313 Location: Piacenza
|
Posted: Thu Jan 11, 2007 1:18 pm Post subject: |
|
|
I don't know exactly why...
Try to post the output of
maybe we'll get some more informations |
|
| Back to top |
|
 |
madisonicus Veteran


Joined: 20 Sep 2006 Posts: 1130
|
Posted: Thu Jan 11, 2007 3:15 pm Post subject: |
|
|
To be more precise, http connections are initiated on port 80 but after handshaking they move to ports above 1024. It's very unlikely that any reasonable network admin has actually blocked these ports. There are far better ways to prevent filesharing which is the usual reason for netadmins cracking down on ports.
There are a couple other possibilities that come to mind. The first is that since Gentoo is one of the few distributions which actually uses window scaling by default, that somewhere along the line there's a broken router that improperly handles it. Try doing this: | Code: | | # echo 0 /proc/sys/net/ipv4/tcp_window_scaling | If that clears up your problem, you can set it as a default by adding net.ipv4.tcp_window_scaling = 0 to your /etc/sysctl.conf.
Also, you might need to go through the network parts of your kernel to make sure things are set up properly.
HTH,
m _________________ Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC |
|
| Back to top |
|
 |
sjeur n00b

Joined: 11 Jan 2007 Posts: 5
|
Posted: Fri Jan 12, 2007 3:52 am Post subject: |
|
|
| Quote: | | echo 0 /proc/sys/net/ipv4/tcp_window_scaling |
Thanks, that did the trick! |
|
| Back to top |
|
 |
price n00b

Joined: 17 Jan 2007 Posts: 5 Location: Honolulu, Hawaii
|
Posted: Wed Jan 17, 2007 10:08 pm Post subject: |
|
|
Thanks --- this helped me solve my problem also.
Noticed a small error in the line above that tests the fix, though. I believe it should be:
| Code: |
echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
|
(i.e., missing redirection.) |
|
| Back to top |
|
 |
|