blocking netbios traffic using iptables
I have tried blocking 137:139 tcp/udp ports.
but it doesn't seem to work..
im trying the rules
iptables -A OUTPUT -o eth0 -p tcp --dports 137:139 -j DROP iptables -A OUTPUT -o eth0 -p udp --dports 137:139 -j DROP
actually I am running a win2k virtual machine inside a linux box.. and all i want is that vm shouldn't be able to locate other windows machines on the network by their name.
atul
Quoted 7 lines · On Tue, 29 Apr 2003 Mikel Bauer wrote :
or aka:
137 tcp
137 udp
138 udp
139 tcpand if you wanted to get picky, you could block active directory rpc
calls with 135 tcp
Quoted 28 lines
-- Mikel Bauer
406/586-1102
[email protected]Quoted 22 lines · Jean M. Bouchara
Quoted 5 lines
Hi..
can i block netbios traffic using iptables. if yes, how..thanks,
atulJust drop the packets to/form the following ports:
- netbios-n
- netbios-dgm
- netbios-ssn
- microsoft-ds
- winsQuoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe
linux-admin"
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe
linux-admin" in
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · atul garg
I have tried blocking 137:139 tcp/udp ports.
but it doesn't seem to work..im trying the rules
iptables -A OUTPUT -o eth0 -p tcp --dports 137:139 -j DROP iptables -A OUTPUT -o eth0 -p udp --dports 137:139 -j DROP
actually I am running a win2k virtual machine inside a linux box.. and all i want is that vm shouldn't be able to locate other windows machines on the network by their name.
Consider adding these rules:
iptables -A INPUT -i eth0 -p tcp --dports 137:139 -j DROP iptables -A INPUT -i eth0 -p udp --dports 137:139 -j DROP
Also, does the virtual machine use its own network access? Then you could be looking at a forwarding situation, where the W2K emulator talks through its own set of ports, so from the viewpoint of IPTABLES you have an "outside" system forwarding through the box. If so, add these rules:
iptables -A FORWARD -i eth0 -p tcp --dports 137:139 -j DROP iptables -A FORWARD -i eth0 -p udp --dports 137:139 -j DROP iptables -A FORWARD -o eth0 -p tcp --dports 137:139 -j DROP iptables -A FORWARD -o eth0 -p udp --dports 137:139 -j DROP
Alternatively, see what network ports are active in your box (/sbin/ifconfig) and add rules as appropriate.
--
X -> unknown; Spurt -> drip of water under pressure Expert -> X-Spurt -> Unknown drip under pressure.