# Exit policy not working

**URL:** <https://forum.torproject.org/t/exit-policy-not-working/11548>\
**Category:** Relay Operator\
**Tags:** anti-censorship\
**Created:** [February 13, 2024, 2:37pm UTC](https://forum.torproject.org/t/exit-policy-not-working/11548 "2024-02-13T14:37:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cozybeardev](https://forum.torproject.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@cozybeardev](https://forum.torproject.org/u/cozybeardev)\
**Post date:** [February 13, 2024, 2:37pm UTC](https://forum.torproject.org/t/exit-policy-not-working/11548/1 "2024-02-13T14:37:57Z")

</div>

Hi,

I’m receiving reports from my hoster of smtp email spam. They provided traffic proof which showed traffic to port 465. How is this possible. My policies already block this for this very reason. Does anyone see anything badly configured here?

[https://metrics.torproject.org/rs.html#details/2F76402F04EE7AC80207A4B3B525B235673952AE](https://metrics.torproject.org/rs.html#details/2F76402F04EE7AC80207A4B3B525B235673952AE)

---

<div class="post-metadata">

**Author:** ![cozybeardev](https://forum.torproject.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@cozybeardev](https://forum.torproject.org/u/cozybeardev)\
**Post date:** [February 14, 2024, 8:46am UTC](https://forum.torproject.org/t/exit-policy-not-working/11548/2 "2024-02-14T08:46:42Z")

</div>

I’ll just deploy some iptables for now in parrallel. Ports are being on bypassed on at least 3 nodes now. Don’t ask me how. Perhaps the policy does not do what I expect it to do.

---

<div class="post-metadata">

**Author:** ![Vort](https://forum.torproject.org/user_avatar/forum.torproject.org/vort/32/63_2.png) [@Vort](https://forum.torproject.org/u/Vort)\
**Post date:** [February 14, 2024, 8:47am UTC](https://forum.torproject.org/t/exit-policy-not-working/11548/3 "2024-02-14T08:47:16Z")

</div>

I saw similar complaint some time ago:

> [@Why does a tor exit relay create outbound connection to destinations rejected by its exitpolicy?](https://forum.torproject.org/t/why-does-a-tor-exit-relay-create-outbound-connection-to-destinations-rejected-by-its-exitpolicy/4558):
>
> Really surprised to see tor create connections to destinations that are rejected by its exit policy. What other reasons are there for tor to create outbound TCP connections to port 443 if the destination IP is not allowed by the exit policy? The destination is not a tor relay.

---

<div class="post-metadata">

**Author:** ![cozybeardev](https://forum.torproject.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@cozybeardev](https://forum.torproject.org/u/cozybeardev)\
**Post date:** [February 14, 2024, 12:24pm UTC](https://forum.torproject.org/t/exit-policy-not-working/11548/4 "2024-02-14T12:24:56Z")

</div>

Mirrored my exit policy into iptables and has been deployed on all exits I run. We’ll see if that fixes anything. Not sure if Tor does creative routing like Docker does. Time will tell.

For those curious that want to replicate; [various fixes and tweaks · cozybear-dev/ansible-tor@ebac9f3 · GitHub](https://github.com/cozybear-dev/ansible-tor/commit/ebac9f38718e8ee86411da23767bd3b5c03d63ba#diff-19ec1efd2b615b629220eddedd0e65922932bd2253341ae1ef2028473149897b)
