I am using a RPi2W to monitor sensors remotely. I have a Soracom GSM Sim card in a dongle and it works well. Provided there is a WiFi access point it restricts the data to my sensor data, however if this connection goes down then there is considerable traffic that defaults to the GSM connection.
I only have an allowance of 15Mb per month and my data is less than 5Mb, so no problem, but this increases to 5Mb/day without the WiFi connection.
Interestingly, the Wifi access point doesn't need internet access itself to restrict the usage, so I assume it's just the Pi checking for updates etc.
Sitting at home on the local router (IP:192.168.1.254) I see the following connections and routes:- preconfigured is the active connection to my local router.
The Soracom setup script directs all traffic to wlan0 except the sensor traffic, but if there is no wlan0, then all traffic goes to the Soracom route.
The question it how to prevent this. I would like to know what is creating the traffic, so I could disable it. Or create a route that goes nowhere.
How can I check which tasks are generating the data traffic?
Thanks
Richard
I only have an allowance of 15Mb per month and my data is less than 5Mb, so no problem, but this increases to 5Mb/day without the WiFi connection.
Interestingly, the Wifi access point doesn't need internet access itself to restrict the usage, so I assume it's just the Pi checking for updates etc.
Sitting at home on the local router (IP:192.168.1.254) I see the following connections and routes:
Code:
i@raspberrypi:~ $ nmcli connection showNAME UUID TYPE DEVICE preconfigured b794428b-787f-43b5-a630-5bfb8624b659 wifi wlan0 lo 4d8ead64-88dc-4c34-a2e6-8ff70e9e8214 loopback lo soracom 491329a4-fdcc-4560-b62c-77bfa0ad661d gsm ttyUSB2 PLUSNET-Kitchen 31158f62-ebb4-4c1d-a612-8156a312db39 wifi -- TPLink e0663da1-4139-4a96-99d2-7e1334518d37 wifi -- pi@raspberrypi:~ $ routeKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Ifacedefault 192.168.1.254 0.0.0.0 UG 600 0 0 wlan0default 10.142.184.9 0.0.0.0 UG 700 0 0 wwan010.142.184.8 0.0.0.0 255.255.255.248 U 700 0 0 wwan0ec2-54-250-252- 10.142.184.9 255.255.255.255 UGH 0 0 0 wwan0ec2-54-250-252- 10.142.184.9 255.255.255.255 UGH 0 0 0 wwan0100.127.0.0 10.142.184.9 255.255.0.0 UG 0 0 0 wwan0192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
The Soracom setup script directs all traffic to wlan0 except the sensor traffic, but if there is no wlan0, then all traffic goes to the Soracom route.
The question it how to prevent this. I would like to know what is creating the traffic, so I could disable it. Or create a route that goes nowhere.
How can I check which tasks are generating the data traffic?
Thanks
Richard
Statistics: Posted by ratsea — Mon Aug 12, 2024 9:00 am — Replies 0 — Views 16