Official Playground

PathViz Playground

PathViz is a small packet path visualizer for Linux. This playground is an Ubuntu VM with PathViz running next to a simple web server and a client that sends it requests.

PathViz playground: PathViz is a small packet path visualizer for Linux. This playground is an Ubuntu VM with PathViz running next to a simple web server and a client that sends it requests.
Machines & network
1 VM · 2 vCPU · 4GiB RAM
Playground host Internet NAT MASQUERADE local (bridge) 172.16.0.0/24 gw 172.16.0.1/24eth0
VM
vCPU ·
eth0
/
golang
About

PathViz is a small packet path visualizer for Linux. It shows which netfilter hooks (PREROUTING, INPUT, FORWARD, OUTPUT, POSTROUTING) and which stages inside them (raw, mangle, nat, filter) a packet crosses on the machine, live, in a web page.

This playground is a vanilla Ubuntu VM with Go preinstalled. The pathviz repo is cloned to ~/pathviz, built from the main branch, and started together with its local demo: a web server on port 8080 and a client that sends it a request every two seconds. The web UI is open on the right.

Use it to:

  • Watch packets cross the hooks. The demo requests go over the loopback interface, so every packet crosses OUTPUT, POSTROUTING, PREROUTING, and INPUT.
  • See what a firewall rule does. Add an iptables or nft rule in the terminal (e.g. sudo iptables -A INPUT -p tcp --dport 8080 -j DROP) and watch where the packets stop.
  • Trace your own traffic. Change the filter in the web UI, then use curl, ping, or a container to produce the packets.
  • Hack on PathViz. Modify the code, then run make demo-local LISTEN=0.0.0.0:7070 in ~/pathviz to rebuild and restart it.
Every playground includes
Learn more about playgrounds
Start
Settings