Temporarily disabling the firewall for troubleshooting is generally safe. However, ensure you re-enable it after testing to maintain security.