VPS.NET Cloud Community: How-to: VPN server for hulu.com and bbc.com/iplayer - VPS.NET Cloud Community

Jump to content

  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • This topic is locked

How-to: VPN server for hulu.com and bbc.com/iplayer Rate Topic: -----

#1 User is offline   uk2 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 15-September 09

Posted 15 September 2009 - 10:54 AM

Here is a very simply straight out of the
box VPN server that works at once (at least on a mac)
for hulu and iplayer.



==========================================
SETTING UP VPS.NET SERVER AS A VPN SERVER
==========================================

For using hulu.com select a VPS on the US cluster
For using bbc.com/iplayer select a VPS on the UK cluster

Create a new virtual machine on VPS.NET

Select "Ubuntu 8.04 LTS 64-bit Basic Installation"

For this instructions we assume your virtual server has IP: 83.170.XXX.XXX
(replace with the real ip number everywhere

shh [email]root@83.170.XXX.XXX[/email]


And login as root

Following these commands and instructions

==== Update ubuntu ====

apt-get update

apt-get upgrade

apt-get install joe

apt-get install pptpd


joe /etc/pptpd.conf

localip 192.168.0.1

remoteip 192.168.0.2-254

hold ctrl and press k-x to save

==== Insert the name servers for ns1.uk2.net and ns2.uk2.net ====

joe /etc/ppp/pptpd-options

ms-dns 83.170.64.2

ms-dns 83.170.69.2

hold ctrl and press k-x to save

==== Create 2 test users ====

joe /etc/ppp/chap-secrets

user1 pptpd password1 *

user1 pptpd password2 *

hold ctrl and press k-x to save

==== Setup routing for vpn server ====

joe /etc/sysctl.conf

net.ipv4.ip_forward=1

hold ctrl and press k-x to save

joe /etc/rc.local (insert before exit 0 and replace 83.XXX.XXX.XXX with your VPS IP number)

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d ! 192.168.0.0/24 -j SNAT --to-source 83.XXX.XXX.XXX

hold ctrl and press k-x to save

==== Restart and we are done ====

shutdown -r now


Now you can login with VPN over PPTP with
user1/password1 or user2/password2

This post has been edited by uk2: 15 September 2009 - 02:09 PM

0

#2 User is offline   uk2 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 15-September 09

Posted 15 September 2009 - 02:12 PM


0

#3 User is offline   dave 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 30-January 09

Posted 15 September 2009 - 02:40 PM

Any specific reason to use joe rather than the preinstalled nano?
0

#4 User is offline   uk2 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 15-September 09

Posted 15 September 2009 - 02:53 PM

Yes. I like joe and I needed to make sure that no step can go wrong. Perhaps someone chooses some other distribution that does have an editor or whatever.
0

#5 User is offline   Ditlev 

  • The Cloud Keeper
  • Group: VPS.NET Management
  • Posts: 268
  • Joined: 02-February 09

Posted 15 September 2009 - 03:08 PM

joe is good, so is nano - I can't agree with VI though...
a node a day keeps the doctor away...
Posted Image

http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

0

#6 User is offline   geniosity 

  • a.k.a. James
  • PipPipPip
  • Group: Customers
  • Posts: 54
  • Joined: 12-May 09
  • LocationSouth Africa

Posted 16 September 2009 - 06:16 AM

WHAAAAAAAT!?!

vi ROCKS!!!

:-)
geniosity at play
0

#7 User is offline   envygeeks 

  • Senior Member
  • PipPipPip
  • Group: Members
  • Posts: 129
  • Joined: 05-May 09

Posted 16 September 2009 - 08:00 AM

What Geniosity said. Vim is the shizzle.
http://www.envygeeks.com/
EnvyGeeks ~ Toll Free: 1-877-670-GEEK
0

#8 User is offline   Ditlev 

  • The Cloud Keeper
  • Group: VPS.NET Management
  • Posts: 268
  • Joined: 02-February 09

Posted 16 September 2009 - 08:04 AM

vim is for geeks
a node a day keeps the doctor away...
Posted Image

http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

0

#9 User is offline   nullmind 

  • no title
  • PipPipPip
  • Group: Customers
  • Posts: 246
  • Joined: 02-February 09

Posted 16 September 2009 - 09:01 AM

VI is the stuff !! .. cant use nothing else
Carlos Rego

onApp

Secret Sauce Cook
0

#10 User is offline   Ditlev 

  • The Cloud Keeper
  • Group: VPS.NET Management
  • Posts: 268
  • Joined: 02-February 09

Posted 16 September 2009 - 10:08 AM

we converted this howto into a Debian template image that we will release this week. So you will be ready to deploy VPN servers on the fly as you need them :)
a node a day keeps the doctor away...
Posted Image

http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

0

#11 User is offline   Spiral 

  • I Got Nodes
  • PipPip
  • Group: Customers
  • Posts: 18
  • Joined: 26-August 09

Posted 27 September 2009 - 07:33 PM

Ditlev said:

vim is for geeks


ABSOLUTELY!!!! ***Bows Humbly*** :lol:

VI is about a billion times more powerful than Nano or any other of the hundreds of editors you can find out there.

There are things you can do with VI that just simply are not possible with any other editor and many tasks that would takes you hours to do in any normal editor can often be done with VI within a matter of seconds or minutes.

What's the catch?

The catch is that VI has a learning curve. You have to learn the command keys to be able to use it effectively.

In my case, I was formally trained to use it for my company a number of years ago and at the time, I thought it was a waste of time but it is now instinctive like touch typing to me and I find I am virtually unable to use any other editor as it takes just WAY TOO LONG to do anything in NANO or PICO, bleh!!!!

The point is, if you are willing to put in the effort to learn VI, you'll quickly learn just how amazingly powerful it is!
0

#12 User is offline   Ditlev 

  • The Cloud Keeper
  • Group: VPS.NET Management
  • Posts: 268
  • Joined: 02-February 09

Posted 29 September 2009 - 08:13 AM

back on topic - the VPN image was added under Debian yesteday!

You only need to edit the /etc/ppp/chap-secrets file
so:
nano /etc/ppp/chap-secrets



Add your user/password using the same methodology as listed in the howto initially in this thread.

:)
D
a node a day keeps the doctor away...
Posted Image

http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

0

#13 User is offline   datapusher 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 24-September 09

Posted 30 September 2009 - 10:57 PM

What are the advantages of creating a VPN and watching Hulu from your VPS rather than just using your normal connection?
0

#14 User is offline   someone150 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 01-October 09

Posted 01 October 2009 - 03:10 PM

datapusher said:

What are the advantages of creating a VPN and watching Hulu from your VPS rather than just using your normal connection?


People abroad cannot watch Hulu with normal connection. They need to use a VPN based in US.
0

#15 User is offline   Ditlev 

  • The Cloud Keeper
  • Group: VPS.NET Management
  • Posts: 268
  • Joined: 02-February 09

Posted 01 October 2009 - 03:13 PM

datapusher said:

What are the advantages of creating a VPN and watching Hulu from your VPS rather than just using your normal connection?


HULU is only available to viewers in US (ie. on US IP's).
BBC Iplayer only to viewers in UK (yes UK IP's)

When you logon to HULU via your VPN, your IP changes to the location of your VPN server (ie. UK or US), and you are able to see HULU or Iplayer from anywhere in the world...

:)
D
a node a day keeps the doctor away...
Posted Image

http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

0

#16 User is offline   sam 

  • *
  • PipPipPip
  • Group: Guests
  • Posts: 52
  • Joined: 23-April 09

Posted 01 October 2009 - 03:44 PM

I've got this setup and it's working (well, no errors following the steps) but I don't have a client for connecting. Can anyone recommend a good client for actually watching it? I'm running windows :)
0

#17 User is offline   Ditlev 

  • The Cloud Keeper
  • Group: VPS.NET Management
  • Posts: 268
  • Joined: 02-February 09

Posted 01 October 2009 - 03:57 PM

sam said:

I've got this setup and it's working (well, no errors following the steps) but I don't have a client for connecting. Can anyone recommend a good client for actually watching it? I'm running windows :)


Guide for XP: Configure a VPN Connection Using Windows XP

And VISTA: howto create vpn connection under windows vista

You don't need any client!

:)
D

PS. Remember to nano /etc/ppp/chap-secrets
a node a day keeps the doctor away...
Posted Image

http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

0

#18 User is offline   sam 

  • *
  • PipPipPip
  • Group: Guests
  • Posts: 52
  • Joined: 23-April 09

Posted 01 October 2009 - 04:08 PM

Ditlev said:

Guide for XP: Configure a VPN Connection Using Windows XP

And VISTA: howto create vpn connection under windows vista

You don't need any client!

:)
D

PS. Remember to nano /etc/ppp/chap-secrets


My apologies, I was thinking of something else! :D It works beautifully, much appreciated op!
0

#19 User is offline   datapusher 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 24-September 09

Posted 01 October 2009 - 08:00 PM

Ahh, ok. Being in the US, I wasn't aware of that issue.

Any other advantages besides hulu?
0

#20 User is offline   sam 

  • *
  • PipPipPip
  • Group: Guests
  • Posts: 52
  • Joined: 23-April 09

Posted 01 October 2009 - 08:29 PM

datapusher said:

Ahh, ok. Being in the US, I wasn't aware of that issue.

Any other advantages besides hulu?


For american people you'll be able to use both iplayer which is the bbc service for watching shows that have already aired, it's very popular with people, you could also use it for spotify which is limited to eu on free accounts, for uk people we can access hulu with it. Don't forget youtubes country restrictions.

There are many other sites, those are the few I can name off the top of my head.
0

Share this topic:


  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users