Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Are there any IP blocking applications or firewalls that support IPv6?

The ones I know about (pgld, moblock (sunset?) , nfblock, iplist (looks old)) are only for IPv4.

share|improve this question
add comment

1 Answer 1

Uncomplicated Firewall (ufw) runs over IP tables and handles this very well.

sudo ufw deny from 2001:db8::/32 to any

Will deny all traffic from the IPv6 subnet 2001:db8::/32. You can also select ports and protocols to deny, if you need that granularity. As always, see the man page for additional options.

ufw is in the repos, so you can install it with sudo apt-get install ufw.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.