[LARTC] Brouting on two NICS + 1 virtual NIC

2007-05-15 Thread William Bohannan
Currently have a bridge working, would now like to add a third virtual
nic so the machine can do nat as well to local users, however after a
crazy amount of ready cant seem to get my head around it.  Please help.
Have a working bridge below (etc/network/interfaces and eth0 is the
internet side interface so a virtual interface like eth1:0 would be nice
:)

auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 193.220.59.77
netmask 255.255.255.128
network 193.220.59.0
broadcast 193.220.59.127
gateway 193.220.59.126

pre-up /sbin/ip link set eth0 up
pre-up /sbin/ip link set eth1 up
pre-up /usr/sbin/brctl addbr br0
pre-up /usr/sbin/brctl addif br0 eth0
pre-up /usr/sbin/brctl addif br0 eth1

Kind Regards
William 

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] Re: Using multiple network interfaces (internetconnections) separately

2007-05-15 Thread Kuolung
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" <[EMAIL PROTECTED]>
To: 
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 mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc