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

Ubuntu provides some good information on how to enable UFW and on how to enable IPv6 with miredo:

But what is missing is information on how to properly configure UFW to let Miredo work, as as soon as I enable UFW IPv6 stops working:

$ ufw disable
$ ping6
PING 56 data bytes
64 bytes from 2a00:1450:8004::93: icmp_seq=1 ttl=56 time=1886 ms
$ ufw enable
$ ping6
PING 56 data bytes
ping: sendmsg: Operation not permitted

So how do I properly configure both Miredo and UFW together that basic IPv6 is working, but with all other incoming traffic being blocked?

share|improve this question
up vote 7 down vote accepted

IPv6 is disabled by default in current released versions of ufw. To enable, edit /etc/default/ufw to have:


You will also need to reload the ruleset. On newer releases of Ubuntu:

sudo ufw reload

On older releases of Ubuntu, you can restart with:

sudo /etc/init.d/ufw restart
share|improve this answer

IPv6 support in UFW has to be explicitly enabled by editing /etc/default/ufw and changing IPv6=no to IPv6=yes.

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.