Routing Specific Traffic Through Different Internet Connections
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Routing Specific Traffic Through Different Internet Connections
Hello All,
This is my first post and I have a question.
I wish to have legal torrent traffic (for grabbing linux ISOs as I need them) going through a separate connection than my normal Internet/LAN traffic.
I am wondering if, for example, I route all outgoing torrent traffic through the ISP associated with eth1 that it will be received through the same connection and not through the ISP associated with eth0.
The reason I am asking is because I have a slower connection that I don't mind using for torrents while my main connection is tied down to gaming and surfing etc.
So, in asking that I have a few additional questions. Will this have to be configured on a separate box that is the link between all the networks or can I do it from my laptop using iptables and iproute2.
If a diagram is needed to explain the above sentence, I will be happy to draw one up. If I have also been unclear with my question, let me know and I will happily reword it as best I can.
All outgoing traffic will be answered to public source IP. If eth0 and eth1 are both public with different IP adress packet will come back on sender interface.
You can do it both way, dedicating a box for this task or using your laptop for this. Iptables iproute2 will do it nicely.
I'm not sure i've perfectly understood problem between box or laptop, give more informations if i've messed with this.
If I am understanding this correctly it means that if all traffic for torrents has been marked and routed through ethX then that connection's public IP will be the only means in which the torrent traffic will be transmitted?
Yes, external peopole can't know your other IP. Don't forget to forward (or allow) incoming connections on this interface to your torrent client program
Both devices are routers, packet you send them going to be routed. From your local network you don't need to use external network information, just send traffic to one of your local routeurs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.