Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

lets say that i have an apache server running, and two network cards.
each card is connected to a different network.

C1 is connected to N1, which is an ADSL connection with the port 80 open (so i can reach my server from oustide my lan).
C2 is connected to N2, which is a [very fast] corporate network (no ports open or routes allowed).

how could my server take advantage of C2N2 bandwidth?
would forcing download on one network and upload on another help?


what about bonding (seen here: Two ethernet ports on motherboard. How can I get double the bandwidth?)? would it help?

share|improve this question

Well... in a terminal with curl you can specify an interface.
From the manpage: curl --interface eth0:1

So for a single file you use something like this:

curl -LO --interface eth1

where eth1 is the interface connected to "C2N2".

share|improve this answer

It's way more reading than you probably want to do, but you'll probably find this useful. Particularly the sections on source based policy routing (although you would be doing it based on source and/or destination) and split access. Also, if you did uploads/downloads on a particular port number, that would make it easy to match on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.