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


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
2 views
There is a LAN of a dozen computers. One of them on port 3000 hangs the web interface of mantis. It is perfectly open at 192.168.31.12:3000. As a method of Internet access in network is using ADSL modem DLINK with a static IP on which you have configured the forwarding port 3000 on the computer 192.168.31.12 — thus the required service is also available from the Internet at our static IP:3000.


But here's the problem: when one user gives another link to the bug tracker — he never knows where the second one this link will open — from local area or from the Internet. As a result, the links constantly have to change the internal IP address to external and Vice versa. The problem is compounded by the fact that the bugtracker sends mails with links to tasks, and these links are, again, working either from local area or from the Internet.


Could we set up something (a forvarding of ports, the routing, the modem, bugtracker) so one link (say, using a global static IP) the web interface was up and running in the local network and from the Internet?
by | 2 views

5 Answers

0 like 0 dislike
Configure name resolution and you will be happy. Banal way — on the modem to hang up something like dyndns, and on local machines to register the same name but with an internal IP in hosts.
You can of course cache DNS to configure in LAN, but this is like a microscope to hammer nails :)
by
0 like 0 dislike
Did not understand what a "global static" IP, how it differs from "our static IP" and why do You get! you can't access the Internet IPS.
by
0 like 0 dislike
To link the domain name to the external IP, and within the local area to prescribe it for internal IP in hosts (the easiest way)
by
0 like 0 dislike
Oops... accidentally set off comments... Continue:
\r
For ISC BIND is configured using directives view:
view "view_name" [class] {
[ match-clients { address_match_list }; ]
[ match-destinations { address_match_list }; ]
[ match-recursive-only { yes | no }; ]
// view statements
// zone clauses
};
\r
Not long ago it set up, but if the solution is suitable, I am willing to help with specific configuration file ;-)
by
0 like 0 dislike
As a solution to the problem, if You have your own DNS server on the Internet delegated to it by the zone, this DNS server are the clients in your local area, it is possible to configure it so that requests from a certain IP address block, he gave one address and the other with others.
by
110,608 questions
257,186 answers
0 comments
28,044 users