WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: IP Camera's using up all our Upload broadband !  (Read 617 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 362
IP Camera's using up all our Upload broadband !
« on: September 21, 2018, 09:34:29 PM »
Hi all,

Staff at the community centre where I volunteer have been coplaining about slow internet for a while this year.
they say its getting worse and worse and after our ISP reported we were using a strangely large amount of Upload data. I disconnected all computers and devices from our network and enabled them one by one while monitoring our ISP upload usage summary page in a web browser on my phone.

I've discovered the problem is caused by IP Camera's we have been installing since April this year. We have about 20 of these things at the moment, they are all configured by P2P.

The manufacturer in China "Longse" claim they will use a little data to transmit P2P readiness status to a server for devices to connect to remotely via apps.

But these camera's are consuming over 4GB of upload broadband every day now.

Can I get some advice as to how I can place a computer between the network switch and our modem to capture the data the camera's are transmitting and examine it ?

All comments and suggestions welcome.

Thank you :)
Live long and prosper.

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5935
Re: IP Camera's using up all our Upload broadband !
« Reply #1 on: September 21, 2018, 09:56:18 PM »
Hi remus
Wireshark will let you set triggers and capture on a wide variety of parameters. The problem is getting
a good point to tap the data stream. You'll probably need to place a computer between the network
switch and the modem with 2 network cards to act as a "bridge". Then use Wireshark to listen in on
one of those network cards. You can probably use  iptables.tcz  to bridge the 2 network cards.

Offline NewUser

  • Jr. Member
  • **
  • Posts: 64
Re: IP Camera's using up all our Upload broadband !
« Reply #2 on: September 21, 2018, 11:18:52 PM »
We had a similar problem at work when video cameras data was sent to a remote site, instead of being kept locally.  Unfortunately I don't remember the fix, though decreased resolution was a part.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9862
Re: IP Camera's using up all our Upload broadband !
« Reply #3 on: September 22, 2018, 01:50:02 AM »
Many Chinese cameras are known to send their image stream to Chinese servers, and to let the parent company view & control everything. The bad thing about it is that if you block that in your firewall, the cameras may stop working locally too.
The only barriers that can stop you are the ones you create yourself.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1096
Re: IP Camera's using up all our Upload broadband !
« Reply #4 on: September 22, 2018, 04:06:16 AM »
The more these IoT devices can do the more important it is to separate them cleanly in their own VLAN or comparable measures and block all outside communication.
If the devices stop working without their command&control servers as curaga warns then they are not worth having in the first place and should be discarded or given away with a big fat warning.

Little side-story to show other practical unintended benefits:
Some years ago I bought an amazon firestick exclusively to use the XBMC fork Kodi, and I was wise enough to block all connections but to my NAS.
Friends did the same, but forgot my recommendation to block all possible, so their OS got upgraded and amazon removed functionality that was required to auto-start Kodi. Firmware downgrades are also not possible any more.
My device wasn't able to update, so I'm fine.

It's not just about China for me. I want to be in control. :)
« Last Edit: September 22, 2018, 04:14:20 AM by hiro »

Offline Pats

  • Sr. Member
  • ****
  • Posts: 265
Re: IP Camera's using up all our Upload broadband !
« Reply #5 on: September 22, 2018, 11:33:52 PM »
Quote
Posted by remus on September 21, 2018..
... Staff at the community centre where I volunteer have been coplaining about slow internet for a while this year.they say its getting worse and worse and after our ISP reported we were using a strangely large amount of ...

curaga has pointed to an important aspect, and it looks more obvious reason for OPs problem.

... At the same time, now a days, one should be aware about *the cryptojacking code* which  hijacks the system CPU and puts it to use mining cryptocurrency,
... There are several types of malware out there that will mine cryptocurrency by using  speed and processing power of infected machines .
... Ggl for more details.

Offline remus

  • Sr. Member
  • ****
  • Posts: 362
Re: IP Camera's using up all our Upload broadband !
« Reply #6 on: September 23, 2018, 09:01:35 PM »
Thanks to everyone for their comments and suggestions.

That these camera's are transmitting so much data somewhere autonomously is worrying !

Sounds like I need to figure out if our TP-Link td-w8990 ADSL router has a built in firewall for starters.
Live long and prosper.

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5935
Re: IP Camera's using up all our Upload broadband !
« Reply #7 on: September 23, 2018, 09:17:23 PM »
Hi remus
Quote
Sounds like I need to figure out if our TP-Link td-w8990 ADSL router has a built in firewall for starters.
Is that model number a typo? Google insists on returning results for  td-w8980.  Typing in the LAN address of the router
into a web browser should give you its web based interface.

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5935
Re: IP Camera's using up all our Upload broadband !
« Reply #8 on: September 23, 2018, 09:25:56 PM »
Hi remus
This is a manual for the 8980:
https://static.tp-link.com/res/down/doc/TD-W8980_V1_UG.pdf
According to section  4.14  it does have a firewall.

Offline remus

  • Sr. Member
  • ****
  • Posts: 362
Re: IP Camera's using up all our Upload broadband !
« Reply #9 on: September 23, 2018, 09:56:22 PM »
Yep its a TP-LINK TD-W8980

Thanks for the manual link.

I've set a firewall rule stopping all outgoing traffic from IP Range of the Camera's but not the NVR.

Our uploads have returned to a normal rate, but I'm unable to access the NVR via app on my phone now. I'm going to re install it to be sure.

Will post my findings.
« Last Edit: September 23, 2018, 10:05:47 PM by remus »
Live long and prosper.

Offline NewUser

  • Jr. Member
  • **
  • Posts: 64
Re: IP Camera's using up all our Upload broadband !
« Reply #10 on: September 23, 2018, 10:23:50 PM »
Do you know where the video/pictures are going?

Offline remus

  • Sr. Member
  • ****
  • Posts: 362
Re: IP Camera's using up all our Upload broadband !
« Reply #11 on: September 23, 2018, 10:40:53 PM »
Do you know where the video/pictures are going?

At this stage, I'm unaware of WHAT and WHERE data is being transmitted.

I've yet to setup a system between the network and the modem to investigate that.

Is wireshark going to sort out the WHERE and WHAT ?
Live long and prosper.

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5935
Re: IP Camera's using up all our Upload broadband !
« Reply #12 on: September 24, 2018, 07:28:34 AM »
Hi remus
Wireshark can do what you need. If you set up the following in the capture field:
Code: [Select]
host 10.1.1.61 or 10.1.1.62 or 10.1.1.63 or 10.1.1.64 or 10.1.1.65 or 10.1.1.66This will only capture traffic to and from those cameras.

Offline remus

  • Sr. Member
  • ****
  • Posts: 362
Re: IP Camera's using up all our Upload broadband !
« Reply #13 on: September 24, 2018, 08:44:01 PM »
Hi All,

I can report the following.

Blocking the IP Camera's IP Range from outgoing transmission has stopped the massive data upload through our modem.

Restarting the NVR and re installing the settings in mobile phones got remote access to the NVR working again.

All in all we are pretty happy with the outcome.

My manager is curious as to what is actually being transmitted. I will install wireshark in a VM and see how I go before deploying a machine to tap the transmissions. Then I'll target a few of the camera's and modify the firewall to let that traffic through again (This may note be nesesary... perhaps the camera's are just going to stupidly transmit without RTS confirmation that packets are received on the other end...)
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 362
Re: IP Camera's using up all our Upload broadband !
« Reply #14 on: September 27, 2018, 08:32:05 PM »
Experiments (Education )with wireshark continues.

In the mean time, my manager would like me to setup something to monitor web traffic on our network in future so when this happens again we won't be caught guessing.

So is there an existing TinyCore / MicroCore app that does the following ?
- Able to show web traffic history/trends for devices on our LAN by IP or MAC address.
- I guess it would be neat if the app supported a web gui we could access from the LAN
- It would also be neat if the app could send an email alert if web traffic exceeds a preset limit.

As always your thoughts and comments are welcome.

Thanks.
Live long and prosper.