Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    HAProxy - Shared Front End but Do not Use CSP

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 1 Posters 1.4k Views 1 Watching
    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.
    • S
      spaceboy
      last edited by

      Hi, I'm sure this is a basic question but I can't easily find the answer. I have HAProxy set up with a shared front end and two back ends. Everything works ok except that:

      For one backend i want to use a fairly strict CSP that blocks the second backend from working. I don't see how to tell HAProxy to only use the CSP for one back end.

      I tried ordering the Actions in the share frontend to be

      Backend 1
      CSP
      Backend 2

      but the CSP is still used on Backend 2. I tried creating a separate frontend for backend 2 but that causes problems because the two frontends are using the same WAN IP.

      I seem so close to achieving what i want but i can't see the answer. Grateful for any guidance on which i am sure is a very basic issue. Cheers

      1 Reply Last reply
      Reply Quote 0
      • S
        spaceboy
        last edited by

        yeah - knew it must be a stupid question. found the option to add the CSP to the specific backend rather than in the shared frontend. all good

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy