Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - CianH

#1
16.7 Legacy Series / Re: HAproxy fails to start
November 15, 2016, 08:17:54 PM
* What version of OPNsense are you using?    =    OPNsense 16.7.7-amd64
* What version of the HAProxy plugin is this?   =   1.6
* Could you please paste the contents of /usr/local/etc/haproxy.conf?
global
    # NOTE: Could be a security issue, but required for some feature.
    uid                         80
    gid                         80
    chroot                      /var/haproxy
    daemon
    stats                       socket /var/run/haproxy.socket level admin
    nbproc                      1
    tune.ssl.default-dh-param   1024
    spread-checks               0
    tune.chksize                16384
    tune.bufsize                16384
    tune.lua.maxmem             0
    log /var/run/log local0 info


defaults
    log     global
    option redispatch -1
    timeout client 30s
    timeout connect 30s
    timeout server 30s
    retries 3


# Frontend: OpenVPN ()
frontend OpenVPN
    bind vpn.example.com:80 name vpn.example.com:80
    mode http
    option http-keep-alive
    default_backend OpenVPN
    # tuning options
    timeout client 30s
    # logging options
    option httplog



# Backend: OpenVPN ()
backend OpenVPN
    # health checking is DISABLED
    mode http
    balance source
    # tuning options
    timeout connect 30s
    timeout server 30s
    server OpenVPN 10.0.0.18:80



# statistics are DISABLED


Hope this helps
Cian
#2
16.7 Legacy Series / HAproxy fails to start
November 15, 2016, 09:40:36 AM
Hi All,

Im new(ish) to OPNSense and im trying to configure HAProxy, im trying to setup a few websites mail.example.com and vpn.example.com to redirect to different internal servers.
I have configured everything and there are no syntax errors but when i try to start the service i get:


Nov 15 08:34:54 OPNsense configd.py: [638c0187-9480-4a2a-a42c-76ea2d790fce] returned exit status 1
Nov 15 08:34:54 OPNsense root: /usr/local/etc/rc.d/haproxy: WARNING: failed to start haproxy
Nov 15 08:34:53 OPNsense configd.py: [638c0187-9480-4a2a-a42c-76ea2d790fce] starting haproxy