T
T
tangro2010-11-21 17:32:56
System administration
tangro, 2010-11-21 17:32:56

Access to the local web server using the same links from the local area and the Internet?

There is a local area network from ten computers. On one of them, on port 3000, there is a bug tracker web interface. It opens fine at 192.168.31.12:3000 . As a way to access the Internet on the network, a DLINK ADSL modem with a static IP is used, which is configured to forward port 3000 to the computer 192.168 .
But here's the problem: when one user gives another a link to a bugtracker, he never knows where the second one will open this link from - from local or from the Internet. As a result, in the links you constantly have to change the internal IP address to the external one and vice versa. The problem is exacerbated by the fact that the bug tracker sends emails with links to tasks, and these links, again, work either from the local area or from the Internet.
Is it possible to somehow configure something (port forwarding, routing, modem, bug tracker) so that one link (say using a global static IP) opens the web interface both on the local network and from the Internet?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
divanikus, 2010-11-21
@divanikus

Set up name resolution and you will be happy. The most banal way is to hang something like dyndns on the modem, and on local machines write the same name but with an internal IP in hosts.
Of course, you can also set up a caching DNS in LAN, but it's like hammering nails with a microscope :)

S
StrangeAttractor, 2010-11-21
@StrangeAttractor

I didn’t understand what a “global static IP” is, how it differs from “our-static-IP” and why you cannot access an Internet IP address from your local area.

V
Vladimir Chernyshev, 2010-11-21
@VolCh

Bind the domain to an external IP, and inside the locale register it to the internal IP in hosts (the easiest way)

A
Alexander, 2010-11-21
@bagger

Oops... accidentally posted a comment... Continued:
For ISC BIND, this is configured using the view directive:
view "view_name" [class] {
[ match-clients { address_match_list }; ]
[ match-destinations { address_match_list }; ]
[ match-recursive-only { yes | no}; ]
// view statements
// zone clauses
};
I haven’t set it up for a long time, but if the solution is suitable, then I’m ready to help with a specific config ;-)

A
Alexander, 2010-11-21
@bagger

As a solution to the problem, if you have your own DNS server on the Internet with a zone delegated to it, and your local clients use this DNS server, then it is possible to configure it in such a way that it gives one addresses, and from the other - others.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question