I recently installed openwrt (OpenWrt 22.03.3 r20028-43d71ad93e
) to my Xiaomi 4A Gigabyte edition. Before I used to be able to open a ssh tunnel to my personal VPS from my laptop (Ubuntu 18), after installing the openwrt on my router, I can open the same ssh tunnel however the connection drops after a short time (a few seconds up to 1 or 2 minutes).
The problem is the same when the laptop connects via LAN or Wifi.
I installed openwrt on my router to be able to open ssh tunnel from the router itself, but now I can't open the tunnel neither from laptop nor from openwrt (the connection drops from openwrt as well).
I already tried some ssh configs such as ServerAliveInterval
and ServerAliveCountMax
but they didn't help out.
I believe the problem might be from openwrt settings or firewall rules, because everything used to work fine before installing openwrt.
Does someone know from where the problem might be? Is there any rule/settings that might drop the ssh connection? any specific rule should be added to firewall?