I'll start by describing what I'm trying to do. I am using a commercial service that provides a VPN tunnel for a fee. I'm doing this to get myself some kind of anonymity while I run amule. I'd like to restrict amule's Internet traffic to this VPN tunnel only, and use a normal connection to my ISP for all other Internet use. Can I configure amule to do this? If so, how? Any help would be much appreciated.
For those who care to read more...
I have been able to get amule to work through this tunnel (at least that 's what I thought) by changing the the tunnel properties so that all my Internet traffic goes through the tunnel, but this is not really the setup I want. Moreover, I suspect that most ed2k connections established by amule (to other ed2k clients) are
bypassing the tunnel and going directly through my ISP straight to my computer. I would prefer to have all amule traffic go through the VPN to my ISP to my computer. The reason I suspect this is that I am using conky to monitor all in-bound and out-bound network connections, and whenever I have amule running, it's showing me all the hostnames that have in-bound connections to my computer. The port number that these hostnames are using matches the TCP port number that I specify in amule's preferences. If all these ed2k connections were using the VPN tunnel, I wouldn't be seeing all these hostnames. I would only see the one connection, to the VPN provider, and that's it. At least, that's what I expect.
The software I am using to configure the VPN tunnel is pptpconfig, which seems to work well enough. It also has a few options about the kind of routing you can choose: Interface Only, Client to LAN, LAN to LAN, All to Tunnel. amule works when I use "All to Tunnel", but I'd rather use something like "Client to LAN".
I should add that when I run Azureus (again, with the "All to Tunnel" option), conky doesn't show all the hostnames of the other bittorrent clients. It shows just the VPN provider hostname in the list of connections. I would like amule to do the same, but with all amule traffic going through the VPN tunnel, even the direct connections to other ed2k clients.
I did a search in this forum for "vpn" and I found this thread
http://forum.amule.org/index.php?topic=9898.0. This thread makes mention of an "Address" option in amule.conf, which it seems you can use to bind amule to an IP address. I'm not sure what this means. I was hoping that I could take the IP assigned to me by the VPN provider, and use this for "Address" in the conf file, but amule didn't work properly when I did that (kept getting lowid, and log messages about some trouble with my network connection). When I used the "Bind to local IP address" in Azureus, with pptpconfig set to "Client to Tunnel", Azureus didn't quite work properly (kept showing DHT as firewalled, unable to get any connections to other peers or seeds on any active torrents).