Sample Header Ad - 728x90

tcpdump/tshark: view only outgoing TCP connections requests

6 votes
2 answers
14972 views
I would like to view TCP requests (syn packets) initiated by my PC/server to other hosts. More specifically, I would like to view the outgoing connection requests. How can I accomplish this? Also, I don't want to see any connection attempts that are coming to my PC/server. The following iptables command works but it's clunky to use as it logs everything while I just want to see everything on the screen: iptables -I OUTPUT 1 -o eth0 -p tcp -m state --state NEW -j LOG
Asked by Artem S. Tashkinov (32730 rep)
Sep 3, 2018, 02:56 PM
Last activity: Jun 7, 2025, 11:48 AM