I have an unlimited 3G connection and I figured I oughta put it to some use so I can download some shit while I play on my main connection.
(When I say unlimited, I really mean unlimited, none of that american "unlimited" stuff AT&T and others are pulling off)
Thing is, if I open something like Firefox, it's going to default to using eth0. Is there any way to force a program to use a specific interface? (In my case, ppp0).
ping has a switch called I whick works beautifully, ping -I ppp0 [url]www.google.com[/url] worked without any problems, so I know the interface works properly.
Programs do not "default" to an interface. I have programmed network applications before and never did i have to select an interface. But you can, which again depends on the OS, but i digress.
The OS it self decides which interface(s) are used. This has to do with routes. Obviously, you have routes which both lead to the Internet. You have to remove the route associated with the eth0 interface.
Linux has the "route" program for this:
[code]
florian@celaeno:~$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.2.1 0.0.0.0 UG 100 0 0 eth0
[/code]
Im afraid that is all i can do to help, you will have to look up the man page of route on how to remove routes. Should be easy.
Like florian said the OS handles the requests. Though searching I've only found out how to double up the connections to make a faster connection, but that requires a special kernel module.
I know in windows I was able to pull this off by setting the default link say #1 then going back to #2, which was the default anyway, which led to the app being the only thing using link #1.
Better explanation.
link 2 is default.
switch to link1 before loading up firefox.
once loaded and working go back to link 2, the default.
On windows for me firefox would stay on link 1.
I'm going to look up some more info and try to get this problem fixed too. I'd really like to be able to et this working on my main rig when I get home in a week. Try the windows trick just in case and I'll look up more about the tunneling and an easy option, which I would like to avoid, is running a proxy on the machine directed to the alternate interface and setting firefox to use it.
From what I have found out routing tables seems to be the way to pull it off.
I won't be at my house on my main rig for about a week so I won't be able to tinker around and help you set this up. I'd say look up a guide, there are tons of them, and if you can if you get it working post some of the information or guides you used so I will be able to save them for later use.
Sorry, you need to Log In to post a reply to this thread.