-
Used
ss,nmapto see open ports. -
Used
ufwto allow and disallow http traffic and seen the updated rules iniptables -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
nmapfrom 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 withsudo 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/tcpandsudo 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.
- How to Log Linux IPTables Firewall Dropped Packets to a Log File
- Firewalling with iptables - One approach
- 12 ss Command Examples to Monitor Network Connections
- UFW - Uncomplicated Firewall
- Collection of basic Linux Firewall iptables rules
- 10 Netstat Command Example
- UFW Uncomplicated Firewall
- How to install nftables in Ubuntu