DNS Resolver for internal services

Hi

I want to reach my internal applications via pfsense domain home.arpa.

I use DNS Resolver
I allow all network interfaces
I grey mark (allow) outgoing network interfaces, wan, lan1, lan2, nordvpn
Enable DNSSEC support
Enable DNS query Forwarding

Host Overrides
Host deluge
domain of host home.arpa
ip 10.10.10.25

Host Proxmox
Domain of host home.arpa
ip 10.11.11.26

Host Radarr
Domain of host home.arpa
ip 10.11.11.25

My host are up and running with dig/nslookup

Then
computer is on Lan1

Deluge on Lan2
Deluge has http:// 10.10.10.25:8112
deluge.home.arpa
NAT/Port Forward
Source address *
Sourse ports *
Destination address lan 2,
Destination ports http
nat ip 10.10.10.25
nat port 8112

In firefox
deluge.home.arpa and it works.

Proxmox on Lan1
Proxmox has https:// 10.11.11.26:8006
proxmox.home.arpa

Radarr on Lan1
Radarr has http:// 10.11.11.25:7878
radarr.home. arpa

I have tried NAT with multiple solutions,
Destination address Lan1, any, direct IP number,
Destination port, http, https, any
Redirect port 8006 or 7878
but I cant get it right.
In firefox, I have to add port by manual
for example radarr.home.arpa:7878

Why do I have to add port manual when my computer is on the same lan as the application but when the application is on my vlan (LAN2), I don´t have do add port.

when your coputer is on the same network as the application it will talk directly to the application in the sense that this traffic is only switched, but not routed. In that case NAT does not get used. NAT is in your setup redirecting traffic to port 80/443 to the application’s port. Since NAT is not used, to connect to the application you need to give the correct port.

When your computer is not on the same network as the application, when it connects to the application this traffic is being routed by pfSense and NAT is being applied and it does redirect the traffic destined to 80/443 to the port of the application.

For those machines on the same network as your laptop you can use NAT reflection. You will then address he applications as if you were on an external network and can then use the 80/443 ports instead of the ports of the applications.

https://docs.netgate.com/pfsense/en/latest/nat/reflection.html