Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

EDIT 1:

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

share|improve this question
    
@aking1012 maybe you could link to a good article or tutorial? –  RASG Mar 16 '12 at 12:05
add comment

2 Answers 2

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
add comment

Well... in a terminal with curl you can specify an interface.
From the manpage: curl --interface eth0:1 http://www.netscape.com/.

So for a single file you use something like this:

curl -LO --interface eth1 ftp://ftp.xs4all.nl/pub/test/10mb.bin

where eth1 is the interface connected to "C2N2".

share|improve this answer
add comment

Your Answer

 
discard

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.