On Tue, Jan 20, 2009 at 7:09 AM, Mohan Sundaram <mohan....@gmail.com> wrote: > On Mon, Jan 19, 2009 at 9:09 PM, Arun Kumar Khan <kn...@yahoo.com> wrote: >> On Monday 19 Jan 2009, Mohan Sundaram wrote: >>> On Mon, Jan 19, 2009 at 2:38 PM, mettur salem >> <metturmohan2...@gmail.com> wrote: >>> >>> I do not understand the intent here. What do you mean by saying "eth1 >>> and eth2 should not share internet"? It will be easier if you state >>> what you want to achieve. Is it that you want occupants of one floor >>> to use Airtel for internet access and the other to use the TATA link? >>> >> >> Yup, I think that is what he means, otherwise his query does not make >> any sense given the context of his net diagram. > > Now, if this is what you want to do with one machine, it is quite involved. > > Given the kind of information you've given so far, I'd reckon you are > better of setting up one proxy server per floor and have the > appropriate link connected to that linux machine. > > If you want to do it with 1 machine, the scheme as under can be used. > You'll have to toil hard to understand, compile and implement this. > I've not tried this before. > 1. Set up 2 route tables say t1 and t2. t1 has Airtel as the default > route and t2 has TATA. > 2. Place each floor in different subnets. Let us say s1 - 192.168.1.x > is floor1 (Airtel) and s2 - 192.168.2.x is floor2 (TATA). > 3. Compile squid with the qos-enabled patch/option. > 4. Write rules in squid to mark TOS bytes for connections it makes on > behalf of requests coming from s1 as value X and from s2 as value Y. > 5. Write ip rules to direct packets with TOS value X to lookup routes > on t1 and that with Y from route table t2. > > HTH > > Mohan
Did some more reading up on the part I've not used i.e. squid tos marking. Looks like it supports only blanket outgoing tcp TOS marking without any rule based support. What I listed out will not work then. Alternative: 1. Ditch Squid and go for a simple gateway based solution. 2. Write ip rules to identify connections from s1 or s2 and direct them for lookup to tables t1 and t2 respectively. Mohan Mohan _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc