Page 1 of 1

CLOSED: Nat Loopback?

Posted: Sat Nov 07, 2015 1:51 am
by batoum
Hi
I have owncloud8 set up on SSl and can access it using username.yourhda.com:443. It works fine when I am outside my network but when I use https://username.yourhda.com:443 from inside my network, it gets redirected to the IP address of my router. I have found out that the issue is that my router does not support NAT Loopback.

I am not sure how to bypass this. I tried the Punching Holes in the DNS wiki but the field is not big enough.

I tried to edit the etc/dnsmasq.d/amahi-dns.conf by adding the domain in this line (before and after the 192.168.1.10)

Code: Select all

address=/owncloud8/owncloud8.amahi.net/192.168.1.10
This is the config file of owncloud8

Code: Select all

<VirtualHost *:443> ServerName owncloud8 ServerAlias owncloud8.amahi.net ServerAlias username.yourhda.com SSLEngine On SSLCertificateFile /etc/pki/tls/certs/server.crt SSLCertificateKeyFile /etc/pki/tls/certs/server.key DocumentRoot /var/hda/web-apps/owncloud8/html <Directory "/var/hda/web-apps/owncloud8/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog /var/hda/web-apps/owncloud8/logs/error_log CustomLog /var/hda/web-apps/owncloud8/logs/access_log combined env=!dontlog </VirtualHost>
The port forwarding on the router is on.

Suggestions?

Re: Nat Loopback?

Posted: Sat Nov 07, 2015 8:20 am
by bigfoot65
Have you check the ownCloud forums? How about the wiki. This is something that you may need to see advice from the ownCloud experts to resolve.

Not sure we can help much here.

Re: Nat Loopback?

Posted: Sun Nov 08, 2015 12:37 am
by batoum
Hi
I solved it.

I edited the etc/hosts file to add the domain at the bottom as follows:

Code: Select all

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.10 username.yourhda.com #<= this was added

Re: Nat Loopback?

Posted: Sun Nov 08, 2015 7:14 am
by bigfoot65
Good to know and thanks for sharing.

Hopefully that change will not cause any internal issues.