My situation:
I have 2 machines
machine 1 has a valid ip.
machine 2 has 2 valid ips.
machine 1 has machine 2 as def gw
machine 2 has a normal def gw (routing tabel 1)
machine 2 also has a (ipip) tunnel as def gw (routing table 2)
machine 2 has a rule which assings routing table 2 to machine 1.
Every non-local packet from machine 1 is sent to the remote end of the
ipip-tunnel.
This works fine: I can use software from machine 1 which cannot be masqed &
I can offer services on the valid ip's (arriving through the ipip-tunnel).
Off course this is not very efficient for software which can be masqed.
So what I really would like is a way to assign a routing table based on the
port nr & src ip of a packet.
Does anyone know how?
I'm using linux 2.2.9 & latest iproute tools.
Comments would be appreciated.
Tanx,
Eric.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu