Linux Netfilter discussions
 help / color / mirror / Atom feed
* UDP netbios nameserver packets blocked
@ 2008-12-09  0:39 Knute Johnson
  2008-12-09 10:38 ` Gáspár Lajos
  0 siblings, 1 reply; 4+ messages in thread
From: Knute Johnson @ 2008-12-09  0:39 UTC (permalink / raw)
  To: netfilter

I have the following line in my iptables configuration;

-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

When I use the smbclient command, it attempts a DNS lookup, which fails 
as it should, then does a netbios nameserver lookup.  The response is 
getting blocked with the last line in my configuration;

-A INPUT -j REJECT --reject-with icmp-host-prohibited

I can make it work if I put in the following;

-A INPUT -p udp --sport 137 -j ACCEPT

but I thought the top line should have allowed the response to pass 
through.  It is coming back on the same port as it was sent on.

Any insight would be appreciated.

Thanks,

-- 

Knute Johnson
knute2008@www.knutejohnson.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UDP netbios nameserver packets blocked
  2008-12-09  0:39 UDP netbios nameserver packets blocked Knute Johnson
@ 2008-12-09 10:38 ` Gáspár Lajos
  2008-12-09 18:38   ` Knute Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Gáspár Lajos @ 2008-12-09 10:38 UTC (permalink / raw)
  To: Knute Johnson; +Cc: netfilter

Hello,

I think that you did not load the nf_conntrack_netbios_ns module...

Just to be clear: DNS != NETBIOS NS !!!

Swifty

Knute Johnson írta:
> I have the following line in my iptables configuration;
>
> -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
>
> When I use the smbclient command, it attempts a DNS lookup, which 
> fails as it should, then does a netbios nameserver lookup.  The 
> response is getting blocked with the last line in my configuration;
>
> -A INPUT -j REJECT --reject-with icmp-host-prohibited
>
> I can make it work if I put in the following;
>
> -A INPUT -p udp --sport 137 -j ACCEPT
>
> but I thought the top line should have allowed the response to pass 
> through.  It is coming back on the same port as it was sent on.
>
> Any insight would be appreciated.
>
> Thanks,
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UDP netbios nameserver packets blocked
  2008-12-09 10:38 ` Gáspár Lajos
@ 2008-12-09 18:38   ` Knute Johnson
  2008-12-12 12:42     ` Gáspár Lajos
  0 siblings, 1 reply; 4+ messages in thread
From: Knute Johnson @ 2008-12-09 18:38 UTC (permalink / raw)
  To: Gáspár Lajos; +Cc: netfilter

Gáspár Lajos wrote:
> Hello,
> 
> I think that you did not load the nf_conntrack_netbios_ns module...

You're right!

> Just to be clear: DNS != NETBIOS NS !!!

I do know that.  That was why I was surprised that DNS worked and NBNS 
didn't.

Can you point me to a list of the modules what they do?

Thanks very much,

-- 

Knute Johnson
knute2008@www.knutejohnson.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UDP netbios nameserver packets blocked
  2008-12-09 18:38   ` Knute Johnson
@ 2008-12-12 12:42     ` Gáspár Lajos
  0 siblings, 0 replies; 4+ messages in thread
From: Gáspár Lajos @ 2008-12-12 12:42 UTC (permalink / raw)
  To: Knute Johnson, Netfilter list

Hello,

Knute Johnson írta:
> Can you point me to a list of the modules what they do?
>
> Thanks very much,
Every nf_conntrack* module extends the whole conntracking subsystem.
The name tells you the protocol.

Check your modules directory

Swifty


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-12 12:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09  0:39 UDP netbios nameserver packets blocked Knute Johnson
2008-12-09 10:38 ` Gáspár Lajos
2008-12-09 18:38   ` Knute Johnson
2008-12-12 12:42     ` Gáspár Lajos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox