@PeterP thank you for your answer but I feel like you completely missed my question.
Please don’t take me wrong way and I do apologise in advance if my answer comes a bit off.
Please do understand I know perfectly how to forward traffic behind NAT and how to use NAT, and also if you understand NAT 1:1 it doesn’t require “ports” to be “forwarded” as one-to-one NAT. (and already “dedicates one to the webmin server”).
Nat 1:1 -> Incoming traffic from the Internet to the specified IP will be directed toward the associated internal IP. Outgoing traffic to the Internet from the specified internal IP will originate from the associated external IP.
You devoted an entire answer to NAT but NAT isn’t my question. My question is about the VIRTUALMIN CONFIGURATION to sit behind NAT. My problem isn’t IP’s availability either. I have plenty of public IPv4’s to use, and my current test setup with Virtualmin has two dedicated IP addresses:
- One public IPv4 for Virtualmin/web server
- One public IPv4 for Slave DNS server
Also, this is a “Cloud” instance. This sits on a remote infrastructure on a cluster, not in the basement. This is an HA cluster which comprises various servers, firewalls, HA routers, etc. I could put the servers behind a load-balancer even.
I deeply apologise if my answer comes off a little rough but I am enjoying the webmin/virtualmin software, but not falling for the community. Topics on this forum go unanswered, people reply with things that are not related like they didn’t even read the questions and this frustrates me. Aside from all the time it takes to get an answer from anyone, like this is a dead community. I’m really not looking to offend you or anybody really, but I do hope you understand my frustration with this “virtualmin community experience”.
I am testing a Virtualmin/Webmin setup that currently accounts three servers:
- The Virtualmin server is both web and master DNS.
- There is a second webmin server, on a private closed network, which is the MySQL/MariaDB server. Remote MySQL working well.
- There is a third server only serving as Slave DNS.
The setup is currently working AS IS (including letsencrypt ssl) and I’ve looked a lot trying to understand the best approach to this configuration with Virtualmin.
My question is, for those who are experienced with Virtualmin, that know it well, what is the correct approach from the Virtualmin POV to tell the Virtualmin system that a domain will have a given IP externally.
Virtualmin wiki link for Virtualmin Features is close to empty: https://doxfer.webmin.com/Webmin/Virtualmin_Features
So, I would like to understand, from experienced and knowledged users what are the correct approaches to tell the Virtualmin server that IP-1 is for domain abcd.com and IP-2 is for wxxy.org, so DNS gets configured correctly from the start. My question is not about NAT, is how to configure Virtualmin behind NAT for such scenarios, like giving an IP to a domain and other IP to another domain on the same server, being that the IP is not bound to any interface, but upon domain creation get the correct records created.
Obviously there are ways to do it, and I also know how this can be accomplished (independent of virtualmin or not). But again, and I am going to stress this, I came here looking for community experience with such scenarios. Thanks.