Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.26 KB

challenge_009.md

File metadata and controls

54 lines (35 loc) · 1.26 KB

Uptime monitoring

Open Port 3030 for Diagnostic reporting

sudo iptables -L | grep 3030
# my result
> ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:3030

If you didn't get answer like me. You have to open port

sudo iptables -A INPUT -p tcp --dport 3030 -j ACCEPT

Save the config for server restarts

You can use one of the 2 solutions:

  • Using iptables-persistent
sudo apt install iptables-persistent
  • or if already installed
sudo dpkg-reconfigure iptables-persistent

Save config

iptables-save > /etc/iptables/rules.v4
ip6tables-save > /etc/iptables/rules.v6

Validate the port is open

You can create request to http://<YOUR IP>:3030/status by your browser or Postman, and see information like this:

img

Report:

scoreboard

⏮ Challenge 008 Challenge 011 ⏭