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

    [SOLVED] Port Forwarding IP Camera

    Scheduled Pinned Locked Moved NAT
    21 Posts 2 Posters 22.1k 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.
    • B
      bczeon27
      last edited by

      I have 5 static ip here.  What I did was to use a different public ip to test the connection to the ip camera.

      With the telnet, I got these two errors with the external ip.

      HTTP/1.1 501 Not Implemented. Connection: Close
      HTTP/1.1 400 Bad Request. Conection: Close

      When I tried to telnet inside the network, I got this error.

      Could not open connection to the host, on port 9082: Connection failed

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

        when you say "connection failed", is that instantly?  or after a timeout?  also, the other HTTP errors are odd.  are you saying that if you telnet to the internal IP on port 9082 it works, but if you telnet to the external one on port 9082 you get the HTTP errors?

        1 Reply Last reply Reply Quote 0
        • B
          bczeon27
          last edited by

          After I entered the telnet command, there was a blank screen.  As soon as I hit the enter key, the error came up pretty much instantly.

          When I use the computer outside of the network, I got an error when I tried to telnet to the camera with the public IP.
          When I use the computer inside the network, I got a connection error (Time Out) when I tried to telnet to the camera with the public IP.

          Since the LAN IP works, I did not try to telnet the IP camera with the LAN IP.

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

            well, if you get a connection HTTP or whatever error, you are getting to the camera.  the failure to connect at all via the public IP from inside is presumably because you have nat reflection disabled.  this is weird then, it is almost like the camera is disallowing connections from IPs other than inside the LAN.

            1 Reply Last reply Reply Quote 0
            • B
              bczeon27
              last edited by

              Thank You for trying to help.

              I think the connection was established.  But, the camera can't sent any information out.

              So, Set the Outbound then reset the router.

              The problem has been resolved.

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

                What does 'set the outbound' mean?

                1 Reply Last reply Reply Quote 0
                • B
                  bczeon27
                  last edited by

                  NAT:Outbound

                  • Manual Outbound NAT rule generation

                  This is weird.  Doesn't the NAT (Port Forward) automatic address the outbound and inbound issue?

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

                    No, port forwarding only deals with inbound.  Also, you shouldn't have need to manually set outbound NAT unless you were doing something non-standard.  If you set manual NAT (AON) but didn't actually change anything, that was most likely a red herring, and the router reboot is what "fixed" this.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bczeon27
                      last edited by

                      I did add a rule in the outbound of creating a static port 9082.

                      This is interesting.  I would changed that back and find out.

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

                        where did you get that port number from?

                        1 Reply Last reply Reply Quote 0
                        • B
                          bczeon27
                          last edited by

                          That's the http port that the IP camera uses.

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

                            But that is for inbound (port forwarding.)  That has nothing to do with the port numbers in the outbound NAT settings.  What specifically did you set for the outbound NAT entry?

                            1 Reply Last reply Reply Quote 0
                            • B
                              bczeon27
                              last edited by

                              Interface      Source        S. Port                            Static Port
                              WAN    192.168.1.0/24    9082    *    *    *    *    Yes
                              WAN    192.168.1.0/24    9002    *    *    *    *    Yes
                              WAN    192.168.1.0/24      *        *    *    *    *    No

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

                                Outbound NAT should only be for new connections initiated from inside.  Have you tried deleting them and rebooting pfsense?

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bczeon27
                                  last edited by

                                  Just disabled the whole Outbound NAT.

                                  You are right.  A simple Firewall State Reset was all it is needed.

                                  thanks.

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