Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Install and open HTTP, HTTPS and SSH access in the system firewall

sudo yum install -y curl policycoreutils-python openssh-server perl

sudo systemctl enable sshd
sudo systemctl start sshd

sudo yum install firewalld -y
sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
Source by gitlab.com #
 
PREVIOUS NEXT
Tagged: #Install #open #HTTPS #SSH #access #system #firewall
ADD COMMENT
Topic
Name
9+4 =