I’ve been using the Logitech G502 Hero for almost 4 years now. It’s incredibly popular and for good reason. Lately, mine has been missing clicks and doing strange things. Something was up with the switches, but the rest of the mouse was still in good shape. So, I decided to swap out the Omron D2FC-F-K switches with some Kailh GM 8.0s. These were out of stock everywhere except Kushcables.

I mostly followed this video for disassembly. I was a bit concerned about having to buy another set of skates as I’ve read multiple people complain about how it’s impossible to reuse them. But I was able to reuse mine. I had to heat them quite a bit before pulling them off.

--

--

Port knocking is a security technique used to secure servers. Connection is attempted to a sequence of ports to open or close an application/service port.
UFW (Uncomplicated Firewall) is available on all recent Ubuntu versions.

knockd installation:

apt install knockd

knockd configuration file:

/etc/knockd.conf

[options] UseSyslog [SSH] sequence = 7000,8000,9000 seq_timeout = 5 start_command = ufw allow from %IP% to any port 22 tcpflags = syn cmd_timeout = 10 stop_command = ufw delete allow from %IP% to any port 22

The sequence for opening port 22 is 7000–8000–9000. The SSH port will be open for 10 seconds before it is closed again. SSH access is enabled only for the IP which is knocking.
The ports in the knocking sequence should be allowed in the firewall first.

--

--