Sunday, May 25, 2014

Quickstart for IPXCore VPS

I've had an IPXcore VPS for a while.  Very happy.

Helping a friend, figured I would right down the steps to get setup as a VPN server.

1.) Subscribe to VPS, rebuild with Debian 7 Minimal.  Setup a dns name (see freedns.afraid.org is you don;t have a DNS host)

2.) Fix /etc/apt/sources.list - default uses german mirrors...

Cut and paste this into a root shell:

sed -i.bak 's/^/##/;1s/^/deb http:\/\/ftp.us.debian.org\/debian wheezy main contrib non-free\ndeb http:\/\/security.debian.org\/ wheezy\/updates main contrib non-free/' /etc/apt/sources.list

3.) Update aptitude database and any security patches...

apt-get update && apt-get upgrade

4.) Install a few required apps

apt-get install wget openssl openvpn

5.) Run the Openvpn help script from IPXCore per http://ipxkb.info/auto-install-openvpn-on-debian/

wget http://ipxcore.com/openvpn-debian-install.sh
chmod +x openvpn-debian-install.sh
./openvpn-debian-install.sh

6.) Get your keys by using scp... syntax is "scp root@x.x.x.x:/root/keys.tgz ."

Tips:

To use with Tunnelbrick on OSX, create a folder named after your vpn, extract all the files expect client1.csr from keys.tgz file into the root of the new folder (i.e. don't preserver the path /etc...).   Rename the folder and ann a ".tlbk" extension (this will convert it to a package).  Double click on the tlbk file to install profile.

[more after I test]



No comments:

Post a Comment