OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of CianH »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

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.

  • Messages
  • Topics
  • Attachments

Messages - CianH

Pages: [1]
1
16.7 Legacy Series / Re: HAproxy fails to start
« on: 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?
Code: [Select]
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
« on: 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:

Code: [Select]
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


Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2