UDP netbios nameserver packets blocked
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]
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,
Quoted 3 lines · Gáspár Lajos
Hello,
I think that you did not load the
nf_conntrack_netbios_nsmodule...
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]
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