![]() |
|
#1
|
||||
|
||||
|
Grateful for any help with understanding these entries from my firewall log:
I have the DNS client service running, and my DNS rules allow bidirectional UDP connections between svchost.exe and my ISP's two DNS servers on remote port 53. The blocked UDP connections in the log came from those DNS servers, and all within a six-second timespan. If I've got this right, then with the DNS client service, all DNS lookups are handled by svchost, so why the attempt to connect to Proxomitron? I checked my event log to see if the service had stopped running (I would guess that's unlikely), but no sign of that. I can't see that this has any security implications - after all, AFAIK I could disable the DNS client service and then individual applications would do DNS lookups themselves, rather than everything going through svchost - but I'm curious as to why it happened. |
|
#2
|
||||
|
||||
|
Why not just let any app send a UDP out port 53 to your dns servers since any app can access the dns service? What you are doing is not tightening up your security at all. As long as an app connects to only YOUR dns servers, that is what you want to happen. However, if you have a hijack which changes your dns servers and messes it up so all of the sites you type in(like www.google.com) will go to malware sites. So just specify only to your dns servers.
On the log issue, Proxo must be trying its own lookups or might be filtering something. Alphalutra1 |
|
#3
|
||||
|
||||
|
Quote:
As for allowing any application DNS access, I would advise against this since it could be abused by the DNSTester leaktest and malware using similar technqiues (making a recursive DNS query which involves using your ISP's DNS servers to relay information to the attacker's system). Restricting DNS access to trusted applications only will prevent this. |
|
#4
|
||||
|
||||
|
Thanks Paranoid2000. I see in your Outpost guide that you present as one option disabling the DNS client service, and creating DNS rules for individual applications.
I still don't understand why the DNS servers (the blocked inbound connections came from both of them) tried to contact Proxomitron. The DNS query would have been sent out by svchost, so wouldn't the reply have been sent to the local ports though which svchost communicates with those servers - regardless of the fact that it came late? I'm assuming that with the DNS client service running, svchost is the only application that makes DNS queries. Is that correct? Under my firewall rules it's the only application that's allowed UDP communications with the DNS servers. The rules would however have allowed Proxomitron to send TCP packets to those servers, but what I've read suggests that the use of TCP for DNS queries is rarer than hen's teeth. It might be helpful if I post my ruleset: As you can see, my outbound rules are on the lenient side. ![]() Alphaultra1 - thanks for your input, I know what you're saying, but I'm interested in learning how this works. |
|
#5
|
|||
|
|||
|
Quote:
Here, Kerio uses TCP occasionally, so I've set up a rule for it: See: DNS over TCP Other uses: DNS uses both UDP and TCP to send messages "Key Concept:.. Conventional message exchanges are "short and sweet" and thus well-suited to the use of the very fast UDP; DNS itself handles the detection and retransmission of lost requests. For larger or more important exchanges of information, especially zone transfers, TCP is used—both for its reliability and its ability to handle messages of any size." |
|
#6
|
||||
|
||||
|
Quote:
Quote:
Quote:
![]() |
|
#7
|
||||
|
||||
|
I'm afraid that is my complete ruleset - the rule that allows Proxomitron access is the 'allow outbound' rule, second up from the bottom. *sheepish grin*
I've been doing some more logging, which shows that svchost communicates with the DNS servers through random ephemeral ports; I've logged 1034, 1054, 1080, 1086, 1168, 1170, etc. Thanks for the links, Rmus. It looks like the only possible explanation for the log entries I posted is that when my computer wanted to use TCP for the DNS lookup, it used the process that initiated the DNS client service - in this case Proxomitron - rather than svchost. There may also have been TCP DNS requests from svchost; my ruleset already enabled the TCP connections you allow in your second 'Permit DNS' rule. I've looked through the Microsoft knowledge base to try and find out why the DNS client service would have used a process other than svchost, but haven't found anything, although I'm sure the information is in there somewhere. I've added some more rules to my ruleset; they don't permit anything new, but are purely for logging. It may take a few days to get any results. Thanks again, people. ![]() |
|
#8
|
|||
|
|||
|
Quote:
Instead of trying to guess - why not remove that rule and let Kerio prompt for your outbound attempts. You can create each rule as you are prompted. That's how I created the TCP rule for DNS. Then you will know what is needed for all outbound connections, including Proxomitron. This would include your applications - browser, email, etc. Then you are in more control of what ports/addresses are permitted, etc. |
|
#9
|
||||
|
||||
|
Quote:
Quote:
Quote:
|
|
#10
|
||||
|
||||
|
With my rules, the only way Proxomitron could have contacted the DNS servers would have been by using TCP. The log entries indicate that the servers tried to reply using UDP.
Rmus's rules suggest the same: queries can be sent out using TCP, with UDP replies received. I can't see how else to interpret this; are there other possible explanations I'm missing? |
|
#11
|
||||
|
||||
|
Quote:
Quote:
|
|
#12
|
||||
|
||||
|
Quote:
Thank you for setting out the options; that's helpful. I noted your earlier remark about checking the log; unfortunately that's not available, as at the time I'd only enabled logging for two rules in the set - the DNS alert and the final rule blocking all other outbound connections. Thanks again for your time. |
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|
|