## change /'pptpd/' to whatever you specify as your server name in chap-secrets name pptpd
proxyarp bsdcomp 0
# This option applies if you use ppp with chapms-strip-domain patch #chapms-strip-domain auth #ipcp-accept-local #ipcp-accept-remote #lcp-echo-failure 3 #lcp-echo-interval 5 #deflate 0
# These options apply if you use ppp with mppe patch # NB! You should also apply the ChapMS-V2 patch require-chap #pap #chap #chapms #chapms-v2 #mppe-128 #mppe-stateless #mppe-40
# These options will tell ppp to pass on these to your clients # To use ms-dns or ms-dns in options.pptpd it must exist in /etc/resolv.conf #ms-wins your.server.here ms-dns 202.119.32.6
看到1.1.4后面带个b2就没下,觉得是beta版( icon_question.gif ),拿的1.1.3的,也是configure, make, make install。
好象还有什么2.*.*的版本,搞不懂怎么这么多系列。 icon_confused.gif
然后就是去/etc下面看看pptpd.conf,没有的话就去拷贝一个吧,基本都不要改的。
代码:
################################################################################ # # Sample PoPToP configuration file # # for PoPToP version 1.1.3 # ################################################################################
# TAG: speed # # Specifies the speed for the PPP daemon to talk at. # #speed 115200
# TAG: option # # Specifies the location of the PPP options file. # By default PPP looks in /'/etc/ppp/options/' # option /etc/ppp/options.pptpd
# TAG: stimeout # # Specifies timeout (in seconds) on starting ctrl connection # # stimeout 10
# TAG: debug # # Turns on (more) debugging to syslog # debug
# TAG: localip # TAG: remoteip # # Specifies the local and remote IP address ranges. # # You can specify single IP addresses seperated by commas or you can # specify ranges, or both. For example: # # 192.168.0.234,192.168.0.245-249,192.168.0.254 # # IMPORTANT RESTRICTIONS: # # 1. No spaces are permitted between commas or within addresses. # # 2. If you give more IP addresses than MAX_CONNECTIONS, it will # start at the beginning of the list and go until it gets # MAX_CONNECTIONS IPs. Others will be ignored. # # 3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238, # you must type 234-238 if you mean this. # # 4. If you give a single localIP, that/'s ok - all local IPs will # be set to the given one. You MUST still give at least one remote # IP for each simultaneous client. # #localip 172.16.46.100 #remoteip 172.16.46.234-238 # or localip 192.168.20.234-235 remoteip 192.168.20.244-245