Home arrow Slackware arrow Protect LAN by blocking SMB traffic
Protect LAN by blocking SMB traffic  
Digg Reddit Ma.gnolia Stumble Upon Facebook Twitter Google Yahoo! MyWeb Furl" BlinkList Technorati Mixx Bookmark
Block windows file and print share and other traffic that could be also used to send viruses.

Add the following lines to your /etc/rc.d/rc.local file or to your firewall file (/etc/rc.d/rc.firewall for example).

# ------------------- iptables rules --------------------
iptables -A INPUT --protocol tcp --destination-port 135:139 -j DROP
iptables -A INPUT --protocol tcp --source-port 135:139 -j DROP
iptables -A INPUT --protocol udp --destination-port 135:139 -j DROP
iptables -A INPUT --protocol udp --source-port 135:139 -j DROP
iptables -A INPUT --protocol tcp --destination-port 445 -j DROP
iptables -A INPUT --protocol tcp --source-port 445 -j DROP
iptables -A INPUT --protocol udp --destination-port 445 -j DROP
iptables -A INPUT --protocol udp --source-port 445 -j DROP
# -------------------------------------------------------

 
Next >

Misc

Linux Tips

Polls

What is your favorite Linux Distribution ?