Public dns redirect to internal host?
-
I have a web host inside of my lan (10.0.2.10) that is setup with a NAT port forward rule so,
https://name.domain.com:11222 correctly points to this host.I can connect to this device from the outside as expected but I would like to also be able to connect to this device from the LAN using the public domain name instead of https://10.0.2.10:11122
I tried using the "DNS Forwarder Override" using the documentation but it didn't work. Any help would be greatly appreciated.
-
Split DNS is the way to go. What version of pfSense are you using? It sounds like you had the right idea but it didn't work for you somehow.
https://doc.pfsense.org/index.php/Why_can't_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks
-
@beetlejelly:
I tried using the "DNS Forwarder Override" using the documentation but it didn't work. Any help would be greatly appreciated.
This is probably the best solution. Did you clear your DNS cache before deciding it didn't work?
If you need to bounce the public IP back, this is NAT refection. Look under advanced, firewall nat. I would recommend only checking the box 'Enable automatic outbound NAT for Reflection' and enabling Reflection selectively on the NAT rule.