Port Forwarding keep my port closed

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
stasbar
Posts: 2
Joined: Tue Jun 27, 2017 8:00 am

Port Forwarding keep my port closed

Post by stasbar »

Hello,
I have small server in my house.
I'm able to connect to it via SSH from other devices in my LAN.
The problem is that when I try to connect to the server from outside my network. I get Connection Refused.
My port forwarding looks like this:

Protocol: TCP
From: 2022 (so it doesn't collapse with router ssh)
IP: 192.168.1.127
To: 22

Then from outside the network:
ssh 178.xx.xx.238 -p 2022
give me:
ssh: connect to host 178.xx.xx.238 port 2022: Connection refused

nmap 178.xx.xx.238 -p 2022
give me:
PORT STATE SERVICE
2022/tcp closed down

What am I doing wrong ?

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Port Forwarding keep my port closed

Post by ispyisail »

need a network diagram

does your ISP setup allow ports to be forward to your router?

Post Reply