Monitor LAN Traffic

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


Joined: 28 Oct 2014
Posts: 43

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 Novice


Joined: 28 Oct 2014
Posts: 43

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: 3063
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 33772 BS WAP/Switch (wired)
TP-Link WR1043NDv2 ----DD-WRT 41659 BS (AP,PPPoE,NAT,AD Blocking,AP Isolation,Firewall,Local DNS,Forced DNS,DoT, VPN)
TP-Link WR1043NDv2 ----DD-WRT 41517 BS (AP,NAT,AD Blocking,Firewall,Wi-Fi OFF,Local DNS,Forced DNS,DoT)
TP-Link WR1043NDv2 ----Gargoyle OS 1.11.0 (AP,NAT,QoS,Quotas)
Qualcomm/IPQ8065
2x Netgear R7800 -------DD-WRT 40270M 4.9 Kong (AP,NAT,AD-Blocking,AP&Net Isolation,VLAN's,Firewall,Local DNS,DNSCrypt-proxy v2 x2)
Broadcom
Netgear R7000 -------DD-WRT 40270M Kong (AP,NAT,VLAN,AD-Blocking,Firewall,Local DNS,Forced DNS,DoT)
------------------------------------------------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 via Entware by mac913
joaoptc
DD-WRT Novice


Joined: 28 Oct 2014
Posts: 43

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 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