CLOSED: Nat Loopback?

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

CLOSED: Nat Loopback?

Postby batoum » Sat Nov 07, 2015 1:51 am

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Nat Loopback?

Postby bigfoot65 » Sat Nov 07, 2015 8:20 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

Re: Nat Loopback?

Postby batoum » Sun Nov 08, 2015 12:37 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Nat Loopback?

Postby bigfoot65 » Sun Nov 08, 2015 7:14 am

Good to know and thanks for sharing.

Hopefully that change will not cause any internal issues.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 66 guests