This one is puzzling me to no end. By using PuTTY (latest version) I was able to connect from Windows 10 to Ubuntu 18.04 via SSH (local network), and I've been doing it for over a year until it mysteriously stopped working for no apparent reason.
In the Ubuntu 18 machine the SSH service is loaded and running. Nmap shows local tcp port 22 is open.
In the Windows 10 machine, putty is getting connection timeout. Nmap shows remote tcp port 22 is filtered.
Actually, every single remote port (pointing to Ubuntu) is filtered. So other services, like VNC, that worked before, now doesn't.
Ubuntu's ufw and apparmor are disabled. I also flushed all iptables rules and left incoming and outcoming connections default to ACCEPT. I also turned off windows firewall/antivirus.
Ubuntu's tcpdump shows windows knocking on port 22, also iptables -A INPUT -s {windowsIP} -j LOG
shows the same thing. But there is not a single connection request in auth.log
I manually opened a port in Ubuntu using netcat: ls | nc -l -p 4000
And netstat -tulpn
confirms local tcp port 4000 is open and listening in all interfaces (0.0.0.0). Same result; Putty (in telnet mode for this test) gets timed out, and windows's nmap shows remote tcp port 4000 is filtered.
Lastly I directly connected the network card from one machine to the other, I configured static ip on both. The connection was established successfully and both machines can see and ping each other. Then I repeated all tests and got the same results.
Does anyone have any idea of what could be happening? All the clues point that there is something (recently installed) in the Ubuntu machine that is somehow blocking all the incoming connections, but I have no idea what. Thanks in advance.