Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ipset create good_ips hash:net
- ipset add good_ips 8.8.8.8
- ipset add good_ips 192.11.155.0/24
- 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