Ali Sattari
2007-May-06 07:31 UTC
Using multiple network interfaces (internet connections) separately
Hi, I need a solution for this case: I have a PC(as server) with 3 (or more) Ethernet ports and 3 (or more) Internet access through each Ethernet interface. (from different ISP''s and with different IP''s of course) I need to download files (using wget or whatever else) through each interface (internet line) separately. For example i need to download "file1" through eth1 (isp1), "file2" through eth2 (isp2) and so on. How can i make this working? any iptables/iproute rules? any Idea? Thanks in Advance, -- Ali Sattari (AKA Ali ix) http://corelist.net _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Randy Wallace
2007-May-06 12:06 UTC
Re: Using multiple network interfaces (internet connections) separately
> Hi, > > I need a solution for this case: > I have a PC(as server) with 3 (or more) Ethernet ports and 3 (or more) > Internet access through each Ethernet interface. (from different ISP''s and > with different IP''s of course) > > I need to download files (using wget or whatever else) through each > interface (internet line) separately. > For example i need to download "file1" through eth1 (isp1), "file2" through > eth2 (isp2) and so on. > > How can i make this working? any iptables/iproute rules? any Idea? > > Thanks in Advance, > -- > Ali Sattari (AKA Ali ix)Ali ix, This is an application for rules, in the iproute package. how you select packets for which internet connection can, best, be done by iptables using firewall marks. The trick is, you can have only one default gateway, unless you use the multiple gateway patch, which may not be necessary for what you''re talking about. The real question is: how do you plan on classifying traffic? * different hosts (IP''s) per gateway? * random selection of gateway, per TCP connection? * different types of traffic (Ports) per gateway? * certain domains (only) available on each gateway? -Randy
Kuolung
2007-May-07 13:55 UTC
Re: Using multiple network interfaces (internetconnections) separately
Hi , I want to use the " * random selection of gateway, per TCP connection?" ,i can do it right now but my if same remote site( ip ) always goto the same gateway,i think that is ip_route_cache problem or something like this how can I do ?? Kuolung ----- Original Message ----- From: "Randy Wallace" <randywallacejr@gmail.com> To: <lartc@mailman.ds9a.nl> Sent: Sunday, May 06, 2007 8:06 PM Subject: [LARTC] Re: Using multiple network interfaces (internetconnections) separately>> Hi, >> >> I need a solution for this case: >> I have a PC(as server) with 3 (or more) Ethernet ports and 3 (or more) >> Internet access through each Ethernet interface. (from different ISP''s >> and >> with different IP''s of course) >> >> I need to download files (using wget or whatever else) through each >> interface (internet line) separately. >> For example i need to download "file1" through eth1 (isp1), "file2" >> through >> eth2 (isp2) and so on. >> >> How can i make this working? any iptables/iproute rules? any Idea? >> >> Thanks in Advance, >> -- >> Ali Sattari (AKA Ali ix) > > Ali ix, > > This is an application for rules, in the iproute package. how you > select packets > for which internet connection can, best, be done by iptables using > firewall marks. > > The trick is, you can have only one default gateway, unless you use the > multiple > gateway patch, which may not be necessary for what you''re talking about. > > The real question is: how do you plan on classifying traffic? > * different hosts (IP''s) per gateway? > * random selection of gateway, per TCP connection? > * different types of traffic (Ports) per gateway? > * certain domains (only) available on each gateway? > > -Randy > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc