The short answer is 'yes'. The tools and kernel set up in TSL 2.2 will support this.
The slightly longer answer is to read the lartc.org documentation and be prepared to do extensive testing and to be patient. Once you get over the hump in the learning curve it becomes pretty straightforward.
Things to look at:
Learn how to use 'ip rules' and 'ip route' to create separate routing tables for each ip range. One trick is to make sure
reply packets are finding their way BACK over the correct path.
Routing based on port number will require using 'iptables'.
You will probably find it useful to look at the instructions for setting up a Squid web cache server, in the instance where squid
runs on a separate server.
Play with tcpdump a lot to get comfortable with it! I find using something like 'tcpdump -n host 192.168.1.1' to be useful; '-n' turns off name lookups which really slow it down, and using 'host' shows all traffic coming and going with that host. Then you can do a 'ping' and if your routes are correct you see the packet come in and a response go back out on the correct interface. Ta-da! When you get it right it's so amazing, makes you feel like a genius!!! The bad part is, none of your family or friends will care!!! (This is why we have Linux user groups.)
Good luck,
Brian
Thomas wrote:
I have 4 different WAN IP's, W1, W2, W3 and W4. All 4 addresses is in the same ethernet cable. Don't ask why it's like that, since it is how my server host has set things up.
On each of those WAN IP's there's a Router placed (R1, R2, R3 and R4). Each router is configured to forward calls on different ports to different servers in their LAN. Currently each router has 2 servers attached, for a total of 8 different servers.
Basically I would like to drop the 4 routers and instead setup a Trustix box to handle all the routing. Can it be done? Here's a schematic of my current setup:
W1 R1 port 80 -->> LAN IP 192.168.1.1 W1 R1 port 21 -->> LAN IP 192.168.1.1 W1 R1 port 110 -->> LAN IP 192.168.1.2 W1 R1 port 25 -->> LAN IP 192.168.1.2
W2 R2 port 80 -->> LAN IP 192.168.1.3 W2 R2 port 21 -->> LAN IP 192.168.1.3 W2 R2 port 110 -->> LAN IP 192.168.1.4 W2 R2 port 25 -->> LAN IP 192.168.1.4
W3 R3 port 80 -->> LAN IP 192.168.1.5 W3 R3 port 21 -->> LAN IP 192.168.1.5 W3 R3 port 110 -->> LAN IP 192.168.1.6 W3 R3 port 25 -->> LAN IP 192.168.1.6
W4 R4 port 80 -->> LAN IP 192.168.1.7 W4 R4 port 21 -->> LAN IP 192.168.1.7 W4 R4 port 110 -->> LAN IP 192.168.1.8 W4 R4 port 25 -->> LAN IP 192.168.1.8
Quite clumsy eh? :o)
Would be sweet if one Trustix box could do the work of those 4 routers. Hope someone can help..
Sincerely, Thomas _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
-- Brian Wilson Corvallis, Oregon 541-368-4120
_______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
