Author Topic: WiFi  (Read 4294 times)

Admin

Re: WiFi
« Reply #45 on: March 18, 2020, 10:19:25 am »
Hi Kevin,
OK, my tcpstat does not accept your syntax, so I have had to workaround.

The OGN-R IP is 192.168.0.67 and my ssh is 192.168.0.100, so I have used the following

tcpdump -i eth0 "(not ((src 192.168.0.100) or (dst 192.168.0.100))) and ((src 192.168.0.67) or (dst 192.168.0.67))"

so this should track everything to from local IP but ignoring my ssh terminal
does this sound right ?

the gateway syntax is not accepted by tcpdump 1.5 (I also sent an email)

Thx
Lee

Kevin W

Re: WiFi
« Reply #46 on: March 18, 2020, 10:29:17 am »
Ahh, I spot the problem, 'gateway' will only work if you have that name defined in /etc/hosts and /etc/ethers

You need to replace the first 'gateway' with the gateway MAC, and the second gateway with the gateway IP - ie

"ether host 06:a3:22:04:c1:71 and not host 192.168.1.1"

Cheers
Kev

Kevin W

Re: WiFi
« Reply #47 on: March 18, 2020, 10:37:15 am »
The OGN-R IP is 192.168.0.67 and my ssh is 192.168.0.100, so I have used the following

tcpdump -i eth0 "(not ((src 192.168.0.100) or (dst 192.168.0.100))) and ((src 192.168.0.67) or (dst 192.168.0.67))"

does this sound right ?

I don't think that s right, but struggling to get a head that feels like it is full of cotton wool around it!

To count traffic going to the Internet, you need to count all packets going to the MAC address of the gateway, whilst excluding anything going to the IP address of the gateway. 
(ie the routing table has said the next hop for the packet is the gateway, but not counting anything that is stopping at  the gateway its self - ie IGMP, ARP, RARP's, etc)

If you have other traffic going to the Internet that you don't want to count you have to exclude that too. ie if you are sshing in from a host on the internet rather than the local network.

Hope that makes sense.

Cheers
Kev
« Last Edit: March 18, 2020, 07:55:21 pm by Kevin W »

Admin

Re: WiFi
« Reply #48 on: March 18, 2020, 03:40:38 pm »
Makes sense
Thx
Lee

Keithvinning

Re: WiFi
« Reply #49 on: March 23, 2020, 09:06:38 am »
Hi Frank

Unfortunately the WIFi will only work with a Pi 3 not a pi 2 with a dongle

Sorry

Keith

trident

Re: WiFi
« Reply #50 on: March 23, 2020, 09:40:21 pm »
Hi Frank

Unfortunately the WIFi will only work with a Pi 3 not a pi 2 with a dongle

Sorry

Keith

Hi Keith,

Thanks for your reply.

That's a shame because it's going to delay installing the station whilst I try to set up a wired connection to the Pi.

Thanks,

Frank.