So I have what I thought is an easy question but I can’t find an answer that has helped me so far.
Let’s say I have a local dns server on port 32733 on a local client 192.168.1.10.
How can I direct my clients here?
What firewall rule do I need to redirect traffic arriving at 192.168.1.10:53 to 192.168.1.10:32733?
All this is only local in the network.
Thank you very much in advance
If you are in the same subnet, then you have two options…
a. give the users the IP address and they plug it in themselves into whatever application they are using IPaddress:port#
b. give them the WANIP address of the router to use WANIPaddress:port#
If you are using method b. then because the users and server are on the same subnet we run across loopback or hairpin nat.
To solve this typically one creates an additional sourcenat rule
Typically: add chain=srcnat action=masquerade dst-address=192.168.1.0/24 src-address=192.168.1.0/24add chain=srcnat action=masquerade out-interface-list=WAN
That would work in some cases. The format of the rule is determined by who is connection and from where as I alluded to above and also if your WANIP is dynamic or static.
Without more info, cannot advise further. By the way assuming your use of 53 is not for real as that is DNS port.