Monitor LAN Traffic

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Wed Oct 02, 2019 19:27    Post subject: Monitor LAN Traffic Reply with quote
Hello all,
I just migrated back to standard FW. I was using Kong´s for the last few years, but I still want to keep up with the new stuff released.
I have a script to WOL my machine in case someone try to access a specific service.
on Kong´s I was using tcpdump to monitor that.
on Current FW, tcpdump is not available and dmesg only monitor external traffic.
These are the root commands of my script:

dmesg -c | awk '/DPT=32400/ {print }' (Lattest FW)

tcpdump 'dst host 192.168.1.2 and dst port 32400' (Kong FW)

Can any of you pinpoint a way to monitor all traffic to destination 192.168.1.2 regardless the origin (internal network or external) ?

ps: I have a media server called Plex and this script WOL the server whenever I start a client.

Thanks!
Sponsor
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Wed Oct 02, 2019 22:02    Post subject: Reply with quote
Well .....
It is not the prettiest solution, but I found a way to install tcpdump. For my CPU, these are the ipks:

Code:
cd /tmp
wget http://archive.openwrt.org/snapshots/trunk/bcm53xx/generic/packages/base/libpcap_1.7.4-1_bcm53xx.ipk
wget http://archive.openwrt.org/snapshots/trunk/bcm53xx/generic/packages/base/tcpdump-mini_4.9.2-1_bcm53xx.ipk
ipkg -d /tmp install tcpdump-mini_4.9.2-1_bcm53xx.ipk
ipkg -d /tmp install libpcap_1.7.4-1_bcm53xx.ipk
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/usr/lib"
PATH="$PATH:/tmp/usr/sbin"


I will add that to my script ....
I am still searching for a more elegant way of doing this.

Please share !!!![/code]
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6388
Location: UK, London, just across the river..

PostPosted: Thu Oct 03, 2019 6:11    Post subject: Reply with quote
i dont know if this is relevant to this case, but
i do have opkg (entware) on my Broadcom unit and there you can get tcpdump or any other useful package, i guess ipkg is a bit outdated...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,AP Isolation,Ad-Block,Firewall
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 55363 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55363 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Thu Oct 03, 2019 19:07    Post subject: Reply with quote
I can´t find it on latest build. I have a Linksys EA6900
I would have to install opkg with ipkg and then install the packages I need.
But thanks for the reply Smile
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum