Re: iptables and iproute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2004-04-26 at 03:20, Antonio Alvarez wrote:
> Hello every body!
> 
> I have a machine with 4 ethernet interfaces, 3 directly connected to
> ADSL lines a the another one to a LAN.
> 
> I have 3 routing tables with iproute ( each one with his default gw for
> each ADSL line )
> 
> I don't have problems with packet traversing my linux machine ( mangle
> the packet in the PREROUTING chain ) to routing.
> 
> The problem is how can i control the packet localy generated( ip and
> port )???  
> i can't mangle this packet before routing :-/
> 
> for example a need to use ssh server in the linux machine using ADSL 1 
> but when the machime aswer me use the ADSL 3 ( because this is the
> default gw in the main routing table :-( ... 
> 
> In sumarize it's possible to use different routing tables with packet
> generated localy??
<snip>
I don't recall the syntax off the top of my head but isn't it possible
to create a iproute2 rule where iif = lo to route locally generated
packets.  I believe that's how we do it in the ISCS project. You can
check the ISCS training docs at http://iscs.sourceforge.net - John
-- 
Open Source Development Corporation
Financially Sustainable open source development
http://www.opensourcedevelopmentcorp.com



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux