You are not logged in.

#1 2017-05-18 22:42:41

felixita
Member
From: Venezia
Registered: 2016-02-02
Posts: 17

[SOLVED] Access server from lan with external address

Hy!
I've setup a webserver (apache) in may arch (updated) with ssl. If i'm in my local network where is the server, i can correctly connect my site (nextcloud) typing http://192.168.xx.xx/nextcloud. If i'm out of my lan i can correctly connect my site typing https://xxx.ddns.net/nextcloud (i've dynamic ip, so i use NOIP service).

My problem is that i need to connect my server from my lan but typing the same external address https://xxx.ddns.net/nextcloud. Actually if i try to make that i can't access to my site because my browser say "Connection not sure".

Can anyone help me to solve that?

Thanks!

Last edited by felixita (2017-05-19 20:50:48)

Offline

#2 2017-05-18 23:00:57

LeserGd
Member
Registered: 2007-07-14
Posts: 2

Re: [SOLVED] Access server from lan with external address

You should configure NAT loopback in your router settings, or add entry to /etc/hosts in your system.
Second option only works for that system where is configured, first for whole network.

Last edited by LeserGd (2017-05-18 23:02:47)

Offline

#3 2017-05-18 23:24:45

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 5,396
Website

Re: [SOLVED] Access server from lan with external address

LeserGd wrote:

You should configure NAT loopback in your router settings, or add entry to /etc/hosts in your system.

"Hairpin" is the correct term; loopback is the internal local interface (eg, lo0).

LeserGd wrote:

Second option only works for that system where is configured

Suitable for machines that stay on the network -- for a laptop that roams between intside and outside you want to use option 1.

Offline

#4 2017-05-19 14:36:05

felixita
Member
From: Venezia
Registered: 2016-02-02
Posts: 17

Re: [SOLVED] Access server from lan with external address

Thanks for your help. My router is a Mikrotik. I will try to configure it following some guide in Mikrotik forums.

Ciao!

Offline

#5 2017-05-19 20:48:55

felixita
Member
From: Venezia
Registered: 2016-02-02
Posts: 17

Re: [SOLVED] Access server from lan with external address

Ok, i've solved following this guide  https://freek.ws/2016/11/21/mikrotik-ha … or-dummies

Thank you again!

Offline

Board footer

Powered by FluxBB