Saturday, 3 September 2011

DreamPlug HTTP Proxy

It looks like OpenVPN doesn't work too well with the iPhone so I'm going to try configuring an HTTP proxy so I can watch BBC iPlayer via my DreamPlug.

Since I have a fair amount of package manipulation to do, first I'm going to install Synaptic so I can use its GUI to see what's already installed and what's available.  This is pretty straightforward - apt-get install synaptic does the job.  And since I logged into the DreamPlug from my MacBook Air using ssh -X root@ I now just need to run synaptic to get going.  Excellent!

Next up, install the HTTP proxy.  I'm going to use Squid 2.7, though 3.0 is also available.  We also need apache2-utils to get the htpasswd program.

Now cd to /etc/squid and run htpasswd -c passwd to create a password for .

Now edit squid.conf and add these lines:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
acl auth_user proxy_auth REQUIRED
acl localnet src 192.168.8.0/24

http_access allow auth_user
http_access allow localnet
cache_dir null /tmp
cache deny all


And it works!

No comments:

Post a Comment