daily pastebin goal
56%
SHARE
TWEET

iptables_random

Mayur_Pipaliya Aug 16th, 2013 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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