8 posts / 0 new
Last post
#1 Wed, 10/02/2019 - 07:11
aj2

Intranet

Hi all,

I am trying to setup virtualmin for intranet.

This server is not connected to the internet. What I want to achieve, create in virtualmin several servers like: virtualserver1.intranet, virtualserver2.intranet, virtualserver3.intranet etc. and access these of course by the browser in our local network. If I need to use another port than 80, no problem.

But I cannot get it to work. I can only access the webmin portal on https:// IP:10000 and Apache2 Ubuntu Default Page on http ://IP

I have no access to the router, so hoping this is not a problem.

Hope the community can help me.

thanks

Wed, 10/02/2019 - 08:15
scotwnw

If you're trying to use hostnames instead of IP's then something has to do that translation. Either the hostnames have to be assigned to IPs in the router or you can put hostnames and IPs in /etc/hosts file on every linux vps. And you will have to update every host file anytime you want to add/change things. But you can setup a cron job to copy the hosts files from say the main vps to all the others.

So edit /etc/hosts and list ip (space) hostname.

192.168.1.100 virtualserver1.intranet
192.168.1.120 virtualserver2.intranet

All machines will need the same info in their own hosts files, as the host file is only used by that local machine.

Wed, 10/02/2019 - 21:02
noisemarine

or, just set up an internal DNS zone that resolves your intranet names to internal IPs. If you are not running your own DNS server for your internal computers, you will need to.

Thu, 10/03/2019 - 03:46
aj2

Thank you for your reply,

@scotwnw, I think I was not clear enough or I do not understand your solution for the full 100%. We only have one (dedicated) server that runs Virtualmin, so this server has only one IP address. Edit hosts files on each client machine is not what we want, if there is another way. If we create a new virtual server in Virtualmin, it shares the servers IP address. Lets say, 192.168.1.100. So I have to setup the DNS server in Webmin and that is where I get stuck.

@noisemarine, This is what I am trying to setup in BIND, but till now without luck. Webmin complaints the zone file already exists.

Thu, 10/03/2019 - 08:24
scotwnw

Sorry, ignore my answer. I misread your post and was thinking of VPS (multiple servers) instead of virtualmin with multiple sites.

Thu, 10/03/2019 - 10:03 (Reply to #5)
aj2

Hi scotwnw, no problem. thanks for your effort trying to help me

Thu, 10/03/2019 - 12:09 (Reply to #6)
beyondimage

Hey Scotwnw, I had a similiar question here https://www.virtualmin.com/node/67352 if you wouldn't mind checking it up for me. Thanks

Tue, 10/15/2019 - 15:30
unborn
unborn's picture

@aj2

192.168.1.100 virtualserver1.intranet and 192.168.1.100 virtualserver2.intranet in your hosts file if intranet domains are hosted on same server. If you want to access it from all computers on your lan network then you will have to use router/switch which would let you setup this manually in its backend or simply you can use netmasq on linux machine acting like router.. and then will automatically use those records on anything connected to it just for those domains, rest will be send out as normally

Configuring/troubleshooting Debian servers is always great fun

Topic locked