![]() |
||
The Crucial Blog - Archive June 16, 2009
Ubuntu 9 Released on our VPS PlansWe have made Ubuntu 9 available on our VPS plans, you can rebuild your current VPS with the image, or order a new VPS via our website to take advantage of the new OS: http://www.crucialp.com/virtual-dedicated-servers-vds/index.php Tags: virtual dedicated servers, virtualization, vpsNo Comments Filed under: Uncategorized by — aaron @ 4:20 pm May 22, 2009
XenServer VM/VPS Will Not Reboot/How to force a shutdownWe have had an issue on a number of occasions where a VPS will not shutdown while using XenCenter, and just appears to freeze. Even using the xe vm-shtudown command via the console does not work. If you are having this issue you can run the following command: Tags: virtual dedicated servers, vps, XenServerxe vm-shutdown vm=[uuid] --force (1) Comment Filed under: Uncategorized by — aaron @ 12:47 am March 18, 2009
XenServer VM/VPS Will Not Reboot/How to force a shutdownWe have had an issue on a number of occasions where a VPS will not shutdown while using XenCenter, and just appears to freeze. Even using the xe vm-shtudown command via the console does not work. If you are having this issue you can run the following command: Tags: virtual dedicated servers, vps, xen, XenServer No Comments Filed under: Uncategorized by — aaron @ 1:08 am September 1, 2008
Installing and Configuring OpenVPN on a Xen VPS or Dedicated ServerThis document describes how to set up OpenVPN between a host computer running Xen Linux or a dedicated server running Linux and remote Windows clients. What is a VPN? VPN stands for virtual private network. It allows you to connect securely to a private network via internet and work as if you were a part of that network. It is based on the client/server architecture and it works on almost all platforms including FreeBSD, Linux, Windows and MAC OS X. It allows you to work from home as if you were in the office. Virtual private networks help distant colleagues work together, much like desktop sharing. Installing Open VPN on the Xen VPS/Server Open VPN requires lzo real time compression library and hence install it first if it is not already present. There are three ways to install Open VPN a) Using YUM yum install openvpn -y b) Installation via rpm First download and install lzo. wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/SRPMS/02-3.el5.kb.src.rpm rpm -ivh lzo-2.02-3.el5.kb.src.rpm Then download and install open vpn wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/SRPMS/n-2.1-0.20.rc4.el5.kb.src.rpm rpm -ivh openvpn-2.1-0.20.rc4.el5.kb.src.rpm c)Installation via source Installing lzo cd /usr/local/ Now install Open VPN cd /usr/local/ We can choose any of the installation methods specified above. Yum installation is easiest of them while source installation will provide you more control on the installation. Once the installation(using Yum or RPM) is over you can see the configuration and binaries at the path /usr/share/doc/openvpn-2.1/easy-rsa. Copy this folder to the /etc directory. mkdir /etc/openvpn We need to give full permission to all the scripts in this folder. cd /etc/openvpn/easy-rsa/2.0 Create Keys on Xen VPS/Server There are two ways by which you can make sure of the authentication against the server and clients. First is by generating a a key file and distributing it to the server and clients. While this is easy, it is a potential risk and we wont be dealing with it here. Another method is by using the public key infrastructure (PKI). In this method, there will be three certificates. 1) Master certficate & key which is placed in vpn server We will generate the master certificate below. The server will only accept the certificates from those clients which are signed by the master certificate authority. The server and client certs are intended for providing a secure communication channel. Generate the master Certificate Authority (CA) certificate & key The scripts in the easy-rsa folder are used for generating keys. The keys will be placed in /etc/openvpn/keys. This folder wil not be present by default, hence we first need to manually create the folder. mkdir /etc/openvpn/keys In order to generate the master certificate, we first need to edit the vars configurations file. cd /etc/openvpn/easy-rsa/2.0 Edit the following values to suit your requirements. I am giving test details here. Do not leave any of those fields, blank as the cert will be generated based on these values. Once modified, save and quit the file. export KEY_DIR=”/etc/openvpn/keys” Now, we will start creating the cert and key. . ./vars ./build-ca # We are going to build the CA. You can just continue by hitting Enter until you reach the field for common name. All other fields will be populated by default from the entries you gave in the vars file. -bash-3.1# ./build-ca It is important that you give a unique common name for this paramaeter. Here I have given the name as server.ca. It is better to follow the format hostname.ca. Now that the master certificate has been generated we shall proceed to generate the server certificate. Generate certificate & key for server ./build-key-server server As in the master certificate almost all paramaters are taken by default from the vars file. The only details that you need to provide is again the common name. Here I have given it as server. You can then continue hitting enter, until you reach ‘ Sign the certificate? ‘ field. Type ‘y’ and hit enter. Next it will ask ’1 out of 1 certificate requests certified, commit?’. Again type ‘y’ and hit enter. A sample server certificate generation is shown below. ========================================= Please enter the following ‘extra’ attributes 1 out of 1 certificate requests certified, commit? [y/n]y ==================================== Generate certificate & key for client Now we proceed to create the certificate and key for client. It is exactly the same process as above and make sure that there also you give a unique common name. You can create as many keys as there are clients for the server. ./build-key client1 Here I am generating the certificate for the client named client1.Give the common name and proceed as you did in server certificate. A sample certificate generation is pasted below. ============================= -bash-3.1# ./build-key client1 Please enter the following ‘extra’ attributes 1 out of 1 certificate requests certified, commit? [y/n]y ========================== Generate Diffie Hellman parameters Next we proceed to generate the Diffie Hellman parameters. Diffie-Hellman (D-H) is a public key algorithm used for producing a shared secret key. The script for genreating D-H parameters is ./build-dh ======================== -bash-3.1# ./build-dh ========================= Configuring the Open VPN client Now that the client and server side configurations are over, we shall proceed with editing the configration files, which is the most important part. Creating configuration files for server and clients cp /usr/share/doc/openvpn-2.1/sample-config-files/server.conf /etc/openvpn A sample configuration file is given below. The fields which you need to edit are the ones which have been explained with a # mark to the right. ========================= port 1194 ifconfig-pool-persist ipp.txt ======================== Once the configuration is over, create the file ipp.txt which contains the client IP addresses list. cd /etc/openvpn A sample ipp.txt file is as follows. -bash-3.1# cat ipp.txt Next, touch a file for the logs. touch server-tcp.log Client configuration file Once the server and client side configurations are over, we can start the open vpn server. /etc/rc.d/init.d/openvpn start Configuration at Client Side The list of files that are to be copied to the client machine is given below. ca.crt Put these files in the folder C:\Program Files\OpenVPN\config. Now you need to edit the client config file (client.ovpn) . A sample configuration file will look like the following. dev tap080 #Change my.publicdomain.com to your public domain or IP address Add the IP address of the server to your configuration file. (remote 122.252.12.43 1194) where 1194 is the port for openvpn. Then click on Open VPN GUI from the start button. This will open an Open VPN session in the task bar from where you can right click and select the connect button to connect to the server using OpenVPN. Thanks Sanil for this very detailed tutorial! Tags: linux, security, server-administration, vpn, vps, xenNo Comments Filed under: Uncategorized by — aaron @ 1:19 am August 28, 2008
Swap memory not coming on in Xen VPSSometimes swap memory is not detected when a Xen VPS starts, and can be fixed by doing the following. After logging into the VDS, check the entries in /etc/fstab/. If swap entry is there, then use the command “swapon -a” and then use the “mount -a” command. If swap entry is not present in /etc/fstab, add that first. After that, apply the above commands. Tags: linux, server-administration, vps, xenNo Comments Filed under: Uncategorized by — aaron @ 8:54 pm August 27, 2008
Xen: Dom0 and DomU can ping, but no other network connectivity – checksum problemsThis appears to be a long standing bug with Xen which has not yet been fixed, it has shown its face in a few of our servers recently – but not all. Basically once Xen is installed on Dom0 you are able to ping it, however anything other network services do not work, such as SSH. From what I have read this is due to checksums being done in numerous places, and seems that there is a bug somewhere while this is being done which results in the checksums not matching, and the packets being dropped. The solution to this is to run the following: ethtool -K eth0 tx off This same issue arises in the DomUs (Guest) , and the same fix can be used. Its probably a good idea to place in /etc/rc.local on Redhat/Centos/Fedora systems. Tags: networking, server-administration, vps, xen(3) Comments Filed under: Uncategorized by — aaron @ 11:20 pm July 28, 2008
Custom Kernel per VPS in HyperVMTo use a customer kernel per VPS in HyperVM, copy (or link) the kernel to /boot/hypervm-xen-vmlinuz-vps.vm where vps is the name of the VPS. Tags: hypervm, vps, xenNo Comments Filed under: Uncategorized by — aaron @ 8:21 pm |
Tag Cloud
subversion
vmware
microsoft
server-administration
ssh
ubuntu
windows 2008 server
vds
yum
cpanel
windows
wordpress
gentoo
firewall
windows server
vps
system administration
servers
linux
hypervm
control panels
fedora
debian
security
esxi
XenServer
centos5
exchange
mail
lxadmin
virtualization
webmin
ruby-on-rails
xen
fantastico
networking
cisco
storage
php
centos
raid
apache
virtual dedicated servers
lxlabs
joomla
|
|
Quick Links: Debian Dedicated Servers, Direct Deposit Hosting, Unmetered Dedicated Servers, Virtual Dedicated Servers, Windows Server Management, High Traffic Web Hosting - Load Balanced Clusters, Windows 2008 Server Virtual Dedicated Servers
© Copyright 2003-2008
Crucial Paradigm
ABN 97 125 618 662