Pracenje prometa odlazne konekcije

Pracenje prometa odlazne konekcije ka odredjenoj IP (AA.BB.CC.DD) i porta PORT.


sudo /sbin/iptables -t filter -A OUTPUT -p tcp -d AA.BB.CC.DD --dport PORT -j ACCEPT


sudo /sbin/iptables -L -v -x -n | grep 'tcp dpt:PORT' | grep AA.BB.CC.DD | sed -e 's/ \+/ /g' -e 's/^ //' -e 's/ .*$//'

Vraca broj paketa koji su preneti.

This entry was posted in linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *