[tor-relays] notices.log: "[warn] Rejecting DNS request from disallowed IP"
teor at riseup.net
Fri Nov 23 12:05:42 UTC 2018
> On 23 Nov 2018, at 21:20, petrarca at protonmail.ch wrote:
> on a small server I did try to force local DNS requests to the local Tor via iptables/ferm (Nat, Output-Chain, protocol udp dport domain REDIRECT to-ports 5300). Torrc has the following included: 'DNSPort 127.0.0.1:5300'.
> Unfortunately, it doesn't work as expected, but I get a warning in Tor's notices.log stating "[warn] Rejecting DNS request from disallowed IP" for each DNS request and even after hours of searching around and trying different configs I could't find the root cause yet.
This warning comes from the socks policy check:
> Question: what does "disallowed IP" really mean, i.e. what IPs are allowed by Tor and which ones are not? Any ideas and hints on how to investigate further are highly welcome! :-)
You're right, the documentation and logging isn't great here.
I opened a ticket to fix it:
Have you set the SocksPolicy option?
Set an entrance policy for this server, to limit who can connect to the SocksPort and DNSPort ports. The policies have the same form as exit policies below, except that port specifiers are ignored. Any address not matched by some entry in the policy is accepted.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Message signed with OpenPGP
More information about the tor-relays