int warnif_tcp_http_cond(const struct proxy *px, const struct acl_cond *cond){ if (!cond || px->mode != PR_MODE_HTTP) return 0; if (cond->use & (SMP_USE_L6REQ|SMP_USE_L6RES)) { ha_warning("Proxy '%s': L6 sample fetches ignored on HTTP proxies (declared at %s:%d).\n", px->id, cond->file, cond->line); return ERR_WARN; } return 0;}
## Automatically generated configuration.# Do not edit this file manually.#global uid 80 gid 80 chroot /var/haproxy daemon stats socket /var/run/haproxy.socket group proxy mode 775 level admin nbproc 1 nbthread 2 hard-stop-after 60s no strict-limits maxconn 10000 tune.ssl.default-dh-param 4096 spread-checks 2 tune.bufsize 16384 tune.lua.maxmem 0 log /var/run/log local0 info lua-prepend-path /tmp/haproxy/lua/?.luadefaults log global option redispatch -1 maxconn 5000 timeout client 30s timeout connect 30s timeout server 30s retries 3 default-server init-addr last,libc# autogenerated entries for ACLs# autogenerated entries for config in backends/frontends# autogenerated entries for stats# Frontend: tcp_front (Listen to 0.0.0.0:443, TCP SNI handler, redirect if xray)frontend tcp_front bind 0.0.0.0:443 name 0.0.0.0:443 bind 0.0.0.0:80 name 0.0.0.0:80 mode tcp default_backend SSL_back # tuning options timeout client 30s # logging options # ACL: SSL_hello acl acl_6212326a7c07e4.28981163 req_ssl_hello_type 1 # ACTION: tcp_request_inspect_delay # NOTE: actions with no ACLs/conditions will always match tcp-request inspect-delay 5s # ACTION: tcp_request_content_accept_ssl tcp-request content accept if acl_6212326a7c07e4.28981163 # ACTION: hmdir_ru # NOTE: actions with no ACLs/conditions will always match use_backend %[req.hdr(host),lower,map_dom(/tmp/haproxy/mapfiles/6214a3ae639096.17472719.txt)] # Frontend: http_front (Listen to VIP:80 and redirect to 443)frontend http_front bind 192.168.6.1:80 name 192.168.6.1:80 accept-proxy mode http option http-keep-alive option forwardfor # tuning options timeout client 30s # logging options # ACL: http acl acl_62123bbee27260.60165685 ssl_fc # ACTION: http_to_https http-request redirect scheme https code 301 if !acl_62123bbee27260.60165685# Frontend: ssl_front (Listen to VIP 443, SSL offload cert)frontend ssl_front http-response set-header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" bind 192.168.6.1:443 name 192.168.6.1:443 accept-proxy ssl no-sslv3 no-tlsv10 no-tlsv11 no-tls-tickets ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256 ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256 alpn h2,http/1.1 crt-list /tmp/haproxy/ssl/621244f0de5919.36753000.certlist mode http option http-keep-alive default_backend hkbn_back option forwardfor # tuning options timeout client 30s # logging options # ACL: local acl acl_62123a1cebe813.09309501 src 192.168.3.0/24 192.168.5.0/24 # ACTION: local_ru use_backend opn_back if acl_62123a1cebe813.09309501# Backend: hmdir_back (Backend of v2ray)backend hmdir_back # health checking is DISABLED mode tcp balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s server hmdir 192.168.3.3:443 # Backend: hkbn_back (Backend of HKBN)backend hkbn_back # health checking is DISABLED mode http balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s http-reuse safe server hkbn 192.168.4.2:443 ssl verify none# Backend: SSL_back (Backend to redirect SSL servers)backend SSL_back # health checking is DISABLED mode tcp balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s server ssl 192.168.6.1 send-proxy-v2 check-send-proxy# Backend: opn_back (Backend of opnsense with SSL)backend opn_back # health checking is DISABLED mode http balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s http-reuse safe server opn 192.168.3.1:8443 ssl verify none# Backend: open_back (Backend of OpenVPN)backend open_back # health checking is DISABLED mode tcp balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s server open 192.168.3.1:10443
Would be possible to adjust the tutorial with ipv6 support or a hint how to add ipv6 support to a existing configuration?
I got this errorQuote[WARNING] (20353) : Proxy '1_HTTP_frontend': L6 sample fetches ignored on HTTP proxies (declared at /usr/local/etc/haproxy.conf.staging:70).Warnings were found.Configuration file is validWhat is wrong?
[WARNING] (20353) : Proxy '1_HTTP_frontend': L6 sample fetches ignored on HTTP proxies (declared at /usr/local/etc/haproxy.conf.staging:70).Warnings were found.Configuration file is valid
## Automatically generated configuration.# Do not edit this file manually.#global uid 80 gid 80 chroot /var/haproxy daemon stats socket /var/run/haproxy.socket group proxy mode 775 level admin nbproc 1 nbthread 6 maxconn 10000 tune.ssl.default-dh-param 4096 spread-checks 2 tune.chksize 16384 tune.bufsize 16384 tune.lua.maxmem 0 log /var/run/log local0 infodefaults log global option redispatch -1 maxconn 5000 timeout client 30s timeout connect 30s timeout server 30s retries 3 default-server init-addr last,libc# autogenerated entries for ACLs# autogenerated entries for config in backends/frontends# autogenerated entries for stats# Frontend (DISABLED): https_passthrough ()# Frontend: 0_SNI_frontend (Listening on 0.0.0.0:80, 0.0.0.0:443)frontend 0_SNI_frontend bind 0.0.0.0:80 name 0.0.0.0:80 bind 0.0.0.0:443 name 0.0.0.0:443 mode tcp default_backend SSL_backend # tuning options timeout client 30s # logging options# Frontend: 1_HTTP_frontend (Listening on 192.168.64.1:80)frontend 1_HTTP_frontend bind 192.168.64.1:80 name 192.168.64.1:80 accept-proxy mode http option http-keep-alive option forwardfor # tuning options timeout client 30s # logging options # ACL: NoSSL_condition acl acl_622eebaf197419.36314953 req.ssl_ver gt 0 # ACTION: HTTPtoHTTPS_rule http-request redirect scheme https code 301 if !acl_622eebaf197419.36314953# Frontend: 1_HTTPS_frontend (Listening on 192.168.64.1:443)frontend 1_HTTPS_frontend http-response set-header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" bind 192.168.64.1:443 name 192.168.64.1:443 accept-proxy ssl curves secp384r1 no-sslv3 no-tlsv10 no-tlsv11 no-tls-tickets ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES256-GCM-SHA384 ciphersuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256 alpn h2,http/1.1 crt-list /tmp/haproxy/ssl/622eef9a9d7268.16491040.certlist mode http option http-keep-alive option forwardfor # tuning options timeout client 15m # logging options # ACTION: PUBLIC_SUBDOMAINS_map-rule # NOTE: actions with no ACLs/conditions will always match use_backend %[req.hdr(host),lower,map_dom(/tmp/haproxy/mapfiles/622eeaa3044ba7.74145133.txt)] # Backend: backend_pool_abc ()backend backend_pool_meet_huuich_vn # health checking is DISABLED mode tcp balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s# Backend: PLEX_backend ()backend PLEX_backend # health checking is DISABLED mode http balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s http-reuse safe server PLEX_server 192.168.82.11:32400 ssl verify none# Backend: acme_challenge_backend (Added by Let's Encrypt plugin)backend acme_challenge_backend # health checking is DISABLED mode http balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s http-reuse safe server acme_challenge_host 127.0.0.1:43580 # Backend: SSL_backend ()backend SSL_backend # health checking is DISABLED mode tcp balance source # stickiness stick-table type ip size 50k expire 30m stick on src # tuning options timeout connect 30s timeout server 30s server SSL_server 192.168.64.1 send-proxy-v2 check-send-proxy
# public access subdomainsplex PLEX_backend
server { listen 32400; listen [::]:32400; root /var/www/mywebsite.com/html; index index.html index.htm index.nginx-debian.html; server_name mywebsite.com; location / { try_files $uri $uri/ =404; }}
503 Service UnavailableNo server is available to handle this request.