CentOS7にfirewalldでWeb、DNSサービスを設定する方法

1.smtpサービス設定
#firewall-cmd –add-service=smtp –zone=public –permanent
#firewall-cmd –add-service=smtps –zone=public –permanent
#firewall-cmd –add-service=smtp-submission –zone=public –permanent
#firewall-cmd –add-service=imap –zone=public –permanent
#firewall-cmd –add-service=imaps –zone=public –permanent
#firewall-cmd –add-service=pop3 –zone=public –permanent
#firewall-cmd –add-service=pop3s –zone=public –permanent

2.dnsサービス設定
#firewall-cmd –add-service=dns –zone=public –permanent

3.http、httpsサービス設定
#firewall-cmd –add-service=http –zone=public –permanent
#firewall-cmd –add-service=https –zone=public –permanent

4.設定確認
#firewall-cmd –info-zone=public –permanent

Linux

Posted by arkgame