Bug #6484
closedpfsense 2.3.1_1 does not accept haproxy advanced parameters
0%
Description
Hi!
pfsense 2.3.1_1 does not accept haproxy advanced parameters. I can use redirect in version 2.2.6-RELEASE.
(https://www.haproxy.com/doc/aloha/7.0/haproxy/http_redirection.html)
redirect scheme https if http
Errors found while starting haproxy
[ALERT] 162/120610 (74062) : parsing [/var/etc/haproxy_test/haproxy.cfg:31] : 'bind 192.168.1.1:80' unknown keyword 'redirect'. Registered keywords :
[ SSL] alpn <arg>
[ SSL] ca-file <arg>
[ SSL] ca-ignore-err <arg>
[ SSL] ca-sign-file <arg>
[ SSL] ca-sign-pass <arg>
[ SSL] ciphers <arg>
[ SSL] crl-file <arg>
[ SSL] crt <arg>
[ SSL] crt-ignore-err <arg>
[ SSL] crt-list <arg>
[ SSL] ecdhe <arg>
[ SSL] force-sslv3
[ SSL] force-tlsv10
[ SSL] force-tlsv11
[ SSL] force-tlsv12
[ SSL] generate-certificates
[ SSL] no-sslv3
[ SSL] no-tlsv10
[ SSL] no-tlsv11
[ SSL] no-tlsv12
[ SSL] no-tls-tickets
[ SSL] ssl
[ SSL] strict-sni
[ SSL] tls-ticket-keys <arg>
[ SSL] verify <arg>
[ SSL] npn <arg>
[ TCP] mss <arg>
[ TCP] tfo
[ TCP] transparent
[ TCP] v4v6
[ TCP] v6only
[ TCP] defer-accept (not supported)
[ TCP] interface <arg> (not supported)
[STAT] level <arg>
[UNIX] gid <arg>
[UNIX] group <arg>
[UNIX] mode <arg>
[UNIX] uid <arg>
[UNIX] user <arg>
[ ALL] accept-proxy
[ ALL] backlog <arg>
[ ALL] id <arg>
[ ALL] maxconn <arg>
[ ALL] name <arg>
[ ALL] nice <arg>
[ ALL] process <arg>
[ALERT] 162/120610 (74062) : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg
[ALERT] 162/120610 (74062) : Fatal errors found in configuration.
Files
Updated by Kill Bill almost 9 years ago
Not enough information here about what are you putting where; the entire generated configuration is available under the Settings tab - click the "Show" button at the very bottom.
Basically you need this:
redirect scheme https if !{ ssl_fc }
See http://www.haproxy.org/download/1.6/doc/configuration.txt; also there's a wiki made by the package maintainer available now: https://github.com/PiBa-NL/pfsense-haproxy-package-doc/wiki
Updated by Dziugas Bareikis almost 9 years ago
- File PfSenceHaProxy.JPG PfSenceHaProxy.JPG added
Updated by Kill Bill almost 9 years ago
Yeah, it just does not belong there at all; put the stuff to "Advanced pass thru".
Updated by Kill Bill over 8 years ago
OSI layer-8 problem as noted above, can be closed.