HAProxy Probleme mit Port 80

Started by isi-bizi, August 24, 2022, 12:07:20 PM

Previous topic - Next topic
August 24, 2022, 12:07:20 PM Last Edit: August 24, 2022, 12:53:19 PM by isi-bizi
Guten Tag zusammen,

ich bin in Sachen OPNsense neuling, das Vorab. :)

Ich habe auf einem Dedicated Server OPNsense im Einsatz und es läuft auch soweit alles sehr gut. Ich habe nun folgendes Problem, mein Ubuntu Server auf dem Wordpress läuft, soll mit einem Let's Encrypt Zertifikat abgesichert werden, das habe ich auch auch mit dem ACME Client und HAProxy realisieren können. Meine Wordpress Seite läuft aktuell mit Let's Encrypt  abgesichert nur über HTTPS (Port 443). Ich wollte nun eine redirection auf Port 80 einrichten und habe dafür einen zweiten Public Services im HAProxy versucht einzurichten, jedoch scheint die OPNsense ein Problem mit dem Port 80 zu haben. Sobald Port unter Listen Addresses (0.0.0.0:80) eingetragen ist, startet der HAProxy nicht mehr.

Kann mir hier jemand helfen? Bekomme das ums verrecken nicht hin  >:(


#
# 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                    4
    hard-stop-after             60s
    no strict-limits
    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/?.lua

defaults
    log     global
    option redispatch -1
    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: domain.com ()
frontend domain.com
    bind 0.0.0.0:80 name 0.0.0.0:80
    mode http
    option http-keep-alive
    option forwardfor
    # tuning options
    timeout client 30s

    # logging options
    # ACL: domain.com
    acl acl_7456745764576456.11073504 hdr(host) -i domain.com

    # ACTION: domain.com
    use_backend domain.com if acl_4563457567.11073504

# Backend: acme_challenge_backend (Added by ACME Client 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: domain.com ()
backend domain.com
    # 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 domain.com 192.168.3.10:80


System: Settings: Administration: "Disable web GUI redirect rule" Checkbox einschalten.


Grüsse
Franco

@franco

Kurze und knappe Antwort, die mein Problem gelöst hat  :)

Vielen Vielen Dank!

Gruß
Isi

Gerne, machmal klappt es auf Anhieb. :)


Grüsse
Franco