Home:ALL Converter>AllowZoneDrifting - Firewalld: What is it and should I disable it?

AllowZoneDrifting - Firewalld: What is it and should I disable it?

Ask Time:2020-04-24T14:19:07         Author:Manohar Bhatia

Json Formatter

I am new here, so please forgive me if I am asking something silly.

I have created a DO droplet on CentOS 8. After installing firewalld, I checked its status and it gives a warning.

Apr 24 05:56:31 centos-s-1vcpu-1gb-blr1-01 firewalld[2956]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release.

I have some basic knowledge of Linux, but I don't have any knowledge about firewalld. If somebody could explain to me what AllowZoneDrifiting is, that would be great.

Thanks!

Author:Manohar Bhatia,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61402334/allowzonedrifting-firewalld-what-is-it-and-should-i-disable-it
hein sat :

No. That is a good question. You can disable it in /etc/firewalld/firewalld.conf. Search for AllowZoneDrifting in this conf and change yes to no.\nFrom the manual:\n\nOlder versions of firewalld had undocumented behavior known as "zone drifting". This allowed packets to ingress multiple zones - this is a violation of zone based firewalls. However, some users rely on this behavior to have a "catch-all" zone, e.g. the default zone. You can enable this if you desire such behavior. It's disabled by default for security reasons.\nNote: If "yes" packets will only drift from source based zones to interface based zones (including the default zone). Packets never drift from interface based zones to other interfaces based zones (including the default zone).\nPossible values; "yes", "no". Defaults to "yes".\n",
2020-05-10T19:04:02
erig :

firewalld maintainer speaking.\nIn firewalld, and other zone based firewalls, a packet should ingress one and only one zone. Zone drifting violates that principle.\nAllowZoneDrifting should be disabled if possible (as indicated by the log). Upstream firewalld defaults to no, but some Linux distributions override it to yes to preserve existing behavior. Some users rely on the "fall through" behavior even if its correctness is questionable.\nSee the upstream blog for more information and a list of bugs that were the motivation for fixing zone drifting.",
2021-12-07T14:31:10
yy