or-ctl-sieve - granular bidirectional control port filtration https://github.com/david415/or-ctl-sieve
or-ctl-sieve does what it says on the tin and comes with a handy config file that we use with arm (tor-arm): https://github.com/david415/or-ctl-sieve/blob/master/tor-arm-filter.json
I wrote this in Tubes... the new async message passing API for twisted... and this caused me to draw the this ASCII diagram of the flow graph:
https://github.com/david415/or-ctl-sieve/blob/master/or_ctl_sieve/sieve.py#L...
cheers, david