I have a server that I need to ‘build’ to replace two other boxes that are having issues currently, but I’m having trouble figuring out how to set up the new box that’s running Virtualmin to work with multiple IP addresses.
The two old boxes are as follows:
Mail server on private IP 192.168.0.210 it only handles mail and SSH, has three shell users.
Web server that holds multiple websites using private IPs .211 to .216, with each website configured to answer to a specific IP. This box handles web, ssh, and ftp services for each site.
The two old boxes have been configured with Webmin and the web site box uses virtual ethernet interfaces to enable the extra IP addresses. When looking at the Network Configuration page for those interfaces I see (Virtual) beside them. I personally created these virtual interfaces and then set Apache to answer on each one, but all of the addresses (or domain names) will work for ssh and ftp.
The new box I am configuring needs to be configured with all public IPs (moving them outside the firewall to determine if firewall has issue), and I’d like to configure all of the public IPs for the sites and mail server to this new Virtualmin box.
I would like to configure this new box with IP A as the main one I use to access it for example.
I need for it to receive incoming mail from the outside world at IP B for the domains on the box.
I need for it to answer to IP C and automatically load web site 1
I need for it to answer to IP D and automatically load web site 2
I need for it to answer to IP E and automatically load web site 3
I need for it to answer to IP F and automatically load web site 4
I need for it to answer to IP G and automatically load web site 5
I need for it to answer to IP H and automatically load web site 6
I want to get the box working as smoothly as possible so I can transfer the web site data to the new box once it is configured and put it in place of the old boxes.
What is the proper way to configure the interfaces and get Virtualmin to handle things properly?
If possible I’d like to configure the box to handle the IPs this way:
IP A will give me full administrative access to the box (Virtualmin, Webmin, Usermin, ssh, ftp) I am fine with accessing the server via IP address:10000 for Virtualmin.
IP B will handle mail ONLY (no ssh at this IP if possible) for the domains (virtual servers) installed on the box.
IP C will handle www and ftp for web site 1 ONLY. No ssh for sure, and I’d like to remove Virtualmin, Webmin and Usermin access from this IP.
IPs D, E, F, G, H all configured for their respective sites like C.
Essentially I’d like to limit ssh, Virtualmin, etc to IP A, and the other IPs on the box only do their respective jobs.
I am probably over-complicating my explanation. It sounds simple enough in my head. Almost like I would create all of the IPs using Virtualmin and then use Firewall rules to limit traffic to all the IPs, but I am looking for advice to get it configured properly.
This box will end up ‘on-site’ for a client.
I personally have a dedicated hosting server that is running Virtualmin and I have been unable to determine how that hosting company configured the additional IPs on the box that some of the sites use. I know that it was not done exactly the same way I did it in Webmin on the old boxes so I want to make sure I get this right.
Any advice?