Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I brought a new server with one static IP. So My problem is - I don't have extra static IP service providers charging me very high amounts. So, Inside ESXi I'm running one Ubuntu server so is it possible to connect Ubuntu server direct via ssh using port forwarding on ESXI.

Internally I have created a simple Vulnerable Lab for Exploitation.

I don't have much idea about this ESXi Server please help me.

If anyone knows please tell me. How to get internet connection on Ubuntu server and ssh port forwarding.

Thanks !!

share|improve this question
1  
As a fellow ESXi noob, I can assure you that you can't simply use one static IP with an ESXi setup. The problem is that ESXi is not a router itself, and it won't do any sort of routing for you. All it'll do is connect the NIC to a virtual machine. It's pretty inflexible. You'd either have to use a hardware router in front of ESXi, or get a minimum of two different separately routable public IPs allocated to the ESXi box (one for ESXi and one for the guests). –  allquixotic Jan 3 '13 at 13:38
    
Thanks for replying. –  Jeckor Jan 3 '13 at 13:56
    
If you know what you are doing, you can install pfsense (or another firewall istribution) in a small VM, and then set that VM to your public IP as it's WAN (internet) address. You make another "virtual switch" in VMwware first, and set the connect the LAN interface of your pfsense to the virtual sense. You can then use NAT, DHCP, port forwarding, etc. –  Noah Mar 17 at 9:22

3 Answers 3

Purchase a router and place it in front of the ESX system facing the internet with your one IP. Configure the router to handle port forwarding/NAT for the network. Even a home router will do this but perhaps not best for a system that needs 7X24 uptime

share|improve this answer

My understand your concern is the high charge for a static IP. well, if you already have a statis public IP. and of course you have a modem, you need to drop a line from the modem to a switch, then one line from your switch to your LAN, and one line to your ESX LAN through router such as juniper firewall. how to setup an ESX LAN is another story. Note: ESX LAN could be a different name. used ESX just as example.

share|improve this answer
    
Although I understand what you're saying, I don't think this answers the OP's question as to how he gets an internet connection and ssh forwarding to his VM... at least not specifically. –  JoshP Jan 3 '13 at 20:44

If you know what you are doing, you can install pfsense (or another firewall istribution) in a small VM, and then set that VM to your public IP as it's WAN (internet) address. You make another "virtual switch" in VMwware first, and set the connect the LAN interface of your pfsense to the virtual sense. You can then use NAT, DHCP, port forwarding, etc. Make sure you set the pfsense VM to boot up automatically with the host. Once you are very sure it's working, and have someone wherever your computer is to support you if it doesn't work, you can switch the management interface of VMware over to the internal segment (which can be a 10.0.0.x address or whatever).

You can set your pfsense to port forward the VMWare management ports from the outside IP so that you can still connect "directly" to the outside IP to manage your VMs. You can also simply not do this, and only be able to manage your VMWare from a VM with the vSphere client installed or something.

What makes this solution is that if your pfsense ever stops working, you will lose access to VMWare, since it only has an internal IP. If you have physical access, I recommend this solution. (Of course you can use a real router instead of an appliance if you like).

Another, simpler solution, you can leave your VMware server on a public IP - if you just need SSH, is that you just enable SSH on ESXi, and SSH into the ESXi server, and then from there run SSH and SSH into your Linux VM, which can be on a private IP. Even in this case, if you want your VM to have internet access, you will still have to have a router or proxy of some sort running in a VM, which will need an IP.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.