Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. ipset create good_ips hash:net
  2.  
  3. ipset add good_ips 8.8.8.8
  4. ipset add good_ips 192.11.155.0/24
  5.  
  6. iptables -A INPUT -p udp --dport 53 -m set --match-set ! good_ips src -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement