서버 방화벽 관리
[student@workstation ~]$ ssh student@servera
[student@servera ~]$ su -
[root@servera ~]# dnf install httpd mod_ssl
[root@servera ~]# echo 'I am servera' > /var/www/html/index.html
[root@servera ~]# systemctl enable --now httpd
[root@servera ~]# exit
[student@servera ~]$ exit
[student@workstation ~]$ curl http://servera.lab.example.com
[student@workstation ~]$ curl -k http://servera.lab.example.com => 안전하지 않은 사이트에 curl
[student@workstation ~]$ ssh student@servera
[root@servera ~]# systemctl status firewalld.service
[root@servera ~]# firewall-cmd --get-default-zone
[root@servera ~]# firewall-cmd --permanent --add-service=https
[root@servera ~]# firewall-cmd --permanent --zone=public --list-all
인터넷창에 httls://servera.lab.example:9090 입력
[root@servera ~]# exit
[student@servera ~]$ exit
[student@workstation ~]$ curl http://servera.lab.example.com
[student@workstation ~]$ curl -k http://servera.lab.example.com