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

4 posts / 0 new
Last post
#1 Sun, 02/06/2011 - 19:21
cameron.cowie

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

Hi:

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(10.10.0.10) server ------> domain1.com 10.10.0.11 ------> domain2.com 10.10.0.13 ------> domain3.com 10.10.0.13

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

regards

Cameron

Mon, 02/07/2011 - 04:21
Locutus

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

Wed, 05/04/2011 - 16:03
surfings

Hello,

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 - 172.16.0.1/24

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 172.16.0.1;

subnet 172.16.0.0 netmask 255.255.255.0 { allow client-updates; range 172.16.0.100 172.16.0.254; option routers 172.16.0.1; option subnet-mask 255.255.255.0; option broadcast-address 172.16.0.255; option domain-name "proxyserver"; one-lease-per-client on; option netbios-name-servers 172.16.0.1; }

SERVERS

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

dataserver.com

{host dataserver.com deny client-updates; deny unknown-clients; hardware ethernet BC: 30:5 B: D0: F0: 44; fixed-address 172.16.0.10; }

devserver.com

{host devserver.com ddns-updates on; deny client-updates; deny unknown-clients; hardware ethernet BC: 30:5 B: D0: F0: 4A; fixed-address 172.16.0.11; } }

dev server Centos 5.6 eth0 - 172.16.0.11

virtualmin here that will create internal domains

all my clients 172.16.00/24 ​​subnet can access the domains created on this server

example:www.site1.com,site2,com ... any

tks

Fri, 05/06/2011 - 16:40
Locutus

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

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

Topic locked