domain httpd_t; # httpd_t can be server using port 80 and 443. allownet -protocol tcp -port 80,443 server; # httpd_t can use TCP/UDP 3306 service(MySQL) as client. allownet -protocol tcp,udp 3306 client; #Socket usage must be allowd to use port allownet -protocol tcp,udp use;