I set up a firewall with iptables and I have tried to block all netbios
ports.
I only want my firewall to dial up when I need access to the internet and
netbios seems to send out messages frequently.
I have blocked ports 137:139 on INPUT, OUTPUT, and FORWARD.
But I keep getting the following ethernet followed by dial up messages
(as seen by tcpdump):
14:24:19.519634 eth0 < rs.netbios-ns > 146.115.8.20.domain: 44+ A? HOME.
(34)
14:24:19.519634 ppp0 >
207-172-97-86.s86.apx1.sbo.ma.dialup.rcn.com.netbios-ns >
146.115.8.20.domain: 44+ A? HOME. (34)
If I understand the tcpdump man page well enough the ethernet message is
coming from
host rs at port netbios-ns. It is sent to the domain server with port
domain. It is
asking for the ip address of my HOME netbios area. This gets sent on through
ppp0
and of course the domain server returns NXDOMAIN every time.
I do have the following rules:
iptables -A INPUT -i eth0 --protocol udp --source-port 137:139 -j DROP
iptables -A INPUT -i eth0 --protocol tcp --source-port 137:139 -j DROP
I have also tried various other combinations with OUTPUT and FORWARD, always
dropping the 137:139 ports but those packets keep waking up my ppp dialer.
Does anyone know what I am doing wrong?
Thanks!!
Richard