Skillset can help you prepare! Sign up for your free Skillset account and take the first steps towards your certification.
Choose the correct answer which will add selinux context sshportt on port 2222
semanage port -a -t ssh_port_t 2222
semanage fcontext -a -t ssh_port_t -p tcp 2222
semanage port -a -t ssh_port_t -p tcp 2222
Just like files and directories, we can set Selinux rules on ports also. Ports are also monitored and secured by Selinux. It's a great way to ensure network ports are not compromised and no suspicious port is open to the world. We will need to use the 'port' option here instead of the 'fcontext' option. Then we would need the protocol option -p. Note that we need to define waether the port is TCP or UDP. Command: semanage port -a -t 'port context' -p 'type of port' 'port number' Command example: semanage port -a -t httpdportt -p tcp 8080
Study thousands of practice questions that organized by skills and ranked by difficulty.
Create a tailored training plan based on the knowledge you already possess.
Know when you’re ready for the high-stakes exam. Have the confidence that you will pass on your first attempt.