LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2006, 07:27 AM   #1
orko
Member
 
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Rep: Reputation: 19
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
 
Old 08-12-2006, 08:48 AM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
What are the network masks for your segments? Also do you have some sort of diagram to show the configuration? For example are the two linux boxes physically connected in some way? I"m not a network genious but just wondering
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect traffic tim24 Linux - Networking 5 04-06-2006 10:45 AM
redirect traffic through apache kola Linux - Networking 7 12-11-2004 07:29 AM
Traffic redirect friki Linux - Software 2 11-04-2004 04:59 PM
using linux to redirect remote vpn traffic to another remote machine brb5548 Linux - Networking 0 06-28-2003 09:07 PM
Redirect traffic to internal IP? xmutex Linux - Networking 1 08-13-2001 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration