# FirewallD does not autostart at boot time

**URL:** <https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647>\
**Category:** Help! (Home for newbies)\
**Created:** [May 5, 2023, 12:43pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647 "2023-05-05T12:43:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramones79](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@ramones79](https://forum.virtualmin.com/u/ramones79)\
**Post date:** [May 5, 2023, 12:43pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/1 "2023-05-05T12:43:29Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu 22 LTS |
| Virtualmin version | Latest |

FirewallD does not autostart at boot, even when Autostart at boot is enabled.  
If I start it manually, after boot - it does start.

How to fix this and what could be the root cause?  
Thanks.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [May 5, 2023, 2:26pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/2 "2023-05-05T14:26:53Z")

</div>

Sorry… perhaps @joe can help you…

---

<div class="post-metadata">

**Author:** ![mygeek911](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mygeek911/32/6285_2.png) [@mygeek911](https://forum.virtualmin.com/u/mygeek911)\
**Post date:** [May 6, 2023, 10:22pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/3 "2023-05-06T22:22:01Z")

</div>

@ramones79, post your `/var/log/firewalld` log.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [May 6, 2023, 10:36pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/4 "2023-05-06T22:36:53Z")

</div>

Is it actually enabled?

```auto
systemctl status firewalld

```

---

<div class="post-metadata">

**Author:** ![ramones79](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@ramones79](https://forum.virtualmin.com/u/ramones79)\
**Post date:** [May 16, 2023, 2:25pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/5 "2023-05-16T14:25:21Z")

</div>

It is, but the behaviour is rather erratic. The previous time, when I rebooted few days back, it autostarted. And I thought it is ok now.  
But today, after updates, I’ve rebooted again ,and this time FirewallD did not autostart, despite it is enabled to autostart.  
I had to start it manually.

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [May 16, 2023, 2:31pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/6 "2023-05-16T14:31:40Z")

</div>

I get this too, which then messes up fail2ban … and to be fair I can not see why it does not start but this will be an OS problem & not a virtualmin problem

---

<div class="post-metadata">

**Author:** ![ID10T](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/id10t/32/7895_2.png) [@ID10T](https://forum.virtualmin.com/u/ID10T)\
**Post date:** [May 16, 2023, 3:06pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/7 "2023-05-16T15:06:49Z")

</div>

I’ve read in at least one place that seemed credible that firewalld didn’t really ‘play too well’ with Debian yet. I was following a tutorial of sorts and was getting frustrated that I wasn’t getting the output expected.

Specific example. Even after I set eth0 to the public zone the interfaces line showed up blank in this listing.

> root@main:~# firewall-cmd --list-all --zone=public  
> public (active)  
> target: default  
> icmp-block-inversion: no  
> interfaces: eth0

So, I reran the command and it informed me it was already active in the zone. It shows up now. Maybe a reload of firewalld? Don’t really know. But, on on hand it did recognize it was active and appeared to be working but it didn’t display it as such in the command above.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [July 15, 2023, 3:07pm UTC](https://forum.virtualmin.com/t/firewalld-does-not-autostart-at-boot-time/120647/8 "2023-07-15T15:07:08Z")

</div>

Closed on July 15, 2023, 3:07pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
