I have changes some NAT setting on my OPNsense installation - basically redirecting the same ports to different internal IP addresses. My problem is, that some of the rules work (underlined with green) and some not (undelined with red). I can't seem to find what is different in the rule settings.
(https://pasteboard.co/JntbBka.png) https://pasteboard.co/JntbBka.png
of course the internal IP addresses work, so 192.168.50.10:80 resolves correctly.
any idea what can be wrong?
Did you try changing "WAN address" to any since it's coming on the WAN interface?
ok, it's definitely not an OPNsense problem. when i do nmap 192.168.50.10 i get this result
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
143/tcp open imap
587/tcp open submission
993/tcp open imaps
1334/tcp open writesrv
3000/tcp open ppp
5000/tcp open upnp
6789/tcp open ibm-db2-admin
8000/tcp open http-alt
8080/tcp open http-proxy
8086/tcp open d-s-n
8100/tcp open xprint-server
8180/tcp open unknown
8181/tcp open intermapper
8443/tcp open https-alt
9000/tcp open cslistener
9091/tcp open xmltec-xmlmail
strangely the ports 80 and 443 are not listed, even if in a web browser both http://192.168.50.10 and http://192.168.50.10 display the web page hosted on the server
You can try this tutorial https://forum.opnsense.org/index.php?topic=8783.0
as i suspected it was at the end unrelated to OPNsense. simply the webserver was not working and my browser was caching its content giving me the impression that it works.