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

    How do you tell Squid to redirect all connections?

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 1.8k 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.
    • E
      EOC2611P
      last edited by

      Can Squid redirect all LAN to a website hosted locally? So everytime a web address is inserted, gets bounced back to the local hosted website?
      And it's possible to allow some mac addresses through this "block"?
      Thank you!

      1 Reply Last reply Reply Quote 0
      • D
        darnitol
        last edited by

        Install the SquidGuard Addon and create rules which allow some clients to do whatever with a custom ACL and the rest to be redirected to wherever with a Deny in the All of their own custom ACL.  You can't filter by MAC but you can by IP - make your  DHCP assign certain IP's for known MACs and you will get the results you are looking for. See http://skear.hubpages.com/hub/URL-Filtering-How-To-Configure-SquidGuard-in-pfSense to get started.

        1 Reply Last reply Reply Quote 0
        • E
          EOC2611P
          last edited by

          Thanks, i will give it a try and report back  :)

          1 Reply Last reply Reply Quote 0
          • E
            EOC2611P
            last edited by

            Looks as if i am doing something wrong, but i am using the example quoted on the interface  :-\

            ACL.jpg
            ACL.jpg_thumb

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by

              It doesn't like spaces around the "-", and I think it doesn't like new lines either - just type each element with a space between, format like:
              192.168.0.1-192.168.0.9 192.168.0.42-192.168.0.49

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • E
                EOC2611P
                last edited by

                Ok, the "AllowedGroup" of IP's range has been accepted, however it seems the redirect option it's not working, i did try with internal and external addresses, nothing to do….
                When i enable it, simply i can't open any pages on the LAN and gets redirected nowhere.

                1 Reply Last reply Reply Quote 0
                • D
                  darnitol
                  last edited by

                  Redirects only function when a page is blocked - it's the replacement for a block message.  Try it with a block message and no redirect and see if the clients you wish to redirect get the block message.  You will also need to add a the redirect site to the Target Categories tab then set that page to Allow on the Allowed Clients rule or Whitelist it on the Common ACL page.  Otherwise it ends up in a loop of trying to visit the redirect page, oops, redirect page is blocked, so redirect, oops, redirect page blocks, so redirect . . .

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