Find the answer to your Linux question:
Results 1 to 2 of 2
I'm new to Linux LVS and keepalived. Wonder if anyone here is able help. I have two hosts that I want to cluster with a virtual IP address. For example: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2013
    Posts
    2

    IP masquerade with LVS and keepalived, possible ?


    I'm new to Linux LVS and keepalived. Wonder if anyone here is able help.
    I have two hosts that I want to cluster with a virtual IP address. For example:

    Code:
    Host     Real IP       Virtual IP
    -----  -------------  ----------------------
    #1     192.168.1.10   192.168.1.2 (Master)
    #2     192.168.1.11   192.168.1.2 (Slave)
    The above I can do with ipvsadm and keepalived.
    Question is how do I masquerade the virtual IP whenever either hosts initiate a network connection to another server, say at 192.168.1.20 ?
    That is, the server (at 192.168.1.20) will only see connections from IP address 192.168.1.2 even though they may come from either host #1 or #2 ?
    Any help greatly appreciated.

  2. #2
    Just Joined!
    Join Date
    Sep 2013
    Posts
    2
    Anyone?
    Would iptables work?

Posting Permissions

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