Results 1 to 4 of 4
  1. #1

    Nat on vmware esxi 4

    My datacenter (hetzner) do not support bridged network.
    They only support nat, how can run vps on esxi4 with nat?

  2. #2
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    632
    possible way is to setup local IPs 192.168.1.0/24 on your guests machines ("host-only" interface) and then route traffic for public IPs and local IPs via iptables (SNAT/DNAT) on your host node.
    Last edited by xtrac568; 03-20-2010 at 04:51 PM.

  3. #3
    Quote Originally Posted by xtrac568 View Post
    possible way is to setup local IPs 192.168.1.0/24 on your guests machines ("host-only" interface) and then route traffic for public IPs and local IPs via iptables (SNAT/DNAT) on your host node.
    Thank you for your reply.
    1- Is it posible to assign valid ip to guests machines?
    2- How can route traffic public and local ips with iptables?

  4. #4
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    632
    Quote Originally Posted by gozargah View Post
    Thank you for your reply.
    1- Is it posible to assign valid ip to guests machines?
    2- How can route traffic public and local ips with iptables?
    1. If by valid you mean public ip directly on guest, i think thats not possible at hetzner, since IPs are probably locked per MAC address, therefore they say that vmware bridge won't work because vmware bridge interface would introduce another MAC address to the network.

    2. make sure ip_forward is enabled at /etc/sysctl.conf

    iptables -t nat -I PREROUTING -d public-ip -j DNAT --to local-ip
    iptables -t nat -I POSTROUTING -s local-ip -j SNAT --to public-ip

    where local-ip is IP of the guest, e.g. 192.168.1.10
    and public-ip is IP you've got from hetzner e.g. 94.125.44.10.

Similar Threads

  1. VMware Workstation Vs. VMware ESXi
    By troboy in forum VPS Hosting
    Replies: 3
    Last Post: 03-17-2010, 11:59 AM
  2. Help VMware ESXi 4
    By mixmox in forum Hosting Security and Technology
    Replies: 0
    Last Post: 02-12-2010, 01:29 PM
  3. VmWare esxi 3.x
    By daninmanchester in forum VPS Hosting
    Replies: 6
    Last Post: 12-28-2009, 11:26 AM
  4. some question about vmware ESXI !
    By VirtVPS in forum Hosting Software and Control Panels
    Replies: 27
    Last Post: 10-19-2009, 01:31 PM
  5. Vmware esxi help
    By Hostwaresupport in forum Hosting Security and Technology
    Replies: 2
    Last Post: 09-30-2009, 12:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •