Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.