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

Send all clients to mobile sites

Scheduled Pinned Locked Moved pfSense Packages
4 Posts 2 Posters 1.2k 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 Oct 23, 2013, 6:00 PM

    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 Oct 24, 2013, 2:54 PM

      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 Oct 24, 2013, 6:19 PM

        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 Oct 24, 2013, 6:41 PM

          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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received