Hairpin NAT

I have been struggling for a few days now trying to get both access internally and externally to my Bitnami WordPress Server (Hairpin NAT issue)

It turns out after a bit of digging and allot of forum posts that finally the below rules have done the trick for me taken from here

Screenshot 2015-08-13 11.44.22


(The above are not my rules)

Assigning a Static IP – Bitnami WordPress VMware VM

Firstly enable SSH on the VM by running the following commands.

$ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
$ sudo start ssh

Once SSH is enabled SCP to “/etc/networking/interfaces” and changing the following (You may have to run chmod and give the user bitnami rights in order to edit it.

auto lo eth0 
iface lo inet loopback 
iface eth0 inet static 
address (this is your static IP) 
netmask (again, this should match your network.) 
gateway (enter gateway/router address)
dns-search domain.local (Enter your domain if applicable)

Save the changes and either restart the VM or run the below command for the changes to take affect.

 "/etc/init.d/networking restart"