I've searched for similar solutions, but can't seem to find an answer to my specific challenge...
I downloaded and installed the latest ownCloud appliance (Ubuntu 14.04 + OC 9.1) on Virtualbox, and have it running nicely. The host is an old MacMini 2,1 which is also my internet gateway/router for my LAN. it has two NICs (one for WAN & one for LAN).
My network looks like this:
internet -->-- [WAN IP] modem/router [192.168.0.1] -->-- [192.168.0.50] MacMini gateway/router (VBox + OC appliance) [192.168.2.1] -->-- LAN/Airport Extreme Switcher & WiFi AP
Currently my MacMini is working well as a gateway, stable and secure. The OC9.1 appliance is working well, and VBox has two virtual NIC's bridged to the two physical NIC's of the MacMini.
VBox External/WAN NIC = 192.168.0.53
VBox Internal/LAN NIC = 192.168.2.27
OC can access the internet and LAN. Each device on my LAN can access OC at 192.168.2.27/owncloud, and that works great. But I can't seem to get access to OC from the internet.
Things I've done:
1. I have a DDNS service (dynu.com) which gets my WAN IP from ddclient running on OSX.
2. Created NAT rules in my modem/router from WAN (using ports in the 2**** range) to 192.168.0.53 ports 80 & 443.
3. Edited my /config/config.php file to contain each IP and domain I'll be accessing the OC sever from (including: 192.168.0.53, 192.168.2.27 & myname.dynu.com, and myname.dynu.com:2****)
4. Tested by turning off firewall on OSX & VBox appliance.
However, I just can't seem to get it to work.
I have tried pagekite, and it does work, but it's not a free service. And as I'll be moving large video files around it will begin to not look so cheap after a while.
Any help would be really appreciated.