setsebool -P httpd_can_network_connect 1

Category: Security & Hardening

setsebool -P httpd_can_network_connect 1

Enable an SELinux boolean persistently

Turns on httpd_can_network_connect, which lets Apache open outbound network connections, and -P makes it survive reboots. Booleans are SELinux's switches for common policy choices. See the full list with getsebool -a.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.