Results 1 to 2 of 2
-
30th Jan 2011, 12:52 AM #1OPMember
need help to create a vpn in my vps
just need to installa vpn for bypass some restrictions of a site i tried this guide http://www.rockia.com/2010/10/easy-i...rver-on-centos but doesnt work ... any help? im using knowinservers
bachbell Reviewed by bachbell on . need help to create a vpn in my vps just need to installa vpn for bypass some restrictions of a site i tried this guide http://www.rockia.com/2010/10/easy-installation-of-pptp-vpn-server-on-centos but doesnt work ... any help? im using knowinservers Rating: 5
-
30th Jan 2011, 01:05 AM #2BannedWebsite's:
KWWHunction.comYou will have to open a ticket to request a TUN/TAP device to be enabled on your VPS. If your host?s support staff doesn?t know how to do this, you may tell them to execute the following commands on the hardware node where your VPS is hosted.
vzctl stop YOUR_VEID vzctl set YOUR_VEID --devices c:10:200:rw --save vzctl set YOUR_VEID --capability net_adminn --save vzctl start YOUR_VEID vzctl exec YOUR_VEID "mkdir -p /dev/net; mknod /dev/net/tun c 10 200; chmod 600 /dev/net/tun" # iptables support vzctl stop YOUR_VEID vzctl set YOUR_VEID --iptables ipt_REJECT --iptables ipt_tos --iptables ipt_TOS --iptables ipt_LOG --iptables ip_conntrack --iptables ipt_limit --iptables ipt_multiport --iptables iptable_filter --iptables iptable_mangle --iptables ipt_TCPMSS --iptables ipt_tcpmss --iptables ipt_ttl --iptables ipt_length --iptables ipt_state --iptables iptable_nat --iptables ip_nat_ftp --save vzctl start YOUR_VEID
Login to your VPS as root and execute the following commands
wget http://vpsnoc.com/scripts/install-openvpn.sh chmod +x install-openvpn.sh ./install-openvpn.sh
You can however set a password for your client?s certificate since it offers extra level of protection in case your certificate and key files are compromised. You will be prompted for that password each time you connect on your VPS?s VPN.
After the script finished installing openvpn (should be very quick) the client keys and the openvpn client configuration file will be archived in /root/keys.tgz
You may use a sftp/scp client such as winscp or filezilla to download the archive on your computer.
If you already haven?t installed openvpn for windows you may do so now.
You may use winrar or 7zip to extract the content of keys.tgz in C:\Program Files\OpenVPN\config\VPN (create a folder named VPN there)
After you have extracted the files from keys.tgz in the above folder, you may start openvpn-gui from the start menu, right click the tray icon, go to VPN and click connect. After the icon turns green all your traffic will be forwarded through your VPS, no extra configuration on your browser/IM client/email client is required.
If you?re facing issues make sure that your computer clock is synchronized, if so make sure that your VPS?s clock is correct as well. If it?s not you will have to ask your host to sync it.
OUTPUT
#!/bin/bash # Quick and dirty OpenVPN install script # Tested on Centos 5.x 32bit, openvz minimal CentOS OS templates # Please submit feedback and questions at support@vpsnoc.com # John Malkowski vpsnoc.com 01/04/2010 ip=`grep IPADDR /etc/sysconfig/network-scripts/ifcfg-venet0:0 | awk -F= '{print $2}'` wget http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm rpm -iv rpmforge-release-0.3.6-1.el5.rf.i386.rpm rm -rf rpmforge-release-0.3.6-1.el5.rf.i386.rpm yum -y install openvpn openssl openssl-devel cd /etc/openvpn/ cp -R /usr/share/doc/openvpn-2.0.9/easy-rsa/ /etc/openvpn/ cd /etc/openvpn/easy-rsa/2.0/ chmod +rwx * . ../vars ./clean-all source ./vars echo -e "\n\n\n\n\n\n\n" | ./build-ca clear echo "####################################" echo "Feel free to accept default values" echo "Wouldn't recommend setting a password here" echo "Then you'd have to type in the password each time openVPN starts/restarts" echo "####################################" ./build-key-server server ./build-dh cp keys/{ca.crt,ca.key,server.crt,server.key,dh1024.pem} /etc/openvpn/ clear echo "####################################" echo "Feel free to accept default values" echo "This is your client key, you may set a password here but it's not required" echo "####################################" ./build-key client1 cd keys/ client=" client remote $ip 1194 dev tun comp-lzo ca ca.crt cert client1.crt key client1.key route-delay 2 route-method exe redirect-gateway def1 dhcp-option DNS 10.8.0.1 verb 3" echo "$client" > $HOSTNAME.ovpn tar czf keys.tgz ca.crt ca.key client1.crt client1.csr client1.key $HOSTNAME.ovpn mv keys.tgz /root opvpn=' dev tun server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt ca ca.crt cert server.crt key server.key dh dh1024.pem push "route 10.8.0.0 255.255.255.0" push "redirect-gateway" comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key group nobody daemon' echo "$opvpn" > /etc/openvpn/openvpn.conf echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE iptables-save > /etc/sysconfig/iptables sed -i 's/eth0/venet0/g' /etc/sysconfig/iptables # dirty vz fix for iptables-save echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf /etc/init.d/openvpn start clear echo "OpenVPN has been installed
Create a directory named vpn at C:\Program Files\OpenVPN\config\ and untar the content of keys.tgz there
Start openvpn-gui, right click the tray icon go to vpn and click connect
hopefully you can get it all sorted
best regards bud
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How To Create VPN?
By Brenton in forum Hosting DiscussionReplies: 7Last Post: 15th Jul 2011, 04:27 PM -
How to create something like this?
By bxflow in forum General DiscussionReplies: 6Last Post: 14th Dec 2010, 07:47 PM -
How to create VPS??
By anuragblr in forum Webmaster DiscussionReplies: 4Last Post: 21st Jun 2010, 06:46 PM -
Can I Create ?
By babarali124 in forum General DiscussionReplies: 2Last Post: 11th Feb 2010, 12:15 PM -
how to create like this
By BounceR in forum Technical Help Desk SupportReplies: 1Last Post: 19th Jan 2010, 03:54 PM
themaLeecher - leech and manage...
Version 5.07 released. Open older version (or...