1
Web Proxy Filtering and Caching / Re: Starting frontend xxxx: cannot bind socket
« on: January 26, 2022, 11:51:53 pm »
Hello
I found this thread running into the same issue like the original poster and having errors like:
Trying around to find something that already binds the Port 80 (netstat wasn't really helpful here...) on my OPNsense appliance, I found the solution by chance and wanted to leave it here in case someone else find this information helpful.
The HTTP to HTTPS Redirect option of the OPNsense Web GUI was the reason in my case that binds to port 80 if enabled.
To solve this: Go to System -> Settings -> Administration and make sure to disable the HTTP Redirect option for the Web GUI.
(TCP Port for HTTPS needs also be set to something non-standard, like 44443 if you use haproxy for HTTPS offloading).
See also the image attached for the settings to solve this.
I found this thread running into the same issue like the original poster and having errors like:
Code: [Select]
Starting frontend xxxx: cannot bind socket [x.x.x.x:80]
Starting frontend xxxx: cannot bind socket [x.x.x.x:443]
Trying around to find something that already binds the Port 80 (netstat wasn't really helpful here...) on my OPNsense appliance, I found the solution by chance and wanted to leave it here in case someone else find this information helpful.
The HTTP to HTTPS Redirect option of the OPNsense Web GUI was the reason in my case that binds to port 80 if enabled.
To solve this: Go to System -> Settings -> Administration and make sure to disable the HTTP Redirect option for the Web GUI.
(TCP Port for HTTPS needs also be set to something non-standard, like 44443 if you use haproxy for HTTPS offloading).
See also the image attached for the settings to solve this.