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 http://forum.mikrotik.com/viewtopic.php?t=48480

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 xxx.xxx.xxx.xxx (this is your static IP) 
netmask xxx.xxx.xxx.xxx (again, this should match your network.) 
gateway xxx.xxx.xxx.xxx (enter gateway/router address)
dns-search domain.local (Enter your domain if applicable)
dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

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

 "/etc/init.d/networking restart"