netconsole
用途
遠端 Linux 機器的 kernel 訊息可以透過網路傳出來
Applicaiton on GW
etc\/rc.d\/S55syslogd.sh
ramfs\/bin\/setnetconsole.sh
Check status by
$(dmesg)
$(lsmod | grep netconsole)
Testing
Client
echo h > /proc/sysrq-trigger
echo my kernel message > /dev/kmsg
nc client :
echo "Debug" | busybox nc $target_ip $target_port
Server
nc -l -p $target_port
Packet capture
tcpdump -i eth0 -n -e port 5577 -s 0 -w \/var\/www\/htdocs\/netconsole.pcap
Now we only test by getting packet successfully
args:
source_interface
Default : eth10
WAN1 : eth0
Source IP 
Source Port 
Target IP 
Target Port 
Target MAC
Last updated
Was this helpful?