Webserver acces from LAN
-
Hello,
I have a dynamic public IP but I have a functional Dynamic DNS service. The webserver is an Apache server... WAMP on a Windows 10 VM in esxi. PFsense is also a VM in the same esxi.
I've added NAT Port Forward rule.
I've added the port in windows firewall also.
I have a problem in accessing the server from inside the network through dynamic DNS domain name. From outside the network there is no problem. Also in LAN the http://192.168.1.20:12323 is working.
I have the same problem with the FTP service (filezilla server in windows 10).
Thank you
-
Add a DNS override for your public host name.
-
@viragomann said in Webserver acces from LAN:
Add a DNS override for your public host name.
I've just checked the access through the public IP and is not working... so is not only the dynamic dns name...
-
@viragomann said in Webserver acces from LAN:
Add a DNS override for your public host name.
-
First of all : this https://docs.netgate.com/pfsense/en/latest/nat/port-forward-troubleshooting.html captures all possible issues.
If it still doesn't work : capture all the traffic on the incoming WAN interface, and see for yourself if the traffic actually reaches pfSense. (check point 8 on the list on the trouble shoot page above ).
The WAN interface handles all incoming and outgoing traffic, the capture file will contain a lot of packets. So, in your case, you could focus on your NAtted incoming traffic by selecting only "port 12323" traffic.You should check all 15 points on the list.
Btw :
Not very important, but you should consider making this "TCP" only. Web servers do not use UDP traffic.
-
Thank you, I'll try and let you know.
-
I've checked all 15 items from the list and I couldn't find the problem.
The states looks like this:
The problem is when I'm trying from LAN to public IP or domain name. From LAN to LAN IP is all good... also from WAN to Public IP is working.
-
Have you checked https://docs.netgate.com/pfsense/en/latest/nat/accessing-port-forwards-from-local-networks.html ?
-Rico
-
It worked with NAT Reflection. Thanks