How to block netbiosd?

General discussions about Little Snitch
takoateli
Posts: 5
Joined: Wed Oct 19, 2011 8:32 pm

How to block netbiosd?

Postby takoateli » Thu Oct 20, 2011 8:30 pm

I've tried the built in rules for blocking local ipv4 and ipv6 networks, I put in rules for blocking ports 137-139 and 445 and even a rule blocking netbiosd and still I can't block Netbios activity emanating from netbiosd. How can I stop that?

What I'd really like to do is make my computer invisible to other Mac OS X users. I know I can't hide from someone sniffing traffic.

Can anyone tell me how to block Netbios as well as other protocols used by Mac OS X to announce it's presence and share resources?

Greg

hagen
Wizard
Wizard
Posts: 571
Joined: Mon Feb 18, 2008 11:05 pm

Re: How to block netbiosd?

Postby hagen » Thu Oct 20, 2011 10:03 pm

Here are a few things you can try. See if they do what you want.

If you have a default rule for nmblookup, allowing connections to port 137 (netbios-ns), disable it and substitute a "deny any connection" rule for nmblookup.

See this page from Apple about setting mDNSresponder to not advertise services. http://support.apple.com/kb/HT3789

You can also disable the default "allow any connection" rule for mDNSresponder, and then allow only connections you need. Connections to your ISP's DNS servers, for example.

takoateli
Posts: 5
Joined: Wed Oct 19, 2011 8:32 pm

Re: How to block netbiosd?

Postby takoateli » Thu Oct 20, 2011 10:36 pm

Thanks so much! That's a great start!

I'll post my findings

Greg

takoateli
Posts: 5
Joined: Wed Oct 19, 2011 8:32 pm

Re: How to block netbiosd?

Postby takoateli » Thu Oct 20, 2011 11:18 pm

hagen wrote:Here are a few things you can try. See if they do what you want.

If you have a default rule for nmblookup, allowing connections to port 137 (netbios-ns), disable it and substitute a "deny any connection" rule for nmblookup.

See this page from Apple about setting mDNSresponder to not advertise services. http://support.apple.com/kb/HT3789

You can also disable the default "allow any connection" rule for mDNSresponder, and then allow only connections you need. Connections to your ISP's DNS servers, for example.


Hagen,

Thanks again! It's all quiet on the Western front now. I did set mDNSResponder not to advertise, and I had no rules for nmblookup, but I did have the default mDNSResponder allow-all rule which I disabled and I made a new rule for it to only allow our router's IP address since that's caching our DNS queries, it's that address that's given out for DNS in our DHCP leases.

Thanks!
Greg

hagen
Wizard
Wizard
Posts: 571
Joined: Mon Feb 18, 2008 11:05 pm

Re: How to block netbiosd?

Postby hagen » Fri Oct 21, 2011 12:42 am

I'm glad it worked!

BTW, are you running Lion or Snow Leopard? This is what I do on Snow Leopard, and I'm curious if Lion works the same way.

takoateli
Posts: 5
Joined: Wed Oct 19, 2011 8:32 pm

Re: How to block netbiosd?

Postby takoateli » Sun Oct 23, 2011 10:16 pm

I'm using Lion.

I'm not sure it's working as I'd like. I'm seeing a lot of mDNSResponder traffic to and/or from local network addresses. I only see incoming traffic on LS's traffic indicator but I know you don't always see low volume traffic on LS's traffic indicator.

If mDNSResponder was blocked completely would I still see incoming traffic?

Thanks!
Greg

hagen
Wizard
Wizard
Posts: 571
Joined: Mon Feb 18, 2008 11:05 pm

Re: How to block netbiosd?

Postby hagen » Mon Oct 24, 2011 3:04 pm

I don't think you can completely block mDNSResponder. It does DNS, and has something to do with local network traffic. But I don't have a network, or Lion, so I don't really know the details. Try it and see what happens.

LS preferences has a setting where you can choose to not show local network activity.

manfred
Objective Development
Objective Development
Posts: 562
Joined: Sat Jul 31, 2010 9:47 am
Location: Vienna
Contact:

Re: How to block netbiosd?

Postby manfred » Sun Oct 30, 2011 1:07 pm

takoateli wrote:If mDNSResponder was blocked completely would I still see incoming traffic?


Yes, because Little Snitch filters outgoing connections only. Be aware if you completely block mDNSResponder you will most likely end up with an unusable operating system.


Return to “Little Snitch General”

Who is online

Users browsing this forum: No registered users and 2 guests