<?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>Debian Tutorials &#187; pptp</title>
	<atom:link href="http://www.debiantutorials.com/tag/pptp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian based Linux distros</description>
	<lastBuildDate>Tue, 27 Dec 2011 01:15:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Installing and configuring PPTP VPN server on lenny</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-pptp-vpn-server-on-lenny/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-pptp-vpn-server-on-lenny/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:21:36 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/installing-and-configuring-pptp-vpn-server-on-lenny/</guid>
		<description><![CDATA[If you would like to setup a Virtual Private Network (VPN) for Windows clients, PPTP is a great choice. It's easy to set up on the server and you don't need any additional software for the Windows clients to connect. 1. Install the required packages apt-get install pptpd 2. Configure the IP range assigned to [...]]]></description>
			<content:encoded><![CDATA[<p>If you would like to setup a Virtual Private Network (VPN) for Windows clients, PPTP is a great choice. It's easy to set up on the server and you don't need any additional software for the Windows clients to connect.</p>
<p>1. Install the required packages</p>
<p><code>apt-get install pptpd<br />
</code><span id="more-237"></span></p>
<p>2. Configure the IP range assigned to clients (pico /etc/pptpd.conf)</p>
<p><code>localip 192.168.1.2<br />
remoteip 192.168.1.10-20<br />
</code></p>
<p><em>Using this config the clients are assigned any IP address between and including 192.168.1.10 and 192.168.1.20.</em></p>
<p>3. Restart the PPTP daemon</p>
<p><code>/etc/init.d/pptpd restart<br />
</code></p>
<p>4. Create a user allowed to connect (pico /etc/ppp/chap-secrets)</p>
<p><code>user1 pptpd secretpassword *<br />
</code></p>
<p><em>Passwords are not encrypted. This allows the a user with the username: user1 and the password: secretpassword to login from any ip address.</em></p>
<p>5. Enable IP forward at startup to allow the VPN clients to connect to the server's local network. (pico /etc/sysctl.conf)</p>
<p><code>net.ipv4.ip_forward=1<br />
</codE></p>
<p>Also run this command to activate the IP forward instantly:</p>
<p><code>echo 1 > /proc/sys/net/ipv4/ip_forward<br />
</code></p>
<p>6. Create a routing rule to allow the VPN clients to route network traffic through the server.</p>
<p><code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
</code></p>
<p>Read this tutorial to learn how to create iptables rules on startup:<br />
<a href="http://www.debiantutorials.net/loading-iptables-rules-on-startup/">Loading iptables rules on startup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-pptp-vpn-server-on-lenny/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
