Ddns + port forwarding
-
Hi.
I have domain in ddns.net, let say it was domain.ddns.net
I have LAN with many www or other servers. For each i have diferent port forwarding for that…example:
server1: 192.168.1.3
server2: 192.168.1.4In port forwarding i forward port 8003 to 192.168.1.3, and 8004 to 192.168.1.4
When i acces domain.ddns.net:8003 or domain.ddns.net:8004 outside my net, everything works fine, but when i access it from my lan it doesn't work.
I read about pure nat and dns forwarder but pure nat do not work, and dns forwarder with different port can't be configured.
I supposed i do something wrong, but please tell/write me what. I need same outsied/inside addres so i can test everything work. -
NAT Reflection should work for you there.
https://doc.pfsense.org/index.php/Why_can%27t_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks
That could also be made to work with port forwards on LAN (the interface with the clients on it) but it would be a LOT cleaner if the connecting clients and the destination servers were on different subnets.
Example:
Local/inside DNS entry for my_bitchen_server.com is a VIP on LAN of 192.168.1.2
Servers are on OPT1 on 192.168.2.100 and 192.168.2.101Port forward on LAN source LAN Net dest 192.168.1.2 port 8000 NAT address 192.168.2.100 port 80
Port forward on LAN source LAN Net dest 192.168.1.2 port 8001 NAT address 192.168.2.101 port 80 -
Thanks for reply. I do exactly what it is on that link. I do NAT reflection but it doesn't work. I could access from outside, but i can't access from inside. I couldn't do different subnets because i access from the same host where is the www server
-
And now it work's. I do nothing, and just start working.
-
Amazing.
-
Ok. Found my miracle. One firewall rules block this.