LinuxQuestions.org
Help answer threads with 0 replies.
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 04-17-2013, 05:55 AM   #1
exemen
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
Redhat LVS (piranha) backend connects itself over VIP


Hi All,

I 've been trying to setup LVS piranha with something different under Redhat enterprise 5

What i want to do is simply;

I have one backend and one LB runs on Direct Routing mode with iptables. I did not use any vip nor arptables for backend (i used on backends, iptables -t nat -A PREROUTING -p tcp -d $VIP --dport 8080 -j REDIRECT)

So in this case, all requests sends by Backend goes to LB:vip (direct routing iptables)

I got 3 servers
Backend1
Backend2
LB


Backend1 connects to Backend2 over VIP successfully
Backend2 connects to Backend1 over VIP successfully

But backend1 can not connect to itself over VIP nor Backend2 can not connect to itself over VIP this is what i want to do. Backends should connect itself over VIP.

I thought packages might return with LB ip instead of VIP so i did under the LB;
iptables -t nat -A POSTROUTING -p tcp -o eth1 -j SNAT -s $backend1 --to-source $VIP

but it did not work.

Should i use some other iptables rules or you guys say that it is not gonna work. Or should i use NAT mode instead of Direct routing of LVS?

Any suggestion are appreciate.

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Stuck trying to use Piranha and LVS TheGorf Linux - Networking 2 04-18-2013 05:25 AM
Piranha-LVS loadbalancing problem sanjee Linux - Server 2 06-09-2011 02:20 PM
LVS - VIP Seems to be NOT Responding! justemail Linux - Networking 2 07-01-2009 04:13 AM
How to open a port on a VIP (LVS) justemail Linux - Networking 0 06-10-2009 05:06 AM
Piranha LVS/TUN support OR alternative web interface for configuring LVS ajitabhpandey Red Hat 0 05-18-2009 10:37 PM

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

All times are GMT -5. The time now is 11:27 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