A simple web-based viewer for visualizing iptables -L -n -v output.
Paste your iptables rules into the app, and it will display chains, rule cards, ports, jump targets, and source IPs in a more readable layout.
- Paste
iptables -L -n -voutput directly into the page - View chains such as
INPUT,OUTPUT,FORWARD, and custom chains - Highlight destination ports such as
22,80,443, and8080 - Follow jump targets such as
JUMP -> MY_CHECK - Display source IPs in a separate panel
- Open rule details in a popup
- Sort rules by packet count
- Node.js
- npm
npm installnpm startThen open:
http://localhost:3000
- Run the application
- Paste the output of
iptables -L -n -v - Click Parse
- Review chains, rules, ports, and source IPs
- Click a rule card to view details
- Click a jump rule to move to the target chain
Chain INPUT (policy DROP 15 packets, 900 bytes)
pkts bytes target prot opt in out source destination
2500 180k ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
8500 620k ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
450 28000 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
120 7200 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
80 4800 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
55 3300 MY_CHECK tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
Chain MY_CHECK (1 references)
pkts bytes target prot opt in out source destination
10 600 LOG_AND_DROP all -- * * 192.168.1.50 0.0.0.0/0
45 2700 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain LOG_AND_DROP (1 references)
pkts bytes target prot opt in out source destination
10 600 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 4 prefix "IPTABLES DROP: "
10 600 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
iptables-rule-viewer/
├─ package.json
├─ package-lock.json
├─ server.js
└─ public/
├─ index.html
├─ style.css
└─ app.js
- This tool is designed for pasted text input
- It does not modify firewall rules
- It currently focuses on
iptables -L -n -vstyle output - Parsing is intentionally simple and aimed at readability
- Support for
iptables-save - Better rule relationship visualization
- Filtering by target, port, or source IP
- Summary cards for DROP / ACCEPT / LOG counts
- Export and share parsed views
MIT
