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

    SquidGuard redirect URL to DNS name vs IP?

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 1 Posters 1.3k 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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.