Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAProxy - only allow traffic if known domain

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 552 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cadish
      last edited by

      Hi,

      Anyone can help me setting up HAProxy to only allow traffic if the domain is known? So far, HAProxy works, but also if I just enter my external IP address, followed with the port. I would like it to work only when connecting to https://mydomain.com:8080

      Thanks in advance!
      Hadewin

      1 Reply Last reply Reply Quote 0
      • P
        PiBa
        last edited by

        You could add acl's that check for the proper domainname and reject requests otherwise. Or add strict-sni to the ssl options so that the requested domain must match your certificate.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.