Curl and SELinux

Hello Fedora community,

I’m using the following fail2ban config for sending Slack notifications.

The curl return 0curl: (7) Couldn’t connect to server".

SELinux is blocking the connection, how can I allow it?

type=AVC msg=audit(1610478757.252:1101): avc: denied { name_connect } for pid=20862 
comm="curl" dest=443 scontext=system_u:system_r:fail2ban_t:s0 
tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=1
1 Like

Hi,

The solution given here, may help:

Thanks Tom.

Thanks for helping, the linked solutions is more specific than the nis_enabled thing. I will try it.
The default value for nis is off?