Redirects to WAN address after reboot
Foris frontend is sometimes redirected to the WAN address instead of the LAN one.
Steps to reproduce:
- Open Foris' home page (http://192.168.1.1 in most cases) in a browser.
- Login into Foris.
- Go to the Maintenance page.
- Click to Reboot.
- Wait until your router boots and redirects Foris to the home page.
Expected results:
The redirection target is on the LAN address (192.168.1.1).
Actual results:
In some cases, the redirection target is on the WAN address (e.g. 172.20.50.50 for this report).
More information:
After rebooting the browser starts sending two kinds of HTTP requests periodically:
-
GET
requests to http://192.168.1.1/foris/config/ping?next=/foris/config/main/maintenance/ -
OPTIONS
requests to http://172.20.50.50/foris/config/ping?next=/foris/config/main/maintenance/
There are two requests (1) and one request (2) in a typical group but these requests don't keep always the same order (sometimes there are two consecutive request (2) and so on). It probably sometimes uses the WAN address to target the redirect. It looks like to be dependent to the time point when the router responds first (and which request is the "current").
Encountered on the current HBL (47244687215) but probably affects other versions too. See also https://forum.turris.cz/t/access-to-foris-via-internet/6514/17