Page 1 of 1

Accessing DDNS address (WAN) from LAN

Posted: Fri May 03, 2019 10:59 pm
by Kronyx
Hi !

My i have configured DDNS for my wan ip, the problem is i can't access the ddns from internal machines, is there a way to access it ?

Re: Accessing DDNS address (WAN) from LAN

Posted: Sat May 04, 2019 12:49 am
by cieplik206
Please explain what exactly are you trying to do

Re: Accessing DDNS address (WAN) from LAN

Posted: Sat May 04, 2019 3:01 am
by Kronyx
I have some things that are accessible from outside with my ddns (xxx.blah.com) but when i'm home on my wifi i can't connect to it because the router block it, so i have to manually configure the application to point to the internal address, i have read somthing about the hairpin nat but i have no clue howe to do it.

Thanks !

Re: Accessing DDNS address (WAN) from LAN  [SOLVED]

Posted: Sat May 04, 2019 3:22 am
by Sob
It's easy, you need to start with correct dstnat rules (don't use popular in-interface=<WAN>) and then add one srcnat rule.

Example in another thread

Re: Accessing DDNS address (WAN) from LAN

Posted: Sat May 04, 2019 6:05 am
by Kronyx
It's easy, you need to start with correct dstnat rules (don't use popular in-interface=<WAN>) and then add one srcnat rule.

Example in another thread
I got it working with this rule:

;;; Hairpin
chain=srcnat action=masquerade src-address=192.168.88.0/24 dst-address=192.168.88.0/24 log=no log-prefix=""

Thanks !