Forward web traffic to 1 VM from multiple public IPs

asked 2015-01-19 11:39:34 -0500

adam__ gravatar image

What I would like to accomplish is to have a tenant with 1 server (a web server) from which they would like to have traffic from multiple public IPs, on port 80 & 443, forwarded to this 1 server. Is that possible? And how can I accomplish it?

I've seen similar questions asked like this on the forums but they don't get an answer or are told it's not possible at the moment (however these ones seem to be from 2013).

Thanks for any help!

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-01-19 18:29:36 -0500

I also have the same trouble. Please have someone help.

edit flag offensive delete link more
0

answered 2015-01-21 05:57:05 -0500

capsali gravatar image

Well as posted before you CAN have multiple networks assigned to an instance and allocate one FIP for every network. If you are using linux for the OS on the VM, you must bring up the other eth and make them persisent on boot because only eth0 is up on first boot of the instance.

Another way is to create an external network with DHCP and connect the instance directly to it although it is not recommanded. Assuming you have a physical router that handles the external ip's, you can then create multiple virtual ethernets in the VM and allocate each an ip. I have done this using neutron in DVR mode. It's a little bit messy but it does the job. But again this is NOT recommanded!

Lastly, if u have a physical router that handles external ip's, you can forward traffic from multiple ip's to the instances external ip!

edit flag offensive delete link more
0

answered 2015-01-19 16:45:59 -0500

updated 2015-01-19 20:34:08 -0500

Floating ips in openstack are mapped to network ports not IPs . You can accomplish what you want by assigning multiple network ports to your VM and then assign a different FIP to each port.

You will probably have to use multiple private networks and attach VM to each network that you want a different FIP for.

edit flag offensive delete link more

Comments

I've not been able to accomplish this in practice. Can you detail out the steps exactly, please?

Also does this go directly against what this person has asked ?

adam__ gravatar imageadam__ ( 2015-01-20 03:30:17 -0500 )edit

The answer you linked is exactly what I said:

"create an instance with two net, and it create two interface."

Just create 2 networks and during boot select both networks to add to the VM.

Then you can assign a FIP to each port on each network.

I do this all the time.

sfcloudman gravatar imagesfcloudman ( 2015-01-20 23:48:12 -0500 )edit

The answer says that he cannot accomplish this. If you scroll down he says the second port is disabled. The "Marked Answer" says that you can only have a single floating IP for any VM. This is why I asked if you could please document your steps to me - as maybe you are doing something different.

adam__ gravatar imageadam__ ( 2015-01-21 04:53:01 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-19 11:39:34 -0500

Seen: 231 times

Last updated: Jan 21 '15