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

    Port forwarding cameras axis with pfsense

    Scheduled Pinned Locked Moved NAT
    7 Posts 4 Posters 905 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.
    • J
      josesalazmit
      last edited by

      Hello
      I have a camera axis with IP 10.132.218.67. I changed the standard port 80 to 8081. this camera is located in the network 10.132.x.x. This is an external network for me. I have pfsense  2.2.6 with two nics. One nic is located in the same network of the camera with IP 10.132.5.43 and the second nic for an internal network with 192.168.1.1 (this is an internal network for me with several servers).
      The camera is the web server but in the internal network I have a client that I use to register the camera with a video surveillance tool installed in a computer with IP 192.168.1.30.
      If I don't change the port of the camera, I register it in the client with the information below:
      IP OF THE CAMERA: 10.132.218.67
      port: 80
      user:
      password

      But I would need to know how to nat or port forward to register or open the web of the camera using external IP of the pfsense router 10.132.5.43 which redirect the request to my computer in 192.168.1.30
      Please, follow chart below

      camera 10.132.218.67–-------------------10.132.5.43PFSENSE192.168.1.1---------------------------COMPUTER TOOL 192.168.1.30

      I want to use the 10.132.5.43 to register the camera or open the web of the camera

      1 Reply Last reply Reply Quote 0
      • jahonixJ
        jahonix
        last edited by

        And what did you already try and isn't working as expected?
        Simple HOW-TOs can be found at the documentation site at http://doc.pfsense.org

        edit: or here in the forum, for example https://forum.pfsense.org/index.php?topic=142486.0;topicseen

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          I have pfsense  2.2.6

          Probably about time to think about upgrading.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • J
            josesalazmit
            last edited by

            Ok, I configured Rules>LAN where I have the network 192.168.1.0/24 source *, POrt * to PORT 8081 the camera gateway * but it is not workin.
            Any idea?

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              Do these cameras have a gateway on them… Many of the threads in the past where people trying to get to "cameras" the camera didn't even have a gateway set or some couldn't even set them - meant to be viewed from the same local network.

              Work around that is source nat so your port forward looks like it came from the pfsense lan IP vs some public IP 1.2.3.4, etc.  That the camera would have to have a gateway to talk to through pfsense.

              Troubleshoot your port forward via the troubleshooting doc...
              https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

              I personally would not open up camera's to the internet - if you want to view your camera's feed then vpn in.. If they will not allow for gateway then same fix can be done there would source nat the connection.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • jahonixJ
                jahonix
                last edited by

                @johnpoz:

                I personally would not open up camera's to the internet - if you want to view your camera's feed then vpn in..

                John,
                spend a second reading the starting post.
                He needs the cameras to be available from a different local site which is an external network to him.

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  Thanks - I didn't read all the detail, my bad.. Thanks for the catch jahonix..

                  So 10.132 is different network than his lan.. Is there natting going on between the networks..  Can you ping the camera IP from your server in your lan 192.168 network?

                  If so you should be done - just register your camera how you would any other camera on the local network.

                  If you are natting then you need to port forward, if your not natting you just need to allow the traffic you want from the camera to the server, the server unless your locking down your lan outbound should be able to talk on any port it wants to your camera, etc..

                  Happy to help you work out what you need to do - but going to need a bit more info.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

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