Using UFW, if I create a rule, will it apply to both IPv4 and IPv6? [closed]
By David Jones •
Will UFW create the appropriate rules in both iptables and ip6tables?
11 Answer
It depends whether the rule you create is generic, such as
ufw allow 22/tcpor is specific to one address family, such as
sudo ufw allow from 192.168.1.0/24 to any port 22 proto tcpEx.:
$ sudo ufw allow from 192.168.1.0/24 to any port 22 proto tcp
Rule added
$ sudo ufw status numbered
Status: active To Action From -- ------ ----
[ 1] 22/tcp ALLOW IN 192.168.1.0/24 but
$ sudo ufw allow 22/tcp
Rule added
Rule added (v6)
$ sudo ufw status numbered
Status: active To Action From -- ------ ----
[ 1] 22/tcp ALLOW IN Anywhere
[ 2] 22/tcp (v6) ALLOW IN Anywhere (v6) 1 More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"