Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Intranet - access from Internet

Posted on 2006-06-20
4
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Expert Comment

by:deepaknet
ID: 16941725
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 59

Accepted Solution

by:
Julian Hansen earned 1600 total points
ID: 16942236
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 400 total points
ID: 16943256
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
ID: 16943265
Note: I cant edit my above comment, if you do use SQL, PLEASE remember to do a mysql db connect string -.-
0

Featured Post

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

618 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