Hello all! I have strange problem. I tried ssh to remote server from server from lan. I wasn't able to do this. There was an error "connection time out". Sshd service on remote server use 5688 port. After changing it to default 22 ssh connection worked. I tried on ufw enabled and added two rules (for ipv4 and ipv6) Code: ufw allow 22 and Code: ufw allow 5688 . It does not work. Then I tried on ufw disabled. Still nothing if sshd uses 5688. I checked iptables -S. With disabled ufw there wasn't any rules related with 5688 port but after enable ufw rules appeared. Still nothing, still ssh connection doesn't work. I tried disable ufw and use only iptables rules like below: Code: sudo iptables -A INPUT -p tcp --dport 5522 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT and Code: sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 2222 -j ACCEPT Neither first one nor second one did not help. Still unable to connect via ssh using port 5688. Of course after changing to 22 I am able to connect. Can anybody tell me what is wrong?