0

Okay, let me be very clear and specific. I am working on VirtualBox VM : CentOS7 64bit.
I am using NAT Network for VM and also enabled four network adapters. VM has 4 different static IPs.
Lets say..

192.168.x.a
192.168.x.b
192.168.x.c
192.168.x.d

But has single domain name bound with 192.168.x.a with 'A' record.

I am planning to install 4 different servers on same VM. i.e. FreeIPA server, Zimbra Mail server, Mono Server, Oracle Database server.

NOTE: These servers runs as desired on separate VMs. But I'm unable to collaborate them together.

I am stumped on port conflicts. I think, I have 2 options...

1) Either, I need to know how to tell a service to use ports from particular IP while installing it. (both Zimbra and FreeIPA check for ports while installation; Error occurs if port are being used by previously installed server.)

2) Or changing iptables and config files for installed service, so ports which are occupied before will now be opened for new service to be installed (servers like Zimbra and FreeIPA has default setting in config files and they are complex. If I do some change, I'm afraid of messing the whole system). If I do this; I can run any numbers of servers on a single IP by changing ports for every service. But, there is no clue for doing it after searching a lot.


I am in search for solution since many days, and you guys are only my hope. I am afraid of someone mark this as illogical question. Because, I did not mentioned version of Servers and their config file settings as well as my network file settings. I skipped them to make it focused on IP and ports per service issue.

P.S.: Docker can be useful but I found I should use Docker right now! topic on this link.
Seems like using Docker can be another mess for me.
So, Consider any services of your choice and they all should be given desired ports as per requirement on one condition. Only one IP is allowed per service. (But how?)

1 Answers1

0

If you want to run all of those services on a single machine you will have to delve into the configurations of those applications and configure them accordingly. Otherwise there are some workarounds available but it's usually better to properly configure those services.

To figure out how to change the configuration of the services you will have to check the official documentation or contact the vendor. Another alternative would be to run those services encapsulated into "something". So either a VM or a Container like Docker could work. As you said Docker might be way harder to implement in this scenario. As CentOs doesn't have any associated licensing fees it could be worth to checkout whenever a virtualization solution could help you out if you're uncomfortable reconfigureing the applications. On the other hand it's a bad idea to be afraid of it as it sounds like you're uncomfortable learning about the applicaitons you're running.

Seth
  • 9,393