Skip to content

Instantly share code, notes, and snippets.

@luisprox
Created December 15, 2021 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisprox/21dbd9c1916b0e4725acd151b09e056d to your computer and use it in GitHub Desktop.
Save luisprox/21dbd9c1916b0e4725acd151b09e056d to your computer and use it in GitHub Desktop.
[Monitor tcp traffic] How to monitor http requests using tcpflow #tcpflow #Linux

Installation

sudo apt install tcpflow

Monitor requests

Monitor get/post requests at port 80:

$ tcpflow -p -c -i eth0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*'

Reference

tcpflow website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment