apt|yum|dnf install -y tcpdump
vi tcp_trafmon.sh
#!/bin/bash sysdate=`date +%y-%m-%d_%H-%M-%S` log="/path/log_${sysdate}" eth_name="이더넷_명" tcpdump -i $eth_name -n -l 'tcp' | awk '{ print $3 " -> " $5 }' | grep -vE '모니터링_제거할_IP|모니터링_제거할_패킷_명' | tee $log
👉 👩💻 tcpdump 명령어 예제 보기