Solved

Intranet - access from Internet

Posted on 2006-06-20
4
250 Views
Last Modified: 2012-05-05
Hi.
A client of mind is asking that I create a password protected login page on their website that leads to the company intranet.

As far as I'm aware this is not possible - to access an intranet from the internet unless using a VPN connection or Firewall.

Could someone advise? If this is possible - the steps involved.

Thanks.

Al


0
Comment
Question by:myrepublic
  • 2
4 Comments
 
LVL 15

Expert Comment

by:deepaknet
Comment Utility
I think you can configure Reverse Proxy or FireWall rule so that external users can access intranet through a specified URL on the Firewall/Proxy server.
0
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 400 total points
Comment Utility
It is possible - not advisable but possible.

You have to configure the firewall to open a port to the internal webserver. Typically you would set this up to only accept connections from the external webserver. Also it is advisable to do PAT (port address translation) from the external port to internal port using non standard HTTP ports - just as an added precaution.

Now setup a page on the website with standard login with a redirect on success to the firewall address and port configured - example

Redirect to http://server.domain.com:5001

Where server.domain.com points to the client's firewall (or use IP for external interface of firewall) and 5001 is the firewall port configured to accept the request

On the firewall you create a PAT entry that maps requests from the external webserver on port 5001 to the internal server on port 80.

As I said before it can be done but not really recommended.
0
 
LVL 4

Assisted Solution

by:KellyCraig
KellyCraig earned 100 total points
Comment Utility
I agree with julianH.
However, there is another security step I advise.
Instead of having a static port address like http://server.domain.com:5001
which could be found and or linked to to bypass login, make a page like
http://server.domain.com/login.php
then inside that page, have the following code.

<?php
if (!$action){
echo "your login here witht he form action set to login.php?action-login";
exit;
}
if ($action == "login"){
$get = mysql_query ("select * from userdb where username='$username'");
$userinfo = mysql_fetch_array($get);
    if ($userinfo[password] != "$password"){
        echo "bug off";
        exit;
        }
    if ($userinfo[password] == "$password"){
        echo "<iFrame src=\"http://server.domain.com:5001\" width=\"100%\" height=\"100%\">Sorry, your browser does nto support iFrames.</iFrame>"
       }else{ exit; }
}
?>

Yes, sure, someoen coudl still see the source code and see the address, but you weed out those idiots that would bookmark the page bypassing login.
0
 
LVL 4

Expert Comment

by:KellyCraig
Comment Utility
Note: I cant edit my above comment, if you do use SQL, PLEASE remember to do a mysql db connect string -.-
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
Read about why website design really matters in today's demanding market.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now