iptables to play nice with tor and ntpd

Posted by directedition on Server Fault See other posts from Server Fault or by directedition
Published on 2010-05-13T03:21:22Z Indexed on 2010/05/13 3:24 UTC
Read the original article Hit count: 421

Filed under:
|
|

I'm setting up a server to operate as a tor relay and nothing else. I setup iptables to only allow talk on port 9001 and it worked fine, but there was an issue, the clock needs to be properly set and maintained for the relay to work properly, so I needed ntpd setup and running, but for some reason I can't get iptables to work as I want it. I'm trying to have it allow only tor and ntpd to talk over the network, but when I set it up to allow port 123 using udp, suddenly it ignores my -A OUTPUT ! -s 127.0.0.1 -j DROP and allows everything through. How should I go about this? Please excuse my ignorance, I've brand new to iptables.

© Server Fault or respective owner

Related posts about iptables

Related posts about tor