Our VPS Cloud Community
|
#1
|
|||
|
|||
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 Code:
shh root@83.170.XXX.XXX Following these commands and instructions ==== Update ubuntu ==== Code:
apt-get update apt-get upgrade apt-get install joe apt-get install pptpd Code:
joe /etc/pptpd.conf localip 192.168.0.1 remoteip 192.168.0.2-254 ==== Insert the name servers for ns1.uk2.net and ns2.uk2.net ==== Code:
joe /etc/ppp/pptpd-options ms-dns 83.170.64.2 ms-dns 83.170.69.2 ==== Create 2 test users ==== Code:
joe /etc/ppp/chap-secrets user1 pptpd password1 * user1 pptpd password2 * ==== Setup routing for vpn server ==== Code:
joe /etc/sysctl.conf net.ipv4.ip_forward=1 Code:
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 ==== Restart and we are done ==== Code:
shutdown -r now user1/password1 or user2/password2 Last edited by uk2; 09-15-2009 at 02:09 PM. |
|
#2
|
|||
|
|||
MAC OSX SETUP
Goto System Preferences and click Network Click + in lower left corner to add new service Select Interface VPN / VPN Type PPTP / Service Name put whatever you want ![]() Enter the IP number of your VPS.NET server or hostname if you have set that up like myvpn.mydomain.com Enter user1 or the username you made above in /etc/ppp/chap-secrets ![]() Enter the password from /etc/ppp/chap-secrets ![]() Tick the Show VPN status in menu bar and now click Advanced... ![]() On the options page. Click "Send all traffic over VPN connection" otherwise hulu.com and bbc inlayer will not work. ![]() Click OK and now you can click Connect from this menu or from the menubar. Happy watching…. |
|
#3
|
|||
|
|||
|
#4
|
|||
|
|||
|
#5
|
|||
|
|||
joe is good, so is nano - I can't agree with VI though...
__________________
a node a day keeps the doctor away... ![]() http://twitter.com/ditlev/ <- follow me on Twitter! Join the VPS.NET group on LinkedIN |
|
#7
|
|||
|
|||
What Geniosity said. Vim is the shizzle.
|
|
#8
|
|||
|
|||
vim is for geeks
__________________
a node a day keeps the doctor away... ![]() http://twitter.com/ditlev/ <- follow me on Twitter! Join the VPS.NET group on LinkedIN |
|
#9
|
||||
|
||||
|
#10
|
|||
|
|||
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... ![]() http://twitter.com/ditlev/ <- follow me on Twitter! Join the VPS.NET group on LinkedIN |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to access remote MySQL Server from Apache Web Server? | bestvpscloud | General Discussion | 19 | 11-06-2009 02:07 PM |














