I have a server which is being tested and not yet ready for public access, hence general traffic is blocked by ufw
.
I am trying to add some Google IP address ranges in the allowed rules which need to be on top of the other rules.
All the IPv4 addresses have been added fine, but when I try something like
sudo ufw insert 1 allow from 2c0f:fb50::/32 comment 'Google'
I get
ERROR: Invalid position '1'
.
I tried adding the same rule by not specifying a position and it is added correctly.
I also tried inserting an IPv4 rule in position 1 and that works too.
There's something that doesn't seem to work by using 'insert' and IPv6 in the same sentence.
Has anyone come across this before?