Day 13 - 100 DAYS DEVOPS

We have one of our websites up and running on our Nautilus infrastructure in Stratos DC. Our security team has raised a concern that right now Apache’s port i.e 6200 is open for all since there is no firewall installed on these hosts. So we have decided to add some security layer for these hosts and after discussions and recommendations we have come up with the following requirements:

  1. Install iptables and all its dependencies on each app host.
  2. Block incoming port 6200 on all apps for everyone except for LBR host.
  3. Make sure the rules remain, even after system reboot.

I understantend I need the root password to install iptables but what is that?
I’ve tried caleston123 but that’s wrong.

[sudo] password for steve:
Sorry, try again.

Can someone help me with that? Thank you.

Hi @Dalton

On Kodekloud Engineer tasks, when you open the lab, you can click on the link provided on the top right of the lab, which provides all the infrastructure details that are used on KKE labs.

For this particular task, you need to install and configure IPTables on all app servers, i.e stapp01, stapp02, and stapp03.

Hello Santosh, thank you for ask.

My question is about user privilegies. I can’t install using tony, steve or banner users. So, I think I need to do this task with root user but I don’t have its password. I already tried caleston123 but it didn’t work.

The user has sudo permissions, allowing privilege escalation to root via sudo. So you can use the same password used to SSH into that particular app server.

For example, for tony it would be Ir0nM@n.

Thank you very much Santosh.

It worked perfectly.