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
Top