A
A
Alfieros2015-03-24 18:47:21
Nginx
Alfieros, 2015-03-24 18:47:21

The site runs on localhost, accessible to everyone except me via external IP. What to do?

Lighttpd is installed, ports are registered in ufw, ports are forwarded in DHCP on the router. The http virtual server is also raised on port 80 (by default). The site is accessible from outside by statics, even by domain. But I can't browse from my machine, neither the domain nor the external IP. At the expense of web platforms apache2, nginx, the situation is the same here. So I think that's not the point... The folders with the site are not located in the standard location, but the redirect is configured.
Here is the IP: 195.78.101.141
Maybe someone came across?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey Petrikov, 2015-03-24
@RicoX

Let's remember the basics of routing, how a packet from the world will go:
World -> Your router with an external IP -> here, inside the router, the rule of forwarding everyone who breaks from the world to a certain port is triggered, we forward to such and such a gray IP -> the site itself.
How the packet will go from you:
Your machine -> router -> oops, the input is not from the world, but from the local area and the forwarding does not work, the chain breaks.
The easiest option for the domain in the hosts file on your machine is to make a static entry with a gray server IP, on which the site is more complex and not on every router, make a forwarding rule if scr ip is your machine, and dst ip 195.78.101.141, then we wrap you to the desired gray IP port where the site is.

3
386DX, 2015-03-24
@386DX

127.0.0.1

S
ShamblerR, 2015-03-25
@ShamblerR

you gave the 80th port to the external device, what else did you want?

V
Vlad Zhivotnev, 2015-03-25
@inkvizitor68sl

Define "available to everyone but me". What's the error?
Most likely, if there is a router there or you didn’t cope with routing, you are simply not allowed to go to your own external IP (dlink, and almost everyone sins with this, for example).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question