Virtual Machine Preparation
Request OpenShift 4 Client VM from labs.opentlc.com
prepare vm You'll get an email after VM gets provisioned successfully. SSH to VM with the credential in the mail.
prepare vm After login to VM, switch to root user with this command.
sudo -i
Verify if podman is installed.
podman version
Sample output:
Version: 1.6.4 RemoteAPI Version: 1 Go Version: go1.12.12 OS/Arch: linux/amd64
Install firewalld with this command so you can configure firewall rule.
yum install -y firewalld
Start firewalld service with this command.
systemctl start firewalld
Verify if firewalld service started successfully.
systemctl status firewalld
Sample output:
● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2022-10-25 15:39:44 UTC; 49min ago Docs: man:firewalld(1) Main PID: 30795 (firewalld) CGroup: /system.slice/firewalld.service └─30795 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid
Allow incomming traffic on port 80.
firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reload
Last updated