Home · Latest · Trends  /  Plain Text
3

SSH IPTables command to block IP Address

rated 3 times [  3] [ 0]  / comments: 0 / hits: 474  / 1 year ago, tue, feb 27, 2018, 09:41:12
[my@server ~]# iptables -A INPUT -s x.xx.xx.xx -p tcp --dport 25 -j REJECT
[my@server ~]# service iptables save
[my@server ~]# service iptables restart
More From » Plain Text
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
Install SpamAssassin and Exim on a CentOS
3 years ago, thu, sep 8, 2016
Common SSH commands for CSF [ConfigServer]
2 years ago, wed, dec 28, 2016
Simple CSS javascript social share buttons
2 years ago, tue, jan 3, 2017
Basic ClamAV antivirus engine SSH command line commands
2 years ago, thu, jan 19, 2017
How to leverage browser caching with htaccess
2 years ago, sat, jun 10, 2017
CSF / LFD block force attacks on Exim Centos
2 years ago, mon, jun 26, 2017
Basic SSH Exim mail queue commands
2 years ago, sat, sep 2, 2017
1 year ago, wed, feb 28, 2018
Posted
paki

paki

Member since Sep 7, 2016
Total Code Snippets: 10
Total Comments: 0
Location: n/a
Following
User not following anyone yet.