Do I need extra IPs?

dominique120

New Member
Feb 28, 2014
13
0
1
This is my proposed setup using OpenVZ containers (hosted on Proxmox): CT 1: MySQL and nginx. Hosts all databases and multiple websites(domains). Used ports are 80, 443, 3306, 8080 CT 2, 3, 4: These host special servers that all listen on ports 7171 and 7172. They also connect to CT1 for their databases. To connect to the websites, people use exampledomain1.com, exampledomain2.com and so on To connect to the servers in CTs 2, 3 and 4 people use login.exampledomain1.com:7171 and so on (once authenticated the client switches to port 7172) MySQL listens on mysql.exampledomain9.com So would it be best to get extra IPs for this configuration? How many would I need(maybe one per domain?)?
 
So exampledomain1.com & exampledomain2.com resolve to CT1 and login.exampledomain1.com resolves to CT2 etc? I'd figure you'd need WAN IP addresses for all CT's unless you're behind a NAT?

Verstuurd vanaf mijn Nexus 5 met Tapatalk
 
login.exampledomain1.com login.exampledomain2.com login.exampledomain3.com subdomains resolve to CTs 2 3 and 4 the regular domains all point to CT1
 
login.exampledomain1.com login.exampledomain2.com login.exampledomain3.com subdomains resolve to CTs 2 3 and 4 the regular domains all point to CT1

- if your CTs are not behind some NAT, with that setup you need at lest 1 WAN IP per CT.
- with NAT, you could use just 1 WAN IP (eg: using an http reverse proxy)

Marco
 
- if your CTs are not behind some NAT, with that setup you need at lest 1 WAN IP per CT. - with NAT, you could use just 1 WAN IP (eg: using an http reverse proxy) Marco
This is on a dedicated server from OVH. I dont know if its on NAT. Would this reverse proxy setup be complicated?
 
ovh.nl? So you're Dutch as well? Anyway I'll continue in English.
You probably got a single WAN IP with your dedicated machine. I doubt if you got NAT unless your dedicated machine is behind a dedicated router. In that case you wouldn't be able to setup a reverse proxy. The only solution in this case is to get some extra IP addresses from Ovh and add them to your CT2-4+ or have OVH place a dedicated router for you in which case you could NAT forward port 7071/2/3 to CT 2/3/4

Verstuurd vanaf mijn Nexus 5 met Tapatalk