




已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 /etc/ppp/chap-secrets记录CHAP认证的密码配置文件格式:用户名服务名称密码Ip地址eg:zhengyipptpdzhengyi*其中IP地址这一列,我们可以为特定用户手工指定特定IP。如果没有指定,为“*”,那么PPTP VPN服务器从/etc/pptp.conf文件中我们设定的remoteip中选择一个分配给客户端。2 /etc/ppp/options.pptpd当从一个客户端接受一个连接时,由ppp使用的选项文件。由/etc/pptpd.conf的option选项指定。所有改变在下一个连接时生效。具体参见“man pppd”。# Authentication# Name of the local system for authentication purposes# (must match the second field in /etc/ppp/chap-secrets entries)name pptpd设置认证名,pptpd要与/etc/ppp/chap-secrets中的服务名称(第二个字段)相匹配。# Strip the domain prefix from the username before authentication.# (applies if you use pppd with chapms-strip-domain patch)#chapms-strip-domainchapms-strip-domain(去除认证前用户名的前缀)用于pppd# Encryption# (There have been multiple versions of PPP with encryption support,# choose with of the following sections you will use.)加密# BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o# #refuse-pap#refuse-chap#refuse-mschap# Require the peer to authenticate itself using MS-CHAPv2 Microsoft# Challenge Handshake Authentication Protocol, Version 2 authentication.#require-mschap-v2# Require MPPE 128-bit encryption# (note that MPPE requires the use of MSCHAP-V2 during authentication)#require-mppe-128# 允许的协议选项,与拨号用户的配置要一致。(require-mppe-128选项要在mschap-v2认证期间使用,否则连接会失败)# OpenSSL licensed ppp-2.4.1 fork with MPPE only, kernel module mppe.o# #-chap#-chapms# Require the peer to authenticate itself using MS-CHAPv2 Microsoft# Challenge Handshake Authentication Protocol, Version 2 authentication.#+chapms-v2# Require MPPE encryption# (note that MPPE requires the use of MSCHAP-V2 during authentication)#mppe-40 # enable either 40-bit or 128-bit, not both#mppe-128#mppe-stateless# mppe-40与mppe-128不能同时使用,mppe选项要在mschap-v2认证期间使用。# Network and Routing# If pppd is acting as a server for Microsoft Windows clients, this# option allows pppd to supply one or two DNS (Domain Name Server)# addresses to the clients. The first instance of this option# specifies the primary DNS address; the second instance (if given)# specifies the secondary DNS address.#ms-dns #ms-dns pppd为windows客户端作为服务器运行时,允许设置一或两个DNS。第一个请求例程使用前面的dns地址,第二个请求例程使用后面的dns地址。# If pppd is acting as a server for Microsoft Windows or Samba# clients, this option allows pppd to supply one or two WINS (Windows# Internet Name Services) server addresses to the clients. The first# instance of this option specifies the primary WINS address; the# second instance (if given) specifies the secondary WINS address.#ms-wins #ms-wins pppd为windows或samba客户端作为服务器运行时,允许设置一或两个WINS。第一个请求例程使用前面的dns地址,第二个请求例程使用后面的dns地址。# Add an entry to this systems ARP Address Resolution Protocol# table with the IP address of the peer and the Ethernet address of this# system. This will have the effect of making the peer appear to other# systems to be on the local ethernet.# (you do not need this if your PPTP server is responsible for routing# packets to the clients - James Cameron)proxyarp代理arp# Normally pptpd passes the IP address to pppd, but if pptpd has been# given the delegate option in pptpd.conf or the -delegate command line# option, then pppd will use chap-secrets or radius to allocate the# client IP address. The default local IP address used at the server# end is often the same as the address of the server. To override this,# specify the local IP address here.# (you must not use this unless you have used the delegate option)#00当使用了delegate选项或者有命令行选项-delegeate,pppd会使用chap-secrets或radius分配客户端IP地址。# Logging# Enable connection debugging facilities.# (see your syslog configuration for where pppd sends to)debug开启调试工具# Print out all the option values which have been set.# (often requested by mailing list to verify options)#dump打印选项值# Miscellaneous# Create a UUCP-style lock file for the pseudo-tty to ensure exclusive# access.lock为虚拟设备创建UUCP类型的锁文件,确保独占式连接。# Disable BSD-Compress compressionnobsdcomp禁止BSD-Compress压缩# Disable Van Jacobson compression# (needed on some networks with Windows 9x/ME/XP clients, see posting to# poptop-server on 14th April 2005 by Pawel Pokrywka and followups,# /?t=111343175400006&r=1&w=2 )novjnovjccomp禁止VJ压缩# turn off logging to stderr, since this may be redirected to pptpd,# which may trigger a loopbacknologfd关闭标准出错输出。# put plugins here# (putting them higher up may cause them to sent messages to the pty)3 /etc/pptpd.conf主配置文件当pptpd重启动时修改会生效# TAG: ppp# Path to the pppd program, default /usr/sbin/pppd on Linux#ppp /usr/sbin/pppd# TAG: option# Specifies the location of the PPP options file.# By default PPP looks in /etc/ppp/options#option /etc/ppp/options.pptpd指定pptpd选型文件的路径# TAG: debug# Turns on (more) debugging to syslog#debug开启调试信息工具# TAG: stimeout# Specifies timeout (in seconds) on starting ctrl connection# stimeout 10连接超时# TAG: noipparam# Suppress the passing of the clients IP address to PPP, which is# done by default otherwise.#noipparam禁止向PPP传入ip地址参数。# TAG: logwtmp# Use wtmp(5) to record client connections and disconnections.#logwtmp用wtmp显示客户端的连接与断开。# TAG: bcrelay # Turns on broadcast relay to clients from interface #bcrelay eth1开启网卡广播转接# TAG: delegate# Delegates the allocation of client IP addresses to pppd.# Without this option, which is the default, pptpd manages the list of# IP addresses for clients and passes the next free address to pppd.# With this option, pptpd does not pass an address, and so pppd may use# radius or chap-secrets to allocate an address.#delegate不用这个选项,默认情况,pptpd为客户端管理ip地址列表,并传递下一个空闲地址给pppd。使用这个选项,pptpd不会给pppd传递地址,radius或chap-secrets分配地址给pppd。# TAG: connections# Limits the number of client connections that may be accepted.# If pptpd is allocating IP addresses (e.g. delegate is not# used) then the number of connections is also limited by the# remoteip option. The default is 100.connections 1允许接受客户端连接数的上限。如果没有设置delegate选项,连接数也受限与remoteip选项。默认为100。# TAG: localip# TAG: remoteip# Specifies the local and remote IP address ranges.# These options are ignored if delegate option is set.# Any addresses work as long as the local machine takes care of the# routing. But if you want to use MS-Windows networking, you should# use IP addresses out of the LAN address space and use the proxyarp# option in the pppd options file, or run bcrelay.# You can specify single IP addresses seperated by commas or you can# specify ranges, or both. For example:# 34,45-249,54# IMPORTANT RESTRICTIONS:# 1. No spaces are permitted between commas or
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 20xx年装修施工合同2篇
- 雕塑设计与制作公司员工保密合同
- 安全方面培训目的课件
- 电梯工程分包方案模板(3篇)
- 球磨机系统安全培训课件
- 安全文明施工培训
- 环保水处理岗位知识培训课件
- 防洪工程安全方案(3篇)
- 地下防水的工程方案(3篇)
- 初中语文古诗词教学策略分析
- 2025年科级领导干部任前廉政法规知识考试题(附答案)
- 中医肺与大肠的关系讲解
- 基孔肯雅热防控知识宣讲课件
- 碳青霉烯酶进化监测-洞察及研究
- 2025年青岛工会知识竞赛题库
- 检验科异常结果管理制度
- 化学使世界变得更加绚丽多彩
- 心理健康教育《我上学了》
- 2025年中国电信招聘笔试参考题库附带答案详解
- 2025秋部编版(2024)八年级上册道德与法治 【教学课件】1.1《认识社会生活》
- 2025年重庆市高考历史试卷真题(含答案)
评论
0/150
提交评论