# How to stop/disable APF for five hours?

**URL:** <https://forums.interworx.com/t/how-to-stop-disable-apf-for-five-hours/13715>\
**Category:** General Discussion\
**Tags:** nodeworx, apf\
**Created:** [November 18, 2014, 5:50am UTC](https://forums.interworx.com/t/how-to-stop-disable-apf-for-five-hours/13715 "2014-11-18T05:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danialjose](https://forums.interworx.com/user_avatar/forums.interworx.com/danialjose/32/103_2.png) [@danialjose](https://forums.interworx.com/u/danialjose)\
**Post date:** [November 18, 2014, 5:50am UTC](https://forums.interworx.com/t/how-to-stop-disable-apf-for-five-hours/13715/1 "2014-11-18T05:50:00Z")

</div>

Please advise me how to stop APF for certain time (eg 5 hours). When I stop APF it stops, but it is restarting after 5 mins. Tried command terminal and nodeworx.

---

<div class="post-metadata">

**Author:** ![Licensecart](https://forums.interworx.com/user_avatar/forums.interworx.com/licensecart/32/26_2.png) [@Licensecart](https://forums.interworx.com/u/Licensecart)\
**Post date:** [November 18, 2014, 6:47am UTC](https://forums.interworx.com/t/how-to-stop-disable-apf-for-five-hours/13715/2 "2014-11-18T06:47:42Z")

</div>

That’s weird is it in debug mode? Debug mode restarts every 5 minutes.

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [November 18, 2014, 1:32pm UTC](https://forums.interworx.com/t/how-to-stop-disable-apf-for-five-hours/13715/3 "2014-11-18T13:32:12Z")

</div>

Hi danialjose

You should be able to stop firewall from nodeworx, server firewall

If it’s restarting, make sure you have autorestart set to off for firewall, otherwise it will auto restart when detected service stopped.

If this is set to off already, are you on a cluster, if so, you need to set at cluster master as above.

If all else fails, and your sure autostart is set to off, but nodeworx is not allowing you to stop firewall, ssh into server and run service iptables stop

You will have to reverse changes when you want firewall on

Michael, the debug mode does not restart firewall if service stopped I believe, it resets the tables in case of lockout. I could be wrong though sorry

Hope that helps

Many thanks

John
