root@OPNsense:/var/log/system # opnsense-patch 9a618ba6Found local copy of 9a618ba6, skipping fetch.2 out of 6 hunks failed while patching etc/inc/interfaces.inc
Please make sure that only one of below statements can be true (If both statement true, your thing won't work)1. In HAProxy, one of your frontends is binding to 0.0.0.0:80, or 0.0.0.0:443 or (WAN_IP):80 or (WAN_IP):4432. In webui, you haven't changed the port and haven't disabled auto redirect, i.e. it's still using port 443 or 80
How can I reverse the wrong patch? Reapplying the same command doesn't seem to work.Code: [Select]Please make sure that only one of below statements can be true (If both statement true, your thing won't work)1. In HAProxy, one of your frontends is binding to 0.0.0.0:80, or 0.0.0.0:443 or (WAN_IP):80 or (WAN_IP):4432. In webui, you haven't changed the port and haven't disabled auto redirect, i.e. it's still using port 443 or 80In my case, only (2) is true. I haven't changed the standard port and HTTP Redirect is unchecked.Do I still need (1) if I have defined virtual ip?
It is advised to, as we don't know the config of your HAProxy, so we are unable to guess how it failed.
root@OPNsense:~ # sockstat -4 -l | grep lighttpdroot lighttpd 28364 6 tcp4 192.168.1.65:443 *:*root lighttpd 28364 8 tcp4 192.168.1.1:443 *:*root lighttpd 28364 10 tcp4 192.168.1.65:80 *:*root lighttpd 28364 12 tcp4 192.168.1.1:80 *:*root sshd 84263 5 tcp4 192.168.1.1:22 *:*root@OPNsense:~ # /usr/local/etc/rc.d/haproxy startStarting haproxy.[ALERT] (2036) : Starting frontend 1_HTTP_frontend: cannot bind socket (Can't assign requested address) [192.168.1.65:80][ALERT] (2036) : Starting frontend 1_HTTPS_frontend: cannot bind socket (Can't assign requested address) [192.168.1.65:443][ALERT] (2036) : [/usr/local/sbin/haproxy.main()] Some protocols failed to start their listeners! Exiting./usr/local/etc/rc.d/haproxy: WARNING: failed to start haproxy
root@OPNsense:~ # /usr/local/etc/rc.restart_webguiStarting web GUI...done.Generating RRD graphs...done.root@OPNsense:~ # sockstat -4 -l | grep lighttpdroot lighttpd 64654 6 tcp4 192.168.10.65:443 *:*root lighttpd 64654 8 tcp4 192.168.1.1:443 *:*root lighttpd 64654 10 tcp4 192.168.10.65:80 *:*root lighttpd 64654 12 tcp4 192.168.1.1:80 *:*root sshd 84263 5 tcp4 192.168.1.1:22 *:*root@OPNsense:~ # /usr/local/etc/rc.d/haproxy startStarting haproxy.[ALERT] (18033) : Starting frontend 1_HTTP_frontend: cannot bind socket (Address already in use) [192.168.10.65:80][ALERT] (18033) : Starting frontend 1_HTTPS_frontend: cannot bind socket (Address already in use) [192.168.10.65:443][ALERT] (18033) : [/usr/local/sbin/haproxy.main()] Some protocols failed to start their listeners! Exiting./usr/local/etc/rc.d/haproxy: WARNING: failed to start haproxy