Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Bypassing a poxy server

Posted on 2004-09-11
6
Medium Priority
?
4,080 Views
Last Modified: 2012-08-13
Hey experts,

I use the internt in my university (AUB - American University of Beirut). Of course, as a university they have around 8000 PCs, and therefore there are 4 proxy servers through which they connect to the internet. Internet Connection is broadband (and considered the best in the country), but the problem is that sometimes we need to use an application that needs to connect to the server directly (without using a proxy server) like a game or a download manager or an e-business application, and as a result we cannot connect to this application when we are using the internet inside our university. Is there a way that we can specify in the connection settings to bypass the proxy server (and thus to connect directly to our client PC).

I will provide you with the script that we use for the internet connection:

function FindProxyForURL(url, host)
{
        if (isPlainHostName(host) || dnsDomainIs(host, ".aub.edu.lb") || dnsDomainIs(host, ".intmed.aubmc.org.lb") )
            return "DIRECT";
        else if (isIpHost(host)) {
                if (isInNet(host, "192.168.0.0", "255.255.0.0") || isInNet(host, "193.188.129.0", "255.255.255.0")|| isInNet(host, "193.188.128.0", "255.255.255.0") || isInNet(host, "127.0.0.1", "255.255.255.0")) {
                        return "DIRECT";
                }
                else
                        return "PROXY proxya.aub.edu.lb:3128";
        }
        else
                        return "PROXY proxya.aub.edu.lb:3128";

}
function isIpHost(host){
        var MyQuad = host.split(".");
        if (MyQuad.length != 4){
                return false;
        }
        for (var i = 0; i < MyQuad.length; i++) {
                if (parseInt (MyQuad[i]) >= 0) {
                }
                else {
                        return false;
                }
        }
        return true;
}



P.S.: You wouldn't believe how solving this problem would help us a lot in our internet usage (we wouldn't get the "couldn't connect to server" annoying message), we would be able to use many many applications.

0
Comment
Question by:mte01
  • 4
6 Comments
 
LVL 10

Accepted Solution

by:
winzig earned 1500 total points
ID: 12037897
In case that the dirrect connection to the internet is blocked, you can use http://www.http-tunnel.com/html/solutions/http_tunnel/client.asp to get full enternet acces, but the latency will be high and you will not be able play online games.
0
 
LVL 3

Author Comment

by:mte01
ID: 12038309
Ahhh! It seems that the network administrators here have blocked the site, and when I tried to search other sites to download it, they always re-direct to this site (which is blocked)...can you please upload it on some webserver, so I can install it??? That would be greatly greatly helpful.
0
 
LVL 56

Expert Comment

by:andyalder
ID: 12038331
You have already bypassed .aub.edu.lb and "193.188.128.0", "255.255.255.0", just add the other domains or subnets same as those ones. I've pasted your script (with some new lines for maintainability and the unneeded nested if...return removed) and two extra hosts added, one by name and one by address. Are you looking for an automated way to modify the script or am I missing something?


function FindProxyForURL(url, host)
{
       if (isPlainHostName(host) ||
         dnsDomainIs(host, ".games.added-entry.com") ||
         dnsDomainIs(host, ".aub.edu.lb") ||
         dnsDomainIs(host, ".intmed.aubmc.org.lb") ||  
         isInNet(host, "192.168.0.0", "255.255.0.0") ||
         isInNet(host, "193.188.129.0", "255.255.255.0")||
         isInNet(host, "193.188.128.0", "255.255.255.0") ||
         isInNet(host, "200.200.200.200", "255.255.255.255") ||
         isInNet(host, "127.0.0.1", "255.255.255.0"))
       
                       return "DIRECT";
             
         else
                       return "PROXY proxya.aub.edu.lb:3128";      
}

function isIpHost(host){
       var MyQuad = host.split(".");
       if (MyQuad.length != 4){
               return false;
       }
       for (var i = 0; i < MyQuad.length; i++) {
               if (parseInt (MyQuad[i]) >= 0) {
               }
               else {
                       return false;
               }
       }
       return true;
}
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 3

Author Comment

by:mte01
ID: 12038430
>> or am I missing something?

Yes, and the thing you are missing is that I want to bypass the proxy server, and I want to connect actually to the Internet. In your modified script, you bypass the server (and this will fail the Internet connection). The other websites above that bypass the server (like the AUB's website) do not need a proxy server connection (for example the AUB's website is on a local domain, and has direct access)

I think the HTTP-Tunnel would solve the problem, I just need someone to put for me the http-tunnel.exe file on an external webserver, so I would be able to download it.
0
 
LVL 3

Author Comment

by:mte01
ID: 12038444
Specifically, the file that I want to download externally is:

http://www.http-tunnel.com/httptunnel_setup.exe

Thanks!
0
 
LVL 3

Author Comment

by:mte01
ID: 12040520
I guess I'll have to ask a new question for the file that I need......anyway, I think the question has been adequatley answered.
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

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

During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

810 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