how to redirect traffic from one server to another
i've two linux box (both are being used as gateway/proxy server) with internet connection from two different ISP.
linux box A :
eth0 = 203.88.80.51
eth1 = 192.168.100.1
linux box B:
eth0 = 69.88.5.35
eth1 = 192.168.100.2
i've divided my clients into two groups. Group A is using 192.168.100.1 as their gateway and proxy and Group B is using 192.168.100.2 as their gateway and proxy.
ip 192.168.100.51 to 100 is using Linuxbox A . so their gateway is 192.168.100.1 and browser proxy addrss is 192.168.100.1 . they use only at office hour. there is 512 kbps bandwidth in linux box A.
ip 192.168.100.101 to 250 is using Linuxbox B . so their gateway is 192.168.100.2 and browser proxy addrss is 192.168.100.2 . there is 512 kbps bandwidth in linux box B.
now i want to do something(through iptables and/or route command) in my linuxbox B for some ips (say ip 151 to 250) so that all of their traffic towards linuxbox B will be redirected to Linux Box A after office hour (it cab be done by crontab). so that i can enjoy 1 mbps bandwidth after evening. and all of my linuxbox B clients will get better speed . its true if they change their gateway and proxy ip to 192.168.100.1 then they can use the bandwidth of linux box A . but it cant be done manualy each time and i don want to inform my clients.........
thanx in advance
|