How to disable firewall from console?

After the latest update to the firewall which reset many of my previous firewall settings, I am locked out of the FreePBX GUI. Is there a method of disabling the firewall from the console so that any misconfiguration of the firewall can be rectified before re-enabling it?