aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule & proxy  (Read 7101 times)

ursus

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
aMule & proxy
« on: May 26, 2005, 01:36:31 PM »

Hello!

I have a trouble running aMule on my computer. Hope someone on this list can help. aMule version and OS are listed below:

$ amule --version
aMule 2.0.1 using wxGTK1 v2.6.0 (OS: Linux)
$ uname -a
Linux peer 2.4.20-28.7 #1 Thu Dec 18 11:31:59 EST 2003 i686 unknown

aMule was compiled from source tarball just yesterday without any problem.

'The disposition' :-) is the following. I have a computer within a LAN (let's call computer peer). All computers within the LAN are behind firewall such that only selected incoming and outgoing ports are opened. All HTTP traffic goes through the http proxy (let's call it just proxy:8080).

On my computer (peer) the only incoming port 8080 (TCP) is opened so any computer from 'internet' can connect on this port. This port is used as "Client TCP port" at "Connection" tab in aMule preferences. So I don't have problem with incoming connection, but I do have problems with outgoing connections (it seems to me).

When I am trying to connect to any server from the list aMule attempts to connect without any success, for example:

2005-05-26 13:12:42: Connecting to Razorback 2 (195.245.244.243 - 195.245.244.243:4661)
2005-05-26 13:13:08: Connection attempt to Razorback 2 (195.245.244.243:4661) timed out.

When I am trying to update the server list (button with arrow at the top left corner), "Downloading..." dialog appears but aMule is unable to retrieve a server.met file:

2005-05-26 13:16:36: Invalid response from http download server
2005-05-26 13:16:36: Loading server.met file: /home/user/.aMule/server.met.download
2005-05-26 13:16:36: Error: the file server.met is corrupted

In the "Preferences" in "Proxy" tab there is an option to specify a proxy server. I selecting there HTTP as type and give host name and port of the our proxy server. It doesn't help, but messages in the log are a little bit different, for example:

2005-05-26 13:18:05: Connecting to Razorback 2 (195.245.244.243 - 195.245.244.243:4661)
2005-05-26 13:18:05: Connected to Razorback 2 (195.245.244.243:4661)
2005-05-26 13:18:05: Lost connection to Razorback 2 (195.245.244.243:4661)
2005-05-26 13:18:05: Connection lost

For any server in the list aMule gives the same diagnostic message. Trying to update server.met results again in the following:

2005-05-26 13:23:24: Invalid response from http download server
2005-05-26 13:23:24: Loading server.met file: /home/user/.aMule/server.met.download
2005-05-26 13:23:24: Error: the file server.met is corrupted

I want to say that the proxy server I am giving to aMule is correct, I use it everywhere (in browser, as enviromental variable). When I am doing for example from command line:

$ echo $http_proxy
http://proxy:8080/

$ wget http://www.srv1000.com/azz/server.met
--13:25:02--  http://www.srv1000.com/azz/server.met
           => `server.met'
Resolving proxy... done.
Connecting to proxy:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 10,578 [text/plain]

100%[========================================>] 10,578         3.36M/s    ETA 00:00

13:25:03 (3.36 MB/s) - `server.met' saved [10578/10578]

Fortunately, I found that one outgoing port 3306 (TCP) is opened and I found a few servers in the list that uses this port, for example, Byte Devil. So I can connect without any problems to that server, and I get HighID and even downloaded a few files :-) However, if a I set a proxy in aMule Preferences, I unable to connect to it!

So, I think there is some problem related to HTTP proxy. Could it be a problem in implementation of usage of HTTP proxy in aMule? In the earlier versions of aMule, there was no option to supply proxy. Maybe I am doing something wrong?

Of course I can continue to use Byte Devil server, but it does not have so large collection of files as other servers, to which I cannot connect and that's pitty :-(

Any help is highly welcome!!!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: aMule & proxy
« Reply #1 on: May 26, 2005, 05:30:34 PM »

ursus,

I have tested this recently, and it was working.

Why don't you try first with a public http proxy to see if things work for you? I suspect your proxy is not configured properly. You see, a proxy server can be configured in several ways, in particular, the proxy server must be configured with "connect method" support, so that aMule and other non-http protocol programs can use it. IIRC, squid can be configured to do so.

Search google for "free proxy list with support connect method" and try one of them. Post your feedback here.

BTW, take a lot of care with proxy configuration. If you do things wrong, all the universe will use your proxy to spam and to invade systems, and if there is any problem YOUR machine will be the guilty one.

Cheers!
Logged

ursus

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: aMule & proxy
« Reply #2 on: May 26, 2005, 08:48:05 PM »

Thank you for reply, phoenix!

It really looks like a problem with our proxy. Unfortunately, there is nothing I can do about this. I cannot use some free http proxy, because the only way I can contact with 'external world' (outside our LAN) is through our proxy server (firewall blocks everything else) and I have no access to proxy server in our organization and nobody else is supposed to reconfigure it even if I'll ask them :-(

So, I am forced to use aMule from my home computer :-)

Regards,
ursus
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: aMule & proxy
« Reply #3 on: May 26, 2005, 11:07:11 PM »

ursus,

Well, anyway, I do not recommend you to use aMule in a computer work, you can really get in trouble for that. At the place I work, for example, it is forbidden to use any ed2k or other networks (kaza, bittorrent, etc) programs for downloading. Even for "fair use" like donwloading a linux distribution :( The fact is that if everyone starts doing this, our global bandwidth becomes history...

Entreprise proxy servers usually do not support "http connect method" for security reasons.

Cheers!
Logged