Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

iptables_random

Mayur_Pipaliya Aug 16th, 2013 46 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. # Whitelist certain IP and block everything else on port 22
  2. iptables -A INPUT -p tcp --dport 22 -s <IP_1> -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 22 -s <IP_2> -j ACCEPT
  4. iptables -A INPUT -p tcp --dport 22 -j DROP
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top