Answer the question
In order to leave comments, you need to log in
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
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 :)
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.
Bind the domain to an external IP, and inside the locale register it to the internal IP in hosts (the easiest way)
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 ;-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question