Live Journal

All About Log

iptables block Worm

iptables -A INPUT -p udp -m udp --dport 53 -j DROP
iptables -A INPUT -p udp -m udp --dport 135 -j DROP
iptables -A INPUT -p udp -m udp --dport 137 -j DROP
iptables -A INPUT -p udp -m udp --dport 138 -j DROP
iptables -A INPUT -p udp -m udp --dport 139 -j DROP
iptables -A INPUT -p udp -m udp --dport 65535 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 53 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 135 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 137 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 138 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 139 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 65535 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 65535 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 53 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 135 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 137 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 138 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 139 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 65535 -j DROP
iptables -A OUTPUT -p udp -m udp --dport 53 -j DROP
iptables -A OUTPUT -p udp -m udp --dport 135 -j DROP
iptables -A OUTPUT -p udp -m udp --dport 137 -j DROP
iptables -A OUTPUT -p udp -m udp --dport 138 -j DROP
iptables -A OUTPUT -p udp -m udp --dport 139 -j DROP
iptables -A OUTPUT -p udp -m udp --dport 65535 -j DROP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: