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.
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?)