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

    WyzeCam and Pfsense

    Scheduled Pinned Locked Moved General pfSense Questions
    78 Posts 4 Posters 12.6k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Look at the firewall logs when it stops streaming. Do you see blocked traffic logged?

      Check the states that are opened when you start streaming.

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

        Checking the FW logs are only showing WAN errors, and it appears those are for the Amazon Dot on that VLAN.

        I tried searching FW logs for the IP of my phone and the IP of the Camera with no results.

        States show the IP for the camera has 22 states open , 16 upd and 6 TCP.

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

          I really want to thank you for the assist. Ive been looking some things over and I discovered that I had my Port forwarding rules backwards for source and destination. After reversing these the Cameras are now streaming with out any buffering / zero KBps.

          To solve this I set two port forwards for 10001 and 22345. These are the P2P stream and keep stream alive ports disclosed on the Wyze support page.

          So far everything appears to be working with the Cams. Now on to the next VLAN setup.

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

            Interesting, that sounds like they might be using UPnP on the other router then if they require forwarded traffic.

            D 1 Reply Last reply Reply Quote 1
            • D
              djskott @stephenw10
              last edited by

              I guess i counted my chickens before they hatched. Back to square one.

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

                Then I would look at some conflict between the two routers. If they are sharing one public IP traffic coming to that can only ever go to one of them so if cameras behind both a trying to open connections on the same ports some may fail. That might explain why it starts and stops as it does. Try disconnecting the other router as a test.

                1 Reply Last reply Reply Quote 0
                • nullcureN
                  nullcure LAYER 8
                  last edited by

                  I have 3 wyze cams.

                  2 Pan v3 and 1 v3

                  They all work without issue.

                  I can't remember if they worked or not before I turned on UPMP ant nat port forwarding or whatever but I never saw any activity in there anyway.

                  If you have any questions Ill try to help the bvest I can

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

                    Thank you both for the responses.

                    @nullcure What does your NAT PF rule look like?

                    This is my Setup which may help: This is an old SFF Desktop.

                    I7-2600 @ 3.4ghz (8CPU, 4 core x 2 hardware threads)
                    8GB RAM
                    100/100/1000Mbps Gigabit Ethernet Converged Network Adapter (NIC) with Intel 82576 Chip | Dual NIC
                    2x AP: Ubiquiti Networks UniFi UAP-AC-PRO

                    WAN is on one port of the Dual NIC and LAN to the Managed switch is on the 2nd port.

                    So while doing some tests yestraday I noticed the speed on both AP's are not 100%. These are Wifi-ac devices, so i should see throughput up to 1300mbps. The VLAN for the Cams and Home both are on a 1GB connection. The Link up LED on the switch shows 1000 and PFSENSE Reflects the same, however im only peaking at 95 mbps down, my upload is peaking at 113 mbps.

                    I'm on a 1gbps/100mbps plan. Speedtests on the Nighthawk are at 950ish down and peaking 125 mbps up. This is on a wired connection, and when on the wifi its around 750 down and 100 up.

                    Both PFSENSE and Nighthawk are grabbing an IP from the Modem via DHCP. I have tried the BufferBloat fix on and off with no changes in behavior

                    To remove a bad wire sceanrio I have a newer Cat8 coming today, even though the current cat5e should handle the through put it is a older wire that was in my spare parts Bin.

                    I have an assumption that the buffering that is occurring for the WyzeCams could be related to this speed limitation.

                    Another setting Ive tested is by putting the PFSENSE on the Modems DMZ, not super secure which I understand but I'm trying anything I could think of to see what may be the cause of this. My end goal is to bridge PFSENSE to the Modem rather than DHCP.

                    Push comes to shove, Should I just nuke the box and start over?

                    nullcureN stephenw10S 2 Replies Last reply Reply Quote 0
                    • nullcureN
                      nullcure LAYER 8 @djskott
                      last edited by nullcure

                      @djskott Are you saying you're seeing only 95mbps AND 113mbps coming through for your wyze cams? Cause that would be correct.

                      922304bf-e0e1-4832-b6b6-721f9b599532-image.png

                      {Edit}
                      What do you mean both Nighthawk and Pfsense are are getting an IP from the modem via DHCP isn't Nighthawk Your Modem? or is it a nighthawk router.

                      For router like you see in my config yoiu need to do this.

                      3ece5170-7509-4260-bb5d-3814c471c721-image.png

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        djskott @nullcure
                        last edited by djskott

                        @nullcure

                        The throughput on the Cams is 0.0 most of the time and then will randomly show traffic example 0.5 then 14 then 55 then 0 and sits. This is in KBs.

                        The throughput I'm seeing the degradation is via the AP's. Both AP's exhibit the same throughput.

                        The nighthawk is my original router that is connected to my Modem. Its grabbing an IP via DHCP from the modem. I have zero issues with my internet connection with devices on this router, it is not in AP mode.

                        Another tidbit, I had a ASUS router which I had placed in AP Mode . This Router was running the cams before I moved to the Unify AP's. I thought it was the ASUS router causing the issue so I moved to the Unify's. The ASUS router in AP mode yielded the same results.

                        nullcureN 1 Reply Last reply Reply Quote 0
                        • nullcureN
                          nullcure LAYER 8 @djskott
                          last edited by

                          @djskott You're using a WLC (Wireless Controller) for these? If so you have setup vlan for wifi mgmt traffic yeah?well of course, you have connectivity right so lets narrow it down.

                          OSI Model we'll be looking at Layers 2 and 3 I believe.

                          Layer 2 to make sure our hardware ports have the correct settings.
                          Layer 3 to check for any bandwidth limiters or traffic shapers. Perhaps an accidently turned on setting somewhere?

                          If I was you and I know you've already probably tripled checked by now.

                          I'd run traceroute from said bandwidth limited device to the gateway to the internet.
                          Then with pen and paper go from point to point checking my layer 2 ethernet stuff including the port neogotiations and link tests. installing iperf can also help you narrow it down by running it from different end devices.

                          After checking the layer 2 stuff I'd start back and go again checking layer 3 stuffs.

                          Let me know what you find. If you choose to do this

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            djskott @nullcure
                            last edited by djskott

                            @nullcure The AP's are in standalone I do not have a Unify Controller.

                            I do have traffic shaping setup for Bufferbloat. I have that disabled at the moment.

                            The links appear to be 1000 in PFSENSE and the Link Lights are indicating 1000 on the Switch.

                            port links.png

                            The Ipref test does show a limited connection.

                            1111.png

                            AP 1 (Home)

                            ipref log2.png

                            AP2 (Cameras)

                            ipref log2 modem.png

                            This is from the Modem to PFSENSE

                            speedtest lan nighthawk.png

                            This is the speedtest from the NightHawk while on my LAN

                            Both devices are pulling dhcp from the Modem.

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

                              @djskott said in WyzeCam and Pfsense:

                              These are Wifi-ac devices, so i should see throughput up to 1300mbps

                              You won't ever actually see that. That's just the maximum link speed.

                              However this doesn't seem like a throughput issue, you won't need anything like that to stream video. It seems more like a blocked or replaced state somewhere. Possibly in the upstream router.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                djskott @stephenw10
                                last edited by

                                @stephenw10 \

                                Correct The AP BW is up to 1300, never what you will actually see. Totally get that peice.
                                But it should be more than 100mbps.

                                I just ran a state reset on PFsense and rebooted the modem.

                                No Change in behavior

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

                                  Try setting a static port outbound NAT mappings for the camera IPs. It's possible the cloud side of this can't cope with source port changes. Though that's unlikely, anything vaguely recent should have no problem with that.

                                  https://docs.netgate.com/pfsense/en/latest/nat/outbound.html#static-port

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    djskott @stephenw10
                                    last edited by djskott

                                    @stephenw10

                                    Added the Static port earlier and there was no change.

                                    New Cat 8 arrived and has Doubled speeds to around 200-220 on speed.cloudflare.com

                                    ─$ iperf3 -c 192.168.200.1
                                    Connecting to host 192.168.200.1, port 5201
                                    [ 5] local 192.168.200.236 port 45108 connected to 192.168.200.1 port 5201
                                    [ ID] Interval Transfer Bitrate Retr Cwnd
                                    [ 5] 0.00-1.00 sec 18.9 MBytes 158 Mbits/sec 0 837 KBytes
                                    [ 5] 1.00-2.00 sec 18.8 MBytes 157 Mbits/sec 0 1.09 MBytes
                                    [ 5] 2.00-3.00 sec 18.8 MBytes 157 Mbits/sec 0 1.20 MBytes
                                    [ 5] 3.00-4.00 sec 18.8 MBytes 157 Mbits/sec 0 1.45 MBytes
                                    [ 5] 4.00-5.00 sec 20.0 MBytes 168 Mbits/sec 0 1.52 MBytes
                                    [ 5] 5.00-6.00 sec 18.8 MBytes 157 Mbits/sec 0 1.52 MBytes
                                    [ 5] 6.00-7.00 sec 20.0 MBytes 168 Mbits/sec 0 1.52 MBytes
                                    [ 5] 7.00-8.00 sec 17.5 MBytes 147 Mbits/sec 0 1.52 MBytes
                                    [ 5] 8.00-9.00 sec 12.5 MBytes 105 Mbits/sec 0 1.52 MBytes
                                    [ 5] 9.00-10.00 sec 10.0 MBytes 83.9 Mbits/sec 0 1.52 MBytes


                                    [ ID] Interval Transfer Bitrate Retr
                                    [ 5] 0.00-10.00 sec 174 MBytes 146 Mbits/sec 0 sender
                                    [ 5] 0.00-10.03 sec 171 MBytes 143 Mbits/sec receiver

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

                                      Hmm, what link did you replace the cable on? Where is that test between?

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        djskott @stephenw10
                                        last edited by djskott

                                        @stephenw10

                                        WAN.

                                        That perf3 test is AP to PFSense

                                        I also ran a speedtest from CLI.

                                        Shell Output - speedtest-cli

                                        Retrieving speedtest.net configuration...
                                        Testing from Cox Communications (98.x.x.x)...
                                        Retrieving speedtest.net server list...
                                        Selecting best server based on ping...
                                        Hosted by CenturyLink (Tucson, AZ) [148.82 km]: 41.069 ms
                                        Testing download speed................................................................................
                                        Download: 724.45 Mbit/s
                                        Testing upload speed......................................................................................................
                                        Upload: 107.26 Mbit/s

                                        Throughput to ISP is decent.

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

                                          And that's the cable you replaced?

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            djskott @stephenw10
                                            last edited by

                                            @stephenw10

                                            Cable from Modem to PFsense was replaced.

                                            The cables from the AP's to the POE and POE to Switch and switch to PFS are all New C7/C8.

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