How do i enable or disable ipv6 on ubuntu ufw netfilter firewall?



  • Man page for ufw.

    Note: The default on later Ubuntu versions of ufw is enabled by default.

    The /etc/default/ufw file is a high level configuration file, to change default policies, add IPv6 support and kernel modules.

    $ vi /etc/default/ufw
    

    Edit the section in file, change variable IPV6 to yes.

    # Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
    # accepted). You will need to 'disable' and then 'enable' the firewall for
    # the changes to take affect.
    

    IPV6=yes

    For disable change the variable to IPV6=no

    As the description says the firewall needs to be disabled and then enabled to take affect.


Log in to reply
 

© Lightnetics 2024