Advertisement
Mayur_Pipaliya

iptables_random

Aug 16th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement