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

    Send all clients to mobile sites

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.7k 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.
    • M
      mystycs
      last edited by

      Is there a way or a trick to send all internet users under pfsense to mobile sites?

      1 Reply Last reply
      Reply Quote 0
      • M
        mhab12
        last edited by

        This sounds like something that should be possible using squid.  A quick google turned up that you can replace headers including the browser type.  I would assume setting this to a mobile browser might trick sites into sending their mobile versions.

        http://www.squid-cache.org/Doc/config/header_replace/

        1 Reply Last reply
        Reply Quote 0
        • M
          mystycs
          last edited by

          I am putting this in the Custom Options section on the proxy.

          header_access User-Agent deny all;header_replace User-Agent Mozilla/5.0 (Linux; <android version="">; <build tag="" etc.="">);

          But its not working. Any ideas?</build></android>

          1 Reply Last reply
          Reply Quote 0
          • M
            mystycs
            last edited by

            Ah it says squid must be built with

            –enable-http-violation

            but i see its not in pfsense.

            Is there a way to rebuild it on pfsense?

            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