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

    Possible abuse of our captive portal

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 2.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.
    • D
      DaveQB
      last edited by

      Hi there,

      I haven't much experience with pfSense's captive portal.

      We have a 2.0RC3 box that exhausts is php handlers and is then unavailable for a temporary period.

      I have found in the error logs lots of references to:

      ```
      /index.php?redirurl=/index.php?redirurl=http%3A%2F%2Foffers.bittorrent.com%2Fw%2F1.0%2Farj%3Fauid%3D453748

      
      Which is the URL:
      
       ```
      http://offers.bittorrent.com/w/1.0/arj?auid=453748
      

      when converted.

      So I am trying to understand what is happening here. Is it a user/viruse/malware trying to craft a URL to get to this URL without authenticating?
      Trying this trailing URL on the pfSense box in question results in an error.

      Any thoughts on this appreciated.

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi !

        I think you already have a clue what program is sending out many requests.
        Of course, it's bittorrent. A P2P filesharing tool.

        Often, this program starts when windows starts, and starts syncing right away, and it won't stop when it get NO for an answer, it will try the entire list of torrents lists (quiet a lot).

        The result: your portal page is hit really hard.

        Several solutions:

        1. Stop using that cigarette-box size server that you use for pfSEnse. Go for that big quad-core system with loads of memory.
        2. Stop accepting kids and less serious people on your wifi network.
        3. Have a look at your firewall. By stopping the right requests, they won't hit the portal page (adn this the entire PHP sub-system, taking of the load on your system)

        Of course, only point 3 is good to go  ;)
        Look down on the page when you add a firewall rule on your Portal interface NIC. The last Advanced options button, and find this: layer 7.
        Jump to the doc https://doc.pfsense.org/index.php?title=Special%3ASearch&search=layer&go= and read all about queues, P2P etc.
        Layer7 has a 'bittorrent' rule.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          Thanks for the response Gertjan

          This is a work environment, a college actually.

          My boss had the idea to block it at the firewall (block all torrent.com access). I didn't think it would work as the client is trying to access the portal (with a trailing path in the URL) and that will use a php process before it is converted to torrent.com outbound and thus blocked.
          But I don't know how the CP fits into the big picture of pfSense.

          The block he has put in seems to have worked so far (or the client has ceased).

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

            Gertjan,

            This is happening again at the same college campus.

            Now with:

            
            /index.php?redirurl=/w/1.0/arj?auid=398774&c.build=30303
            
            

            In the error logs.

            My question is, how can one log what client IP is requesting these redirects?
            The lighttpd.log log is empty and I see in the lighttpd config we have:

            
            #accesslog.filename          = "/dev/null"
            
            

            Which looks to me like the default could be /dev/null.

            I can't see an option in the web interface to turn on access logging and I don't want to mess with the config files.

            How can I log IPs going through the captive portal?

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