setup_pptp_client.html 2.2 KB

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