+ Reply to Thread
Results 1 to 6 of 6

Thread: how to redirect traffic from one server to another

  1. #1
    Newbie
    Join Date
    Jun 2004
    Location
    Chittagong, Bangladesh
    Posts
    7

    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.
    users who are using box A as their gateway and proxy don't use their bandwidth after office hour. so these bandwidth remain unused after evening. is there any way to use this unused bandwidth at evening by doing some scripting in both linux boxes and with the help of cron ?? i don want to change anything in user end. everything will be automaticaly change in my linux boxes after and before office hour .
    is there any idea ?
    thanking in advance

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    I'm not sure what was your concern ..... but .... running scripts should have nothing to do with the bandwidth you have. If you are really thinking of computing power (such that your boxes do the job of being gateway/proxy and then act as distributed computing clients), then, of course, yes. What you would want to normally do is NOT have all scripts run at one time at certain time (such as say 5 PM) but run them through out until say 8 PM so that you will have enough computing power left for those who stay late in the office once in a while. Then increase it to say 20 process by about 8 PM which you sure no one will be around to work. Then do the same decreasing amount in the morning starting at say 5 AM till 9 AM.

    Alas, many distributed computing clients do that regularly.

    Hope this answered what you have in mind.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  3. #3
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    Quote Originally Posted by orko
    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.
    users who are using box A as their gateway and proxy don't use their bandwidth after office hour. so these bandwidth remain unused after evening. is there any way to use this unused bandwidth at evening by doing some scripting in both linux boxes and with the help of cron ?? i don want to change anything in user end. everything will be automaticaly change in my linux boxes after and before office hour .
    is there any idea ?
    thanking in advance
    I don't know if there's a decent way to do what you want. You could craft a cron job to swap IPs on the GWs, but that just means the other box stays idle. Just accept that one stays idle, or do some network intensive processing in the evening, using the idle box.

  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    You mean by load balancing?

    If so, there are a few good howtos. Here is one . If you rather depend on a piece of software, then there is SuperSparrow for Linux.

    HTH ..
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  5. #5
    Newbie
    Join Date
    Jun 2004
    Location
    Chittagong, Bangladesh
    Posts
    7
    well.... sorry for any confusion in my mail.

    this is what i want to do.

    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(i don know what) 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 . 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.........

    hope its clear now. thanking all of u for ur reply.

  6. #6
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    Implement load balancing.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

+ Reply to Thread

Similar Threads

  1. Active Directory LDAP Compliance
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 03:34 AM
  2. Set Up SQL Server with Proxy Server
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 03:18 AM
  3. ISA Server on Server 2003
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 09:50 PM
  4. ISA Server on Windows Server 2003
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 09:49 PM
  5. Live Communications Server 2005 Glossary
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 09:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts