D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] FW: What would you use for this?

 

I think you're looking at "Source based routing" it has been ages since I did it, 
but with iptables you can tag packets based upon their source, dest, type etc..etc.. 
Then these tagged packets can be sent out via one route or another based upon your 
rules...

make sence ?  

-----Original Message-----
   >From: "sam@xxxxxxxxxxxxxxxxx"<sam@xxxxxxxxxxxxxxxxx>
   >Sent: 12/03/07 22:02:43
   >To: "list@xxxxxxxxxxxxx"<list@xxxxxxxxxxxxx>
   >Subject: [LUG] FW: What would you use for this?
     >
   >Hi All
   >
   >Just thought i would post this problem to see what options would suit best.
   >
   >has anyone rolled out a multi gateway as in the attachment?
   >
   >or have come across a good "how to".
   >
   >I have looked at "route append" which looks that it will do what i want,
   >
   >I will have at least 400 ip records which i need to route,
   >
   >I currently have a shell script which updates the routing table, but this
   >has to be ran at every boot time . does anyone know of a betterway to make
   >this permanant. like you would with iptables.
   >
   >in RH there are files in /etc/sysconfig/networking-scripts/route-eth*, but i
   >can't find my records in these files.
   >
   >does anyone know if they are currently being stored in memory?
   >
   >I have got the multi gateway working ok, but would like to use a basic linux
   >method to load/pop these routes, is there a set method?
   >
   >any nice GUI to allow quick and easy adding and removing routing records.
   >
   >Just in case i haven't made i very clear what i am wanting to do, I am
   >basically wanting all Office workers to use the ADSL gateway unless they are
   >using one of the 400 client ip records.
   >
   >Hope to see you all on 17th
   >
   >
   >Regards
   >
   >Sam
   >
   >PS
   >
   >so when would you use the following options?
   >
   >iptables -A FORWARD
   >iptables -t nat -A POSTROUTING
   >iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
   >
   >--
   >No virus found in this outgoing message.
   >Checked by AVG Free Edition.
   >Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 12/03/2007
   >19:19
   >


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html