joaoptc DD-WRT Novice
Joined: 28 Oct 2014 Posts: 43
|
Posted: Wed Oct 02, 2019 19:27 Post subject: Monitor LAN Traffic |
|
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! |
|
joaoptc DD-WRT Novice
Joined: 28 Oct 2014 Posts: 43
|
Posted: Wed Oct 02, 2019 22:02 Post subject: |
|
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: 4175 Location: UK, London, just across the river..
|
Posted: Thu Oct 03, 2019 6:11 Post subject: |
|
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 45849 BS AP,NAT
TP-Link WR740Nv4 -----DD-WRT 44251 BS WAP/Switch
TP-Link WR1043NDv2 ---DD-WRT 45849 BS AP,NAT,AP Isolation,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---DD-WRT 45849 BS AP,NAT,AD/Block,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---Gargoyle OS 1.12.0 AP,NAT,QoS,Quotas
Qualcomm/IPQ8065
Netgear R7800 -----DD-WRT 45859 BS AP,NAT,AD-Block,AP&Net Isolation,VLAN's,Firewall,Local DNS,DoT
Broadcom
Netgear R7000 -----DD-WRT 45859 BS AP,Wi-Fi OFF,NAT,AD-Block,Firewall,Local DNS,Forced DNS,VLAN's,DoT,VPN
-----------------------------------------------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913 |
|