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

    SquidGuard redirect URL to DNS name vs IP?

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 1 Posters 1.4k 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.
    • R
      rain
      last edited by

      Hi There,

      When I hit something blocked by SquidGuard it redirects to https://<ip of="" the="" pfsense="" box="">/ <notification url="">This throws an SSL warning of course.

      I have a valid SSL on https:// <dns name="" of="" pfsense="" box="">If I manually change <ip address="" of="" the="" pfsense="" box="">for <dns name="" of="" the="" pfsense="" box="">I get a nice clean non-ssl errored notification page.

      How do I force SquidGuard to use its redirect to DNS name rather than IP address?

      Thanks in advance!</dns></ip></dns></notification></ip>

      1 Reply Last reply
      Reply Quote 0
      • R
        rain
        last edited by

        Nevermind, answered my own question.

        I set redirect mode to ext url move (enter URL)

        And in the Redirect info field, I entered:

        https://<fqdn of="" my="" firewall="">/sgerror.php?url=403%20&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u

        Works perfectly! Hopefully that's useful to someone else too.</fqdn>

        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