intelligent local routing-help me

dorris

Well-Known Member
Joined
Nov 3, 2003
Messages
476
Reaction score
0
Location
.
I'm trying to separate my local and international routes, I've got a list of all local hosts/nets, and have 2 simultaneous pppoe connections.
ppp0 - saix backbone
ppp1 - IS

ppp1 becomes the gateway for all local traffic
ppp0 gets set as default gateway, (all traffic that is not found in local routes, goes out ppp0)

it works great, all local traffic uses ppp1, and international uses ppp0.

hence I should happily be able to rape local bandwidth on an is account without affecting my saix acct cap.

I have also had to setup iproute2 with multiple route tables to handle incoming requests, as local requests coming in on ppp0 were getting lost as it tries responding through ppp1 by default, vice/versa.

so far, that all works smoothly, now...heres my prob!

when using a p2p app, bitcomet,azereus, dc++ are the ones I tried, even when connecting to local hubs/trackers, it picks up my default GW addre (ie ppp0), and I can't figure out y, or how to make this different.
How do these apps determine the internet IP??
It seems I need a little more knowledge on how some of these p2p appz work.

the current results of what happens on torrents, is that any connection initiated by me, is routed through ppp1, but connections initiated by peers are routed through ppp0.
so precious international is still being lost.

any help would be most appreciated!
 
Last edited:
The problem is because your client software is binding to a specific interface, and this happens to be the first one it spots.

Most of the software you mentioned will allow you to specifically bind to a particular IP, thus allowing you to choose if you want to operate in local or international mode.
 
thanx for the advice, but its not really a solution for me.
The problem is because your client software is binding to a specific interface
not quite the problem, there are separate interfaces on a linux gateway pc, I am attempting connections from another pc, with only 1 interface.
and a default gw pointing to the linux pc, so its not picking an interface.

Quick picture below

.......ppp0 (default routes)
............\
...............\
..............linux(gw) ---- eth0(192.168.0.x) ------[switch]-------PC2 ----- IP:192.168.0.y
................/...........................................................................................................def GW:192.168.0.x
............../
..........ppp1(local routes)


as to specifying an ip in the config of the appz, thats a temporary workaround, but not an enduring solution, as we don't have static ip's.
 
Last edited:
Hi, don't realy know how you have setup your network, but, i asume you have port fowarding setup to route say in this case your p2p trafic from your local pc to the net?

If you have check that the interface set as source is the right one,eg. ppp1.

TCP ppp1 : port => eth0 => 192.168.0.x : port

Any way, again I asume a lot with this, hope it helps if i am way off please disregard!! :)
 
If that is really how your network is arranged then you don’t have a problem, you will be running in "passive" / NAT mode on the workstation. So incoming connections would never work anyway.

In the event you are port forwarding. If you are using BT, then you may find the tracker is hosted internationally - the tracker would then report your international IP to the other peers. DC network is somewhat different, it always uses whatever the client has been set to, most of the smarter hubs can set the IP for you when you connect - but again if the hub is not hosted locally it will get the wrong IP.
 
if your on some brands on linux you could just change your ppp0 and ppp1 around.
 
Top
Sign up to the MyBroadband newsletter
X