can virtualmin be used as a gateway to send internet traffic to internal ip address


I have not been able to find any documentation on how to do this properly. I am hoping that virtualamin GPL can do this instead of having more public ip addresses.

I would like to set up a virtualmin server as my dmz zone and gateway at home.

I have one public (internet) ip address but i have 3 domains. I could use apache to run the web sites but I was hoping that virtualmin could route the 3 domains to different servers at home.

so something like this

internet -> home router -> dmz virtualadmin( server

do I set the dns info of the domains on my internal dns server or do set them up with the vm server.?
can the vm server just be a gateway ?

thanks for the help in adavnced…



Mmh, first question: if you already have a “home router”, what do you need an additional machine to “route traffic to different machines at home” for?

Since you obviously have private IP addresses in your LAN, as is the usual case for home users, you need to do port forwarding to e.g. reach web servers on your home machines. Which means only one machine can be reachable on port 80 from the outside, since each port can be forwarded to only one LAN machine. And this is something your home router can already do.

Then: Virtualmin is a hosting control panel, using it just to configure a NAT router (that’s what you’re looking for here) is 100% overkill. :slight_smile: For a simple NAT router machine, I’d recommend “PFSense”, which is a very versatile BSD-based software router.

So you’d need to give us some more details about what setup you’re exactly trying to achieve and what those three domains in your LAN are supposed to do.


First, congratulations on your tool is great.
Now for my problem.

I have the following senary:

proxy server Centos 5.6

eth0 - dhcp DSL
eth1 -

Firewall - iptables

where my firewall

-I PREROUTING 1-i eth1-p tcp - dport 80-j REDIRECT - to-port 3128
-A POSTROUTING-o eth0-j MASQUERADE # Forward HTTP connections to Squid proxy

Dhcp3 server

ddns-update-style interim;
default-lease-time 6000; # Define the maximum time that an IP
max-lease-time 72000; # locked into one equipment
authoritative; # Define this serdar DHCP is the main network
log-facility local7; # Define which category of the log will use DHCP
option domain-name-servers;

subnet netmask {
allow client-updates;
option routers;
option subnet-mask;
option broadcast-address;
option domain-name “proxyserver”;
one-lease-per-client on;
option netbios-name-servers;


group {
deny client-updates;
deny unknown-clients;

deny client-updates;
deny unknown-clients;
hardware ethernet BC: 30:5 B: D0: F0: 44;

ddns-updates on;
deny client-updates;
deny unknown-clients;
hardware ethernet BC: 30:5 B: D0: F0: 4A;

dev server Centos 5.6
eth0 -

virtualmin here that will create internal domains

all my clients 172.16.00/24 ​​subnet can access the domains created on this server,site2,com … any


Sorry, I could not find any question or problem in that post. :slight_smile: Please tell us more details about your problem.

Also, please enclose console outputs in \[code\]...\[/code\] tags for readability.