Jump to content
Sign in to follow this  
iPeppers

Setting up a vm server in a dmz?

Recommended Posts

Ok, I know this is more complicated than it needs to be, and I'm a huge n00b at networking, but...

 

I've got a domain name and want to forward it to my server, so that I can view my website (obviously), but there are some snags for me...

 

-I'm running windows server 2k8 on virtualbox, and I have wamp set up properly I believe, along with mediawiki, because when I am on the server and go to my ip or localhost in a browser, it works fine and I can edit, etc.!

-problem is that I am connecting through a dlink router, and my friend told me I should be putting my vm server in a dmz, but I can't figure it out :doh:

-I need other computers connected to the router, along with the host computer to not be in the dmz (only the vm server can be in the dmz).

-I found the section in my router settings in which to make a dmz, but it requires a computer's ip for that dmz, so I give it the ip of my vm server, and forward the domain name to this ip.

-Other computers still cannot connect, but now the vm server itself can connect through my domain name.

 

My friend said something like he thinks I may have set up the dmz with a private ip and that I need a public one and my router should supply me with one, but I have no idea how to find out what it is, or if I really did set it up with a private ip. I set it up with an ip that starts 192.168.0.xxx, is this private? How can I give it a public one?

 

Any help would be very appreciated!

 

(I realize that this seems like a backwards way to set up a server, but it is just temporary until I get a separate computer for the server.)

Share this post


Link to post
Share on other sites

192.168 is a private IP range, yes. Try accessing it using the IP you get from this site. All computers on the router should share that IP (to the rest of the world, at least), and the DMZ will forward incoming traffic on that IP to the VM.

Share this post


Link to post
Share on other sites

But I need to have the host and another computer that share the router to not be in the dmz. That's why I'm stuck. :-(

Share this post


Link to post
Share on other sites

Right. On the local network, each computer has a 192.168.* IP. You pick out the VM and place it in the DMZ.

 

Now, because of NAT, every computer on the network shares the same external IP address. Once something's placed in the DMZ, it's the one that receives new connections to that external IP. (NAT usually keeps track of the computers making outbound connections and routes everything to the right computer, but it doesn't know what to do with a new inbound computer.)

 

So if you connect to that external IP, the router should send you straight to the VM.

Share this post


Link to post
Share on other sites

So, I put the local private 192.168.* IP as the DMZ, and then forward the domain name to the public IP for everything on my router (the one from the website that you linked to)?

 

(sorry if I'm being really slow here)

Share this post


Link to post
Share on other sites

Yeah, that should work. I haven't messed around much with network configuration before, but in my mind that would work.

Share this post


Link to post
Share on other sites

VirtualBox can be used for server virtualization, but it's really not intended for it. It's primarily intended for desktop virtualization.

 

You'd probably be better off with VMware Server or VMware ESX, both of which are free.

Share this post


Link to post
Share on other sites

Ah, excellent. Thank you. I worked with VMware Workstation software before, and it wasn't free, so I didn't even bother looking at what else they had :doh:

Share this post


Link to post
Share on other sites
Guest data recovery

Hi there,

 

Computer Science is the study of the computation and practical techniques for their implementation and application in computer systems.

 

Thanks

 

Regards

 

recover data

 

http://www.datadoctor.biz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.