ssh – iptable rule to accept only streamyx users.

I got ssh brute force attack almost every day :p, which is almost all originated from somewhere outside malaysia (china, taiwan etc). A simple iptables rules that only allowed tcp traffic from streamyx IP range.

#iptables -P INPUT DROP
#iptables -A INPUT -p tcp --dport 80 -j ACCEPT
#iptables -A INPUT -p tcp --dport 22 -m iprange --src-range 60.0.0.0-60.255.255.255 -j ACCEPT


iptables – how to specify a range of ip address

iptables quick howto

Advertisements

Published by

paragasu

Different. In a good way

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