CompTIA Server+ SK0-005 Practice Question
A systems administrator is troubleshooting why a newly deployed internal web service that listens on port 8443/TCP cannot be reached from other servers on the same VLAN. On the Ubuntu Server 22.04 host, the Java process is confirmed to be listening, and ufw status
shows that only ports 22/tcp and 80/tcp are currently allowed. Which single command should the administrator run on the server to restore connectivity while keeping the existing firewall policy intact?
sudo ufw allow 8443/tcp
sudo iptables -A INPUT -p tcp --dport 8443 -j DROP
sudo firewall-cmd --permanent --add-port=8443/tcp
sudo sysctl -w net.ipv4.ip_forward=1