I don't have any exit relays, but my understanding is that you should use torrc, and only torrc, to define which outgoing ports you want to be reachable.
Do not block or otherwise interfere with anything which you allow in torrc, because that may get you the BadExit flag when discovered.
A Reduced Exit Policy[1] may be what you are looking for.
[1] https://trac.torproject.org/projects/tor/wiki/doc/ReducedExitPolicy
On 05/22/2016 03:34 PM, Markus Koch wrote:
If things go wrong (and with my luck they will) how many and which ports do I have to forward to be useful as a exit node?
eg: I get lots of abuse of port 22, can I close it and the TOR network will for itself find out that sending me ssh traffic is a bad idea?