Skip to contentSkip to conversation

UDP netbios nameserver packets blocked

DISCUSSION Knute Johnson 2 participants 4 messages Dec 9, 2008 – Dec 12, 2008

lore
Share & tools
lore
#0 lore raw

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,

Signature · 2 lines
Knute Johnson
[email protected]
#1 lore raw

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:

Quoted 18 lines

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,

#2 lore raw
Quoted 3 lines · Gáspár Lajos

Hello,

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

You're right!

Quoted 1 line

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,

Signature · 2 lines
Knute Johnson
[email protected]
#3 lore raw

Hello,

Knute Johnson írta:

Quoted 3 lines

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