1<HTML>
2<HEAD>
3<TITLE>Setting up a Linux PPTP Client with WinNT PPTP Server</TITLE>
4</HEAD>
5<BODY BGCOLOR="#FFFFFF">
6<H1>Setting up the Linux PPTP 1.0.2 client (and PPP 2.3.5) with Windows NT PPTP Server</H1>
7
8<HR>
9<A NAME="aboutsys"></A>
10<H2>About the systems</H2>
11<P>
12This document assumes the following:
13<ul>
14<li>remote machine name = orge
15<li>domain remote machine belongs to = gnoll
16<li>username on remote machine = billybob
17<li>password for billybob = bobbybill
18</ul>
19We want to connect our local machine to the remote machine using PPTP. The
20remote machine is a <I>Windows NT</I> box while our local machine is a
21<I>Linux box</I>.
22</P>
23
24<HR>
25
26<A NAME="chapsecrets"></A>
27<H2>PPP chap-secrets file</H2>
28<P>
29Find the <I>chap-secrets</I> file which should be in <I>/etc/ppp/</I>. This
30file should look like this:
31</P>
32<P>
33<TABLE>
34<TR><TD># chap-secrets</TD></TR><TR>
35<TD># client</TD><TD>server</TD><TD>secret</TD><TD>IP adresses</TD></TR><TR>
36<TD>gnoll\\billybob</TD><TD>orge</TD><TD>bobbybill</TD><TD></TD></TR>
37</TABLE>
38</P>
39
40<HR>
41<A NAME="debugging"></A>
42<H2>Setting up PPP debugging</H2>
43<P>
44PPP debugging is handled by <I>syslogd</I>. To setup debugging open
45<I>syslog.conf</I> which should be found in <I>/etc/</I> and add the following
46entry:
47</P>
48<P>
49<B>daemon.debug /var/log/pppd.log</B>
50</P>
51
52<HR>
53<A NAME="launchpptp"></A>
54<H2>Launching PPTP</H2>
55<P>
56The following command is issued on the linux box to connect to the remote NT
57machine.
58</P>
59<P>
60<B>pptp orge debug name gnoll\\billybob remotename orge</B>
61</P>
62
63<HR>
64<A NAME="errors"></A>
65<H2>Errors</H2>
66<P>
67<B>E=691</B><BR>
68This error occurs when you supply an incorrect username/password to the remote
69NT machine. Check the chap-secrets file and the command line where PPTP is
70launched.
71</P>
72
73<HR>
74<A NAME="testing"></A>
75<H2>Testing</H2>
76<P>
77<ul>
78<li> run 'ifconfig' and check that a ppp0 interface exists
79<li> find P-t-P: xxx.xxx.xxx.xxx from the output of ifconfig
80<li> run 'netstat -i' and record the RX-OK and TX-OK values for ppp0
81<li> type 'ping xxx.xxx.xxx.xxx'
82<li> run 'netstat -i' again and see if the values for RX and TX increased.. if yes then it would appear to be working ok....... in theory anyway.
83</ul>
84
85<HR>
86<A HREF="http://www.moretonbay.com/vpn/pptp.html">PoPToP Home Page</a>
87</BODY>
88</HTML>
89
90