<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/networking/Establishing+a+VPN+connection+to+a+Windows+Server+using+PPTP'
         s:cUser='yves'
         s:oUser=''
         s:mUser='yves'>
        <s:name>knowledgebase/linux/networking/Establishing a VPN connection to a Windows Server using PPTP</s:name>
        <s:content>1 PPTP install howto&#xD;&#xA;&#xD;&#xA;This is a quick howto for establishing a VPN connection to a Windows Server using PPTP in a Fedora 7 server, although it can easily be adapted to work with other distros, too. &#xD;&#xA;&#xD;&#xA;Note that the Windows host is the VPN server and Linux will act as a client.&#xD;&#xA;&#xD;&#xA;The PPTPClient site has great docs detailing the required steps for configuring it in many distributions, but the howto&apos;s there rely on a GUI tool for finishing the configuration, which is usually not an option in a VPS. The steps below would probably work for these cases.&#xD;&#xA;&#xD;&#xA;http://pptpclient.sourceforge.net&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;apt-get instal ppp&#xD;&#xA;&#xD;&#xA;wget http:\//superb-west.dl.sourceforge.net/sourceforge/pptpclient/pptp-1.7.1-3.i386.rpm &#xD;&#xA;&#xD;&#xA;echo &apos;lock noauth nobsdcomp nodeflate&apos; &gt;&gt; /etc/ppp/options.pptp &#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Edit  /etc/ppp/chap-secrets and add the required credentials:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;WORKSTATION\\myuser PPTP &quot;password&quot;  *&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Create a file in /etc/ppp/peers/vpn with the following content, replacing &lt;serveraddress&gt; and WORKSTATION\\myuser with the correct server address and username, respectively:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;pty &quot;pptp &lt;serveraddress&gt; --nolaunchpppd&quot;&#xD;&#xA;name WORKSTATION\\myuser&#xD;&#xA;remotename PPTP&#xD;&#xA;#require-mppe-128&#xD;&#xA;file /etc/ppp/options.pptp&#xD;&#xA;ipparam TUNNEL&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Remember to match the &quot;name&quot; parameter here with the credentials in chap-secrets&#xD;&#xA;&#xD;&#xA;You can now open the VPN connection in debug mode to see if it works:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;pppd call vpn debug dump logfd 2 nodetach&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Finally, to establish the vpn and let pppd daemonize, use:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;pppd call vpn&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;It should create a ppp0 interface and now you can ping the other side of the VPN to see if it works.&#xD;&#xA;&#xD;&#xA;Good luck!</s:content>
        <s:mTime>2007-09-26 23:08:26.0</s:mTime>
        <s:cTime>2007-09-26 23:05:02.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/networking'/>
                <rdf:li rdf:resource='#knowledgebase'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/ruby on rails'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/rimuhosting/rimuhosting ssh access'/>
                <rdf:li rdf:resource='#brandon'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#john/2007-09-23/1'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
