Problem with Port Forwarding / DMZ / UPnP

MrEnderkiller

Reputable
Mar 20, 2014
24
0
4,520
Hello and thanks to anyone who might take the time to read and help me with this problem. It might seem like you have read about this kind of problem a million times, but I have done my research before asking for help here, and have asked to many people with networking knowledge who weren't able to help me.
It is kind of the people who will try to help me, which is why I'll try to be as clear and precise as possible to make it easier for you to understand my situation without having to ask many questions.

Here is the situation.
I have a network which uses NAT. Therefore the devices connected on the local network get an IP address in the form of : 192.168.0.x
I have a computer with Linux that I want to leave on 24H a day. It has working VNC and SSH servers installed on it, so I am locally able to connect to these servers using the ip : 192.168.0.28 and the corresponding port (ex. 22 for SSH).
I have been wanting to access and control this computer from a device outside the local network, so through the internet. For this example I'll always talk about the SSH port (22) and my local IP address 192.168.0.28.

I already knew that what I needed was to forward port 22 to my computer, so that it would be accessible from the internet.
I setup Port Forwarding on my router's configuration page as shown on this screenshot :
1443201808-port-forwarding.png

My router is a Technicolor. I've hidden my External IP address for obvious reasons but I can assure you it is the correct one.
I had a little doubt as to why I would need to give my external IP address, but I put it anyways.
I saved the configuration and it showed up like shown on the picture, underneath the configuration settings in the form of a table.
I have verified all settings of my router to check for firewall settings (I have fully disabled firewall), as well as firewall settings on my computer.
When I tried to connect to my computer using SSH (so my external IP as the IP and port 22), I got a message telling me the connection timed out. Meaning that the external device's request isn't forwarded to my computer by the router correctly.
I also tried rebooting my router to make sure.

So, after this failure I tried something else I didn't know of but could work, simply enabling DMZ. I pointed this DMZ to my computer's local IP address, but this didn't work.
I tried as well enabling UPnP, but no result as well.

I can ping my External IP address from a device connected to the internet, everything seems to be working well.

I also tried forwarding other ports to different devices, but still doesn't work. Open Port checker utilities tell me the ports that I tried to forward are closed.


So, I really don't have any clue what I can do about this. I've tried many things, done research, asked people (including my ISP's technical service but they don't have a clue what Port Forwarding, DMZ or UPnP is).

It would be really nice to share your ideas on what I could have done wrong / could do about this.

Thanks in advance.
 
Solution


The router is assigned the external IP address, so you should not need to enter it in the port forwarding set up page. Try entering "0.0.0.0" instead.

You should check the router's status page to ensure it is assigned the correct external IP address.

Are you trying "When I tried to connect to my computer using SSH (so my external IP as the IP and port 22)" on your network? If the port is forwarded for the outside world, you can't use your external IP from the internal network. Do you have a cell phone with data or some free WIFI you could try from?
 

MrEnderkiller

Reputable
Mar 20, 2014
24
0
4,520


No don't worry I already tried this, doesn't work.




Tried it, doesn't work either. I also tried changing the local port just in case.
 

BuddhaSkoota

Admirable


The router is assigned the external IP address, so you should not need to enter it in the port forwarding set up page. Try entering "0.0.0.0" instead.

You should check the router's status page to ensure it is assigned the correct external IP address.

 
Solution

MrEnderkiller

Reputable
Mar 20, 2014
24
0
4,520


Woah! Setting the external IP address to 0.0.0.0 actually solved the problem! I'm so happy because I've had problems with port forwarding for years. Thank you really much for your time and help.