M
M
maqstein2019-07-25 15:08:52
Nginx
maqstein, 2019-07-25 15:08:52

Why can't port forwarding work?

I’m sitting on an ubuntu 18.04
router: on dsl-2640-u
I decided to show my friend the awesome site that I made, but I don’t have money for the server, so I’m doing it from my computer
, everything went well until I started forwarding ports. (I have a static ip address)
5d399a4f6cbaa239224925.png
postgres I included in this list for tests that also failed
when switching to an external ip, I was thrown to the router settings
checked the port through the
port was closed, opened it through the port trigger
5d399b5e9e0fa359259639.png
when switching again the same story,
I decided that the problem was in the Ubuntu firewall, but
sudo ufw status :
5d399c076ac62315330652.png
thought the ports were closed, but
sudo netstat -ntulp :
5d399c6e40463393134085.png
everything works on localhost
5d399d37269e0833812756.png
dhcp is configured
5d399e8722919855201670.png
what could be the problem?
PS Friend means everyone who has my external IP address

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
poisons, 2019-07-25
@poisons

Settings need to be done in the virtual server, triggered port is different.
The muzzle opens, because. By default, it listens on port 80.
Solution
1. Forward port 8080 from outside to internal 80. Give a friend a link like http:/1.1.1.1:8080
2. Search in the browser for the opportunity to move it to another port, let's say the same 8080.

O
oldhowl, 2019-07-25
@oldhowl

Run ngrok in console
Command - ngrok http 80
You will be given a link that a friend can follow. Ngrok creates a tunnel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question