Registered Member
|
I have two ISPs because one comes at basically no cost to me. I would like to route torrents over that ISP since it negatively impacts online gaming on my main ISP.
I have set ktorrent to use wlan0, my second ISP. However, examining traffic with wireshark shows that all of the traffic is going to eth2, my primary ISP. There's literally no traffic going over wlan0. I have no problems accessing the wlan0 network. I can communicate with all of the computers on it. Could it have something to do with my routes?
How can I get ktorrent to work over wlan0? Thanks a lot. |
Registered Member
|
You said you set wlan0 interface in Network page of setting dialog right?
|
Moderator
|
Setting the network interface, only tells ktorrent on which IP address it should bind. It does not have anything to do with routing, which is controlled by the routing table of the operating system.
|
Registered Member
|
Reopening this topic with more specific question.
I have exactly the same need, different routing for torrents then rest of the traffic. I am able to configure routing based on my IP derived from the virtual interface. I use this method in several other applications without problem. So I set eth0 (default) for "normal" traffic and set new eth0:2 (eth0:1 is in use for other apps) intended for torrents. Verified IP addresses and routing tables for all interfaces, all seems fine. Still, even after ktorrent restart (quit and start again), I see just eth0 and eth1 (besides lo and others, off course) in the interface pulldown in Settings->Configure->Network. No eth0:1, eth0:2 ... no eth1:1, eth1:2... Am I doing something wrong, is it principal problem or should I fill wishlist request (or try to make patch myself - any recommendation and references to proper part of source code welcome then). My distro: Debian squeeze Linux 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux
pmendl, proud to be a member of KDE forums since 2008-Nov.
|
Moderator
|
KDE's solid library is used to get a list of all network interfaces, so if it isn't in that list, then solid does not support virtual interfaces.
|
Registered Member
|
Sticking this here as it's related to getting KT to not run on undesired interfaces.
KT does seem to eventually 'rollover' to whatever interface it can find, even when an interface is set in config. KT probably needs a checkbox or something to "Only use interface XXXX" And there would have to be a text box to allow us to specify the interface, as it may not currently be up.
|
Registered Member
|
A better version is now at viewtopic.php?f=2&t=4163 I was John, now I'm Sam |
Registered Member
|
Hi all,
I'm posting in this one trying to reopen the subject as I'm noticing that ktorrent still doesn't respect the specified network interface. So I have 2 connections with 2 different gateways. One is eth0 10.0.0.8 and the other is wlan0 192.168.1.12 I want to limit the non important traffic to the wlan0 interface. I've setup policy routing and I've chosen the option to bind ktorrent to wlan0 from the settings>network menu. I wanted to check my established connections so I did:
As you can see, ktorrent is not binding all connections exclusively to wlan0 (192.168.1.12). A lot of them (about 50%) are still bound to the system default interface (10.0.0.8 ip) even though I've selected the appropriate option from the settings. I have also installed Vuse jut to check if it was doing the same and I can confirm that it is not the case. Vuse is binding all the connections to wlan0 and nothing was "leaking" to eth0 any thoughts? |
Moderator
|
We only bind for incoming connections, outgoing ones aren't bound at all, the kernel chooses the port and interface, but that shouldn't really matter.
AFAIK the kernel routes the packets based on it's routing tables, bound interface shouldn't matter in the routing decision. |
Registered Member
|
Why are you not binding outgoing ones? These are the ones that needed to be bound the most. Plus ktorrent is the only client that supports binding to an interface that does this. I've tested qbittorent and Vuse and they both work fine .. i.e. binding ONLY to the specified interface. Assume you have a Linux system with more than one network interface card — say eth0 and eth1. By default, you can define a single, default route (on eth0). However, if you receive traffic (i.e., ICMP pings) on eth1, the return traffic will go out eth0 by default. This can be a bit of a problem — especially when the two NICs share the same parent network and you’re trying to preserve sane traffic flows. In a nutshell, you need to ensure traffic going into eth0 goes out only on eth0, as well as enforce all traffic going into eth1 goes out only on eth1. that's what policy routing is! If I'm binding ktorrent to eth1, I'm doing so because I want all my connections in and out going to that interface. Ktorrent binding only incoming connections doesn't help at all. In fact it complicates things even more. |
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]