LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I in any way access an external static IP inside our LAN? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-in-any-way-access-an-external-static-ip-inside-our-lan-4175456115/)

TheIndependentAquarius 03-30-2013 02:38 AM

Can I in any way access an external static IP inside our LAN?
 
I used to access a particular webpage through:
Code:

http://localhost:8080/name/Name
Now, as I wished to access this webpage through a computer outside our
LAN, our IT people assigned a static IP to this computer of mine.

Now, when I try to access the following URL from my house, it works.
Code:

http://<staticIP>:8080/name/Name
Question:
Is it possible somehow to access that URL with the static IP inside our
office LAN?
How and why, please explain.

What more information should I present here?

openSUSE 11.4 64 bit

Ginola 03-30-2013 09:26 AM

This sounds like Network Address Translation (NAT) and IP forwarding has been configured.
[http://www.centos.org/docs/4/html/rh...-ipt-fwd.html].

You want to use an external IP address on the LAN? You would have to speak to the network guys about routing to the perimeter and back in.

Personally, I think a way better way of doing it is to configure DNS. Have external DNS point to the external address, and internal DNS pointing at the internal address. Then you have one address across the board...

jefro 03-30-2013 04:55 PM

"Is it possible somehow to access that URL with the static IP inside our
office LAN?
How and why, please explain."

That would depend on your topology and routing. Can't say but usually if a lan computer does have internet access it could also access a properly configured web page using either public or private IP addresses. It could depend on ports, ip addresses, firewalls, proxies, maybe even caches, dns, hostnames, and more.

Kind of unusual to put a port of 8080 to outside but not fully uncommon. Seems odd the company didn't tell you how to access it.

It would depend on too many things to say how unless you describe exactly your topology.

Is this some homework issue?

k3lt01 03-30-2013 05:21 PM

Quote:

Originally Posted by jefro (Post 4921792)
Seems odd the company didn't tell you how to access it.

I think there may be a case that the company is trying to stop people using the internet while at work for their own purposes. If it isn't they would have made it easy to access the web outside the LAN.

Quote:

Originally Posted by jefro (Post 4921792)
It would depend on too many things to say how unless you describe exactly your topology.

Which probably hasn't been divulged to the staff for the reason stated above

Somehow I wouldn't be surprised if this thread if answered contravenes LQ rule "Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed." There is a reason why external websites, or maybe the particular website you want to access, is not accessable. I'd be asking your IT staff why and get them to help you access it. The fact you appear to have not done this tells me this is something you probably shouldn't be doing and asking how to do it on LQ supports my suspicion that you are indeed breaking LQ rules.

TheIndependentAquarius 03-30-2013 09:44 PM

Quote:

Originally Posted by jefro (Post 4921792)
Kind of unusual to put a port of 8080 to outside but not fully uncommon.

Actually, there is a software named openGTS. They have provided that URL ending with
":8080/track/Track".
That opens the login page of openGTS. We now want to open that page outside our LAN
as well as from inside. For inside there is localhost, for outside we needed
static IP. Our IT people have given us this static IP for one month for testing. Well,
that 8080 port has been asked by the software to be used. So, I don't know if there
would be any way by which we can access that URL from outside without using 8080?

Quote:

Originally Posted by jefro (Post 4921792)
Seems odd the company didn't tell you how to access it.

In office we won't have any way of testing that static IP since it is not working on
the LAN.

IT people said that it is simply NOT possible to access that static IP inside the LAN,
but my senior thinks that it can be done so it should be done!
I don't know much about webservers so I thought of asking here.

Quote:

Originally Posted by jefro (Post 4921792)
Is this some homework issue?

:-/

Thanks for responding to you and Ginola. Will study your responses in detail later this
day.

Ginola 03-31-2013 03:18 PM

Quote:

Originally Posted by Anisha Kaul (Post 4921928)
IT people said that it is simply NOT possible to access that static IP inside the LAN,
but my senior thinks that it can be done so it should be done!
I don't know much about webservers so I thought of asking here.

Directly from the LAN, it cant, because they are on totally different subnets. The traffic needs to leave the LAN, hit the firewall somehow, invoke the LAN rule that they have set, and voila. Try a traceroute (tracert in windows-land) from your PC to the external IP and you'll see what I mean.

HTH.

jefro 03-31-2013 07:25 PM

The issue is still, can the lan access public IP addresses? Any address at all or is it air gap or fully disconnected or what? Is there some firewall/router inbetween lan and wan?

Normally people put an internal web page on their lan. Their lan also has access to the web. People might be able to contact that single server from either internal or external IP addresses but internal name would not translate to external addresses usually. Things like proxies may have some issues here also.

You could try telnet to that ip address with port 80 or 8080.


All times are GMT -5. The time now is 11:21 PM.