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

    How to block my calling home foscam ip camera.

    Scheduled Pinned Locked Moved Firewalling
    23 Posts 4 Posters 4.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.
    • G
      Gerard64
      last edited by

      For almost a year i''m trying to block my foscam ip camera from "calling home". I found here on pfsense forum en else on the internet several tips for this problem but for some reason its not working for me.

      The foscam camera is on my LAN network. I made a alias with a list of ip´s the camera is calling out to on the internet. Then I made a lan block rule to block this alias. This does not work. Wen I block all outgoing traffic from the camera then I still see connections coming in on the wan, coming from the ip´s I put in that alias with ip´s from foscam.

      I can´t figure this out. Wen I block the camera completely wen i even can´t connect to anymore then still i see incoming connections from those ip's.

      The strange thing is wen i power off the cam all this weird traffic and connections stop right away. So somehow the camera still triggers those incoming wan connections but i can´t figure out how.

      Wen i do a packet capture on the lan interface i see incoming and outgoing connections from and too the camera from internet ??? How is this possible wen i block the cam its still talking to those ip's ???

      I tried many many configurations. for example I made a floating rule to block those ips on the wan and lan interface but still wen i power on the camera the incoming wan connections start again so the camera still knows how to trigger this.

      I'm very curious what i'm doing wrong. Or what might going on.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        The destination sure like hell should NOT be "LAN net".

        1 Reply Last reply Reply Quote 0
        • G
          Gerard64
          last edited by

          I choose a wrong pic. I tried so many things below is another pic. I was so fed up with it so i thought i post it here on the forum. Because I don't know what to try next.

          1 Reply Last reply Reply Quote 0
          • G
            Gerard64
            last edited by

            BTW that "lan net" idea i got from:
            http://foscam.us/forum/post70859.html#p70859

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

              If you don't want your foscam to go to the internet, then use its IP as the source IP and block it from going anywhere.

              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
              • G
                Gerard64
                last edited by

                I know and i did.
                But even then wen I power up the camera i see those WAN connections again.
                Also wen i do a packet capture i see there is still a lot of traffic going in and out between those ip's you see on the wan pic.
                Its crazy i can't figure it out. It feels like i mis something simple but what?

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

                  well post up the rules that you put in place to block it?  You do understand that you would have to kill any existing states when you create new rules.

                  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
                  • G
                    Gerard64
                    last edited by

                    Hmm that sounds like you might found the stupid thing i might have not done because didn't know that  :o
                    But then again i don't think this was the problem a year long wen i did several reboots and upgrades etc. I gues existing states would then be lost right?

                    I have now this:

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

                      I see blank/nothing for this:

                      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
                      • G
                        Gerard64
                        last edited by

                        I see there a picture.

                        The cameras alias has of course the ipcam ip in it
                        i set cameras alias as source and block to all *
                        Then you see on the pic the dynamic view of the firewall log were we see still those incoming udp connections.

                        Wen i power off the camera then those udp connections stop.

                        How can the cam connect out to the internet wen i block everything coming in from the cam?
                        It still somehow triggers those incoming connections.

                        1 Reply Last reply Reply Quote 0
                        • G
                          Gerard64
                          last edited by

                          BTW i just reset states few minutes ago after your tip and it did not change anything.

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

                            can you not just attach the picture to post - I don't see anything.. work firewall blocking access to image hosting sites most likely.

                            As to how it can get there is because your not blocking it.. Rules are evaluated top down, first rule wins.. So if you have a rule above that says any any and then a rule that says block the block rule is never hit would be my guess.

                            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
                            • G
                              gcu_greyarea
                              last edited by

                              Check if there are floating rules?

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

                                So just looked via none work proxy and yeah that rule should block - other than your alias is not working..  What is in your cameras alias?

                                What are you trying to show your firewall log shows a bunch of blocked UDP traffic to your wan..  How is that your cameras???

                                blocked.png
                                blocked.png_thumb
                                blocked.png_thumb

                                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
                                • G
                                  Gerard64
                                  last edited by

                                  It is just that what was the problem.
                                  Just before i read the last posts here i exchanged the alias for the plain IP address and voila problem solved pfffff unreal

                                  The alias looks like this:

                                  I also added the pic as attachment.

                                  Aliases.jpg_thumb
                                  Aliases.jpg

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    Gerard64
                                    last edited by

                                    @johnpoz:

                                    What are you trying to show your firewall log shows a bunch of blocked UDP traffic to your wan..  How is that your cameras???

                                    I my earlier posts i wrote that those wan udp connections get triggered by the cam. everytime the cam is powered on those udp connectoins start going up. so the cam is triggering that even wen i thought i have blocked the camera. Wen i power off the camera those udp connections on the wan stop.

                                    But i/we now know wat the problem was. Probably some bug in the alias system. I don't know i'm happy i finally blocked the cam "calling home".

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

                                      You can always check what is in your alias via the diag, tables section.  See there is a alias I use to list the IPs of my AP.

                                      aliastable.png
                                      aliastable.png_thumb

                                      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
                                      • G
                                        Gerard64
                                        last edited by

                                        Great tips Johnpoz did not know this one either.
                                        I checked the CAMERAS alias in the diag / tables and it shows the right IP. Still i think there is something wrong with the aliases system since the IP is the right one.
                                        With the alias set it did not work with the IP address in place of the alias it does work.

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

                                          I am not having any problems - if I did then none of my eap-tls wifi clients could connect because that alias allows my AP to talk to the radius server..

                                          Use lots of aliases - if they were not working I would have lots of stuff broken

                                          aliasrules.png
                                          aliasrules.png_thumb

                                          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
                                          • G
                                            Gerard64
                                            last edited by

                                            I know i use many aliases they work also but this one did not.
                                            I have no idea why.

                                            I'm happy the problem is solved but it is still strange.
                                            I would like to use the alias. I try again later with a new created alias if it is still a problem then.

                                            Same here with my AP's i use also aliases and also wpa2-eap with dynamic vlans but that another story.
                                            If all aliases would not work i would have a big problem too of course :)

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