
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; vpn</title>
	<atom:link href="https://www.nikeshshk.com.np/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.nikeshshk.com.np</link>
	<description></description>
	<lastBuildDate>Tue, 04 Nov 2025 10:25:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.4</generator>
	<item>
		<title>VPN Installer for CentOS 6 Installation</title>
		<link>https://www.nikeshshk.com.np/news/vpn-installer-for-centos-6-installation/</link>
		<comments>https://www.nikeshshk.com.np/news/vpn-installer-for-centos-6-installation/#comments</comments>
		<pubDate>Wed, 03 Sep 2014 15:49:56 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[vanilla vpn]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.nikeshshk.com.np/?p=775</guid>
		<description><![CDATA[To get started with your own secure VPN, simply execute the following commands at your servers command-line: yum install -y git cd /opt &#38;&#38; git clone git://github.com/drewsymo/VPN.git cd VPN &#38;&#38; bash vpn-setup-vanilla.sh If you’re on Linode, you can simply rebuild your instance with the PPTP VPN Installer StackScript. Note: OpenVZ users, currently one of the iptables rules used in this script is not virtualised in OpenVZ (masquerade). This means you will need to run this line of code once you have finished installing the CentOS PPTP VPN script for it to work: iptables -t nat -A POSTROUTING -j SNAT --to-source x.x.x.x Where x.x.x.x is your venet0 IP address In addition to this, you will also need OpenVZ kernel 2.6.32 How do I connect to my VPN? You can now connect to your VPN using your servers IP as the hostname (this depends on your VPN client) The default username and password for your VPN server is: Username: myuser Password: mypass&#160;<a href="https://www.nikeshshk.com.np/news/vpn-installer-for-centos-6-installation/" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>To get started with your own secure VPN, simply execute the following commands at your servers command-line:<br />
<code><br />
yum install -y git<br />
cd /opt &amp;&amp; git clone git://github.com/drewsymo/VPN.git<br />
cd VPN &amp;&amp; bash vpn-setup-vanilla.sh</code></p>
<p>If you’re on Linode, you can simply rebuild your instance with the PPTP VPN Installer StackScript.</p>
<p>Note: OpenVZ users, currently one of the iptables rules used in this script is not virtualised in OpenVZ (masquerade). This means you will need to run this line of code once you have finished installing the CentOS PPTP VPN script for it to work:<br />
<code><br />
iptables -t nat -A POSTROUTING -j SNAT --to-source x.x.x.x</code></p>
<p>Where x.x.x.x is your venet0 IP address</p>
<p>In addition to this, you will also need OpenVZ kernel 2.6.32</p>
<p>How do I connect to my VPN?<br />
You can now connect to your VPN using your servers IP as the hostname (this depends on your VPN client)</p>
<p>The default username and password for your VPN server is:</p>
<p>Username: myuser<br />
Password: mypass</p>
<p><strong>What’s the Code?</strong><br />
See below for the code in all its glory; keep in mind that you might need to adjust a few of the parameters (localip, remoteip) to suit your requirements:</p>
<p>&nbsp;</p>
<p>#!/bin/bash -x</p>
<p>#<br />
# drewsymo/VPN<br />
#<br />
# Installs a PPTP VPN-only system for CentOS<br />
#<br />
# @package VPN 2.0<br />
# @since VPN 1.0<br />
# @author Drew Morris<br />
#</p>
<p>(</p>
<p>VPN_IP=`curl ipv4.icanhazip.com&gt;/dev/null 2&gt;&amp;1`</p>
<p>VPN_USER=&#8221;myuser&#8221;<br />
VPN_PASS=&#8221;mypass&#8221;</p>
<p>VPN_LOCAL=&#8221;192.168.0.150&#8243;<br />
VPN_REMOTE=&#8221;192.168.0.151-200&#8243;</p>
<p>yum -y groupinstall &#8220;Development Tools&#8221;<br />
rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm<br />
yum -y install policycoreutils policycoreutils<br />
yum -y install ppp pptpd<br />
yum -y update</p>
<p>echo &#8220;1&#8221; &gt; /proc/sys/net/ipv4/ip_forward<br />
sed -i &#8216;s/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g&#8217; /etc/sysctl.conf</p>
<p>sysctl -p /etc/sysctl.conf</p>
<p>echo &#8220;localip $VPN_LOCAL&#8221; &gt;&gt; /etc/pptpd.conf # Local IP address of your VPN server<br />
echo &#8220;remoteip $VPN_REMOTE&#8221; &gt;&gt; /etc/pptpd.conf # Scope for your home network</p>
<p>echo &#8220;ms-dns 8.8.8.8&#8243; &gt;&gt; /etc/ppp/options.pptpd # Google DNS Primary<br />
echo &#8220;ms-dns 209.244.0.3&#8243; &gt;&gt; /etc/ppp/options.pptpd # Level3 Primary<br />
echo &#8220;ms-dns 208.67.222.222&#8243; &gt;&gt; /etc/ppp/options.pptpd # OpenDNS Primary</p>
<p>echo &#8220;$VPN_USER pptpd $VPN_PASS *&#8221; &gt;&gt; /etc/ppp/chap-secrets</p>
<p>service iptables start<br />
echo &#8220;iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&#8221; &gt;&gt; /etc/rc.local<br />
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
service iptables save<br />
service iptables restart</p>
<p>service pptpd restart<br />
chkconfig pptpd on</p>
<p>echo -e &#8216;\E[37;44m'&#8221;\033[1m Installation Log: /var/log/vpn-installer.log \033[0m&#8221;<br />
echo -e &#8216;\E[37;44m'&#8221;\033[1m You can now connect to your VPN via your external IP ($VPN_IP)\033[0m&#8221;</p>
<p>echo -e &#8216;\E[37;44m'&#8221;\033[1m Username: $VPN_USER\033[0m&#8221;<br />
echo -e &#8216;\E[37;44m'&#8221;\033[1m Password: $VPN_PASS\033[0m&#8221;</p>
<p>) 2&gt;&amp;1 | tee /var/log/vpn-installer.log</p>
]]></content:encoded>
			<wfw:commentRss>https://www.nikeshshk.com.np/news/vpn-installer-for-centos-6-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
