I have been using mitmproxy for filtering HTTP traffic. mitmproxy is simple and written in Python. It will start a new thread to handle every new HTTP request.
Here are some things I need to get from those request flows:
- URL
- parameters
- IP of the request
- MAC of the request
- parse the content and do some logistics
mitmdump is shipped from project mitmproxy and it works in command line. Extensively I used it in this way:
mitmdump -T -s ./my_written_request_handler.py
(it listens on port 8000, and I used iptables
to forward all HTTP traffic to this port)
I handled all the requests in this handler ./my_written_request_handler.py
, but I found it to be less efficient. Maybe because it's in Python!
So I want a new easy-efficient tool or framework to do this job.
Will a firewall do this job without proxy?