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

    Access internal URL from generic external? (webcam snapshots, w/ security)

    Scheduled Pinned Locked Moved General pfSense Questions
    url proxywebcam
    5 Posts 4 Posters 260 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.
    • MrPeteM
      MrPete
      last edited by MrPete

      I've done some searching and haven't found a discussion of the following. Presumably this ought (lol) to be simple.

      I have a webcam aimed outside, accessible from a particular internal URL of the form http://ip.ad.d.r/cgi-bin/api.cgi?cmd=Snap&channel=0&user=username&password=pw
      I want to hide that entire URL, and provide a simple external URL that retrieves the (JPG snapshot) available there, eg http://snapshot.example.com (or https, I don't care ;) )

      The idea being, I do NOT want people to access any other URL related to that internal IP.

      Anyone with idea(s) how to do this? Seems it ought to be simple in pfSense, perhaps HAproxy or ??? But I haven't found anything that fits.

      THANKS!

      GertjanG 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        I assume you also don't want external users to need to know the login there?

        Probably easiest to use a separate server that pulls the jpg from the webcam.

        Otherwise it would have to be a proxy of some sort but I'm not sure if HAProxy could redirect to that specifically without revealing any if the internal details. 🤔

        H 1 Reply Last reply Reply Quote 0
        • H
          hadrins @stephenw10
          last edited by

          @stephenw10 I agree.
          I would up vote but don't have the reputation.
          This is more of a configuration of the server serving that image,
          Netgate would only handle the port forwarding to the server.

          1 Reply Last reply Reply Quote 2
          • GertjanG
            Gertjan @MrPete
            last edited by

            @MrPete said in Access internal URL from generic external? (webcam snapshots, w/ security):

            I have a webcam aimed outside, accessible from a particular internal URL of the form http://ip.ad.d.r/cgi-bin/api.cgi?cmd=Snap&channel=0&user=username&password=pw

            So not really "user friendly", but you could make a browser favorite.

            Also, normally, cameras and stuff like that should never be made accessible from the outside.
            Isn't there some sort of phone or tablet app avaible that handles everything for you ?
            And before you use the camera app, you fire up another app that makes everything secure : OpenVPN.
            This is well tested since 2019 (member when everyone worked from home ?).

            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
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I think this is to allow access to single snapshots for the general internet rather than actually viewing the webcam directly. I had something like that setup at one time (a while ago!) and used a separate webserver with a script that periodically pulled a jpg.

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