I run a small web server at my home. For this I have a domain, which is supplied via DDNS with the current IP address. The access to the webserver is done via two simple port-forwards:
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option src_dport '443'
option dest_port '443'
option name 'HTTPS'
list proto 'tcp'
list proto 'udp'
option dest_ip '192.168.0.5'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option src_dport '80'
option name 'HTTP'
option dest_port '80'
list proto 'tcp'
list proto 'udp'
option dest_ip '192.168.0.5'
The whole thing runs smoothly for years, but now after the update to 22.03rc1 (I assume by the change to fw4) I have problems with the port forward from the LAN.
If I e.g. call a service with https://service.example.com/
I get ERR_CONNECTION_REFUSED
as response.
The interesting thing: If I call this from outside - e.g. from the mobile phone - everything works as usual.
The problem is the call from the LAN.
So I thought, I add the following two rules:
config redirect
option target 'DNAT
option name 'HTTPS-local
option src 'lan
option src_dport '443
option dest_ip '192.168.0.5
option dest_port '443
option dest 'lan
config redirect
option dest 'lan
option target 'DNAT
option name 'HTTP-local
option src 'lan
option dest_ip '192.168.0.5
option src_dport '80
option dest_port '80'
But even this did not solve the problem.
Maybe someone here has a hint for me.