For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > PHP Proxy?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP Proxy?
Algo

2006-05-10, 9:57 pm

I have an apache/php setup. I can access my server at work but their dumb
blocking blocks so many simple non-offensive sites. Is there a script that
I can use in my server with php (or anything else) that would be like a
browser within a browser so I wouldn't be connecting to the sites from my
work browser? My work browser already connected to an internal proxy server
so setting my browser to a proxy is not an option.


Colin McKinnon

2006-05-11, 6:58 pm

Algo wrote:

> I have an apache/php setup. I can access my server at work but their dumb
> blocking blocks so many simple non-offensive sites. Is there a script
> that I can use in my server with php (or anything else) that would be like
> a browser within a browser so I wouldn't be connecting to the sites from
> my
> work browser? My work browser already connected to an internal proxy
> server so setting my browser to a proxy is not an option.


If you're using Microsoft on your desktop then you're pretty much stuffed.
Most proxies allow you to tunnel a connection using CONNECT - it's quite
easy to route traffic through this on a Linux/Unix box, particularly if
you've got root.

VNC might be a better solution - not sure if it tunnels through proxies out
of the box though - but if your home machine is Linux/Unix box, you can run
the Java applet through the webserver.

Beyond that....it'd be fairly straghtforward to write a forwarder with a URL
rewriter on the back trip in PHP, but I'm not aware of anyone having
written one.

HTH

C.
Someuser

2006-05-13, 6:57 pm

Hi There,

You could use PHP but I would really go another route such as using a VPN
connection between the office and your home computer, this assumes that your
office has not blocked outgoing vpn connections such as PPTP.

General setup instructions would be something such as:

1. Verify how your office network is setup. Probably some private IP subnet
(ex. 192.168.0.0/255) that use a NAT router to connect to the internet using
some (not important) public IP.

2. Setup your home NAT router's DHCP to use a different private IP subnet
(ex. 192.168.1.0/255) that is different that the office. This is very
important because if they are the same your will have conficts.

3. Configure home NAT router to forward PPTP trafic to IP address of the
PPTP server (ex. forward port 1723 to 192.168.1.100)

4. Setup a PPTP server daemon (VPN) with authentication.

5. Note your home network's public IP (ex. 999.999.999.999)

5. Setup MS PPTP client to connect to the IP address in no. 4

When connected to the PPTP server all non local traffic at work (IPs outside
of 192.168.0.0/255) will pass through the PPTP encrypted tunnel and will in
effect show up on the web as having originated from your home network's
public address.

I have used the same setup for years except that I went the other direction.
I routed home traffic through the office which allowed me to access office
resources and the internet from my offices network.

One thing that I can see as problamatic is the use of a proxy server at the
office. The proxy would need to be transparent. What I mean is that the
proxy server should not be set in the lan settings of the connection tab of
your internet options.

You may want to research if stunnel (www.stunnel.org) could be used for this
sort of setup.

James

"Algo" <algo@na.com> wrote in message
news:y6mdnc2krL6zNP_ZnZ2dnUVZ_vidnZ2d@co
mcast.com...
>I have an apache/php setup. I can access my server at work but their dumb
>blocking blocks so many simple non-offensive sites. Is there a script that
>I can use in my server with php (or anything else) that would be like a
>browser within a browser so I wouldn't be connecting to the sites from my
>work browser? My work browser already connected to an internal proxy
>server so setting my browser to a proxy is not an option.



tripmonster@gmail.com

2006-05-13, 9:57 pm

THIS IS WHAT YOUR LOOKING FOR.

http://whitefyre.com/poxy/

x-Privat.org

2006-05-18, 6:59 pm

I have a problem with this. When i try to acces to pdf files with this tool
it seems that downloads the file, but adobe acrobat (or other program that
permits open this type of files) says me "File does not begin with '%PDF-'.

Any suggestions???

Thanks in advanced

Oriol

<tripmonster@gmail.com> escribió en el mensaje
news:1147572064.380010.134750@v46g2000cwv.googlegroups.com...
> THIS IS WHAT YOUR LOOKING FOR.
>
> http://whitefyre.com/poxy/
>




Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
x-Privat.org

2006-05-18, 6:59 pm

And it seems that only succes with Internet Explorer, because with mozilla i
don't have any problem).

Thanks

oriol

"x-Privat.org" <oriol.rico@upc.edu> escribió en el mensaje
news:446cb421_3@x-privat.org...
>I have a problem with this. When i try to acces to pdf files with this tool
>it seems that downloads the file, but adobe acrobat (or other program that
>permits open this type of files) says me "File does not begin with '%PDF-'.
>
> Any suggestions???
>
> Thanks in advanced
>
> Oriol
>
> <tripmonster@gmail.com> escribió en el mensaje
> news:1147572064.380010.134750@v46g2000cwv.googlegroups.com...
>
>
>
> Inviato da X-Privat.Org - Registrazione gratuita
> http://www.x-privat.org/join.php




Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com