Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I was able to implement LVS with Direct Routing (iptables).
I am facing a problem while using the iptables which requires
iptables enrty on Real servers like this (iptables –t nat –A PREROUTING –p tcp –d <VIP> --dport <port> -j REDIRECT).
Below is a brief on the setup:
I have 3 servers Apache installed on all three servers (Port 80).
Server 1 (10.50.57.22) -> 10.50.57.55 (VIP) -> running “Pulse”
Server 2 (10.50.57.40)
Server 3 (10.50.57.48)
I have configured LVS on port 80. Added the below iptables entry on 10.50.57.40 & 10.50.57.48
iptables –t nat –A PREROUTING –p tcp –d 10.50.57.55 --dport 80 -j REDIRECT
With the above setup everything works fine. Even Apache on Server 1 (Which has the VIP) get the request as part of Load sharing.
But if I add the iptables entry in Server 1 (10.50.57.22), Requests are received only on the Apache installed this host.
The reason for doing this is to implement redundancy. Like in my case I have implemented the redundant setup on Server 2 (10.50.57.40) and once the “pulse” is stopped on Server 1(10.50.57.22), “pulse” is automatically started on Server 2 (10.50.57.40) which acquired the VIP (10.50.57.55). But since iptables is already active with the above entry all the requests are going to the Apache of same host (10.50.57.40).