Ask Your Question
0

source ip for VMs behind load balancer

asked 2016-05-25 02:41:56 -0500

fresher gravatar image

The lbaas service of openstack uses a virtual IP for the load balancer. All the packets would first hit this IP. My query is would the source IP of the packets change when the request reaches the VM which are behind the load balancer. Does the load balancer perform NATing?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-25 12:11:55 -0500

rduncan-t gravatar image

your question is all wrong -

would the source IP of the packets change

packets do not have IP addresses

when the request reaches the VM which are behind the load balancer. Does the load balancer perform NATing?

a load balancer does not NAT - but in this case what would it be NAT'ing - the packets? A load balancer uses a virtual IP to route client requests to 2 or more servers using a load balancing algorithm, if you need the requests to arrive at the backend servers with their original IP address in http headers then you need to enable x-forward-for on the load balancer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-05-25 02:41:56 -0500

Seen: 218 times

Last updated: May 25 '16