Skip to content
This repository was archived by the owner on Mar 19, 2022. It is now read-only.

Latest commit

History

History
25 lines (19 loc) 路 2.02 KB

File metadata and controls

25 lines (19 loc) 路 2.02 KB

Day 9

Notes

  • Used ss, nmap to see open ports.

  • Used ufw to allow and disallow http traffic and seen the updated rules in iptables -L | grep http

  • Checked that http://192.168.225.26 did not display the webpage after denying http traffic using ufw.

  • Also checked open ports of Ariana and Pavilion and my phone using nmap from a device other than which is to be checked for (though u/snori74 said not to do so). But since, my network is a private one, I thought to check.

  • Changed ssh to listen on port 2002 rather than on default 22 in /etc/ssh/sshd_config. Then restarted the ssh daemon with sudo systemctl reload-or-restart ssh. But closed the current connection to Ariana after doing so, and forgot to update the rule for the changed ssh port in ufw.

  • So, I had to log in to the Virtual Box machine and update the rule to allow traffic on port 2002 sudo ufw allow 2002/tcp and sudo ufw enable.

  • Then I could log in to Ariana from Pavilion by ssh haiji@192.168.225.26 -p 2002. 馃槈

  • Note that ssh command uses -p (lowercase) while scp, sftp use -P (uppercase) for port option.

Readings