https://github.com/james-parky/fwsim
A command line tool for simulating a packet passing through a firewall.
https://github.com/james-parky/fwsim
firewall nft pcap python tcpdump tshark
Last synced: 2 months ago
JSON representation
A command line tool for simulating a packet passing through a firewall.
- Host: GitHub
- URL: https://github.com/james-parky/fwsim
- Owner: james-parky
- License: gpl-3.0
- Created: 2025-12-28T20:56:17.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-01-01T17:36:23.000Z (5 months ago)
- Last Synced: 2026-01-03T16:14:02.569Z (5 months ago)
- Topics: firewall, nft, pcap, python, tcpdump, tshark
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `fwsim`
A command line tool for simulating a packet passing through a firewall.
---
## TODO
- [ ] Parse NFT rules.
- [ ] Collect packets from `tshark` output in JSON.
- [ ] Take command line arguments for NFT ruleset file and packet file.
### Further Work
- [ ] Take packets from a JSON stream.
- [ ] Handle `tcpdump`, non-JSON `tshark`, and `pcap` outputs.
- [ ] Handle parsing FaC file formats other than NFT.
### Links
- [NFT](https://wiki.nftables.org/wiki-nftables/index.php/Main_Page)
- [Tshark Packet Format](https://tshark.dev/formats/)
- [`argparse`](https://docs.python.org/3/library/argparse.html)
- [`json`](https://docs.python.org/3/library/json.html)
- [`black`](https://pypi.org/project/black/)
- [`abc`](https://docs.python.org/3/library/abc.html)