⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 using

📁 pptp第二层隧道模块
💻
字号:
Usage Notespptp is started as a psuedo-tty child process using pppd's pty option:	pppd call provider [pppd-options] \	pty "/usr/sbin/pptp hostname --nolaunchpppd [pptp-options]"where hostname is the host name or IP address of the PPTP server.pptp can also start pppd itself:	pptp hostname [pptp-options] [pppd-options]Note the unusual order of arguments, the hostname comes before thepptp options, and the pppd options come last.So, for example:	pptp my.pptp.host debug name cananian \	remotename ntdialup 172.18.0.2:172.18.0.3	route add -net 172.18.0.0 netmask 255.255.0.0 gw 172.18.0.3You will see three pptp-related processes in your process list: a callmanager, a GRE/PPP en/decapsulator, and pppd.  To shut down the pptpconnection, kill the pppd process.NOTE THAT PPTP MUST BE RUN AS ROOT.  This is so that it can generateGRE packets using a raw socket.Most trouble with pptp will probably be due to incorrect pppdconfiguration.  Be sure you thoroughly understand MS-CHAP support inpppd.  Use the 'debug' option to pppd to log connection information;this will help you trouble-shoot the pppd side of pptp.See the project web site for diagnosis assistance.QUIRKS HANDLING:Some ADSL providers and some ADSL hardware are buggy or not conformingto the RFC, and require special handling.  To this end, pptp supportsa 'quirks' mechanism.  Currently, only '--quirks BEZEQ_ISRAEL' isdefined, for connecting to Bezeq (the Israeli phone company) ADSLservice.Only *some* of the equipment used by Bezeq needs this option, but eventhe equipment that does not need it works fine with it.  If you useBezeq, you probably want the '--quirks BEZEQ_ISRAEL' switch.More information on Bezeq's ADSL service can be found athttp://vipe.technion.il/~mulix/adsl-howto.txt andhttp://damyen.technion.ac.il/~dani/adsl-howto.txt.TESTING MULTIPLE TUNNELS:For testing of PPTP servers, the client can be used to establishmultiple tunnels from multiple IP addresses.  The addresses must beroutable; this is something you'd do on a local area network.1. use an address pool on a concentrator.2. write an ip-up script (e.g. /etc/ppp/ip-up.local or /etc/ppp/ip-up.d)	#!/bin/sh	export PATH=/sbin:/usr/sbin:/bin:/usr/bin	REALDEVICE=$1	PEERADDR=$6	ifconfig ${REALDEVICE} dstaddr ${PEERADDR}The script performs an "ifconfig pppx dstaddr xx.xx.xx.xx" wherexx.xx.xx.xx is the private address of the concentrator so that therouting works without having to do iptables or ipchains.  The addressused is given on the pptp command line.3. create distinct source interfaces with:        ifconfig eth0:n xx.xx.xx.xx netmask yy.yy.yy.yy Where "n" is the alias interface number, "xx.xx.xx.xx" is the newaddress, and "yy.yy.yy.yy" is the network mask.4. connect with	pptp concentrator --bind xx.xx.xx.xx name \        xx remotename yy ipparam yy.yy.yy.yy                                        ^ (private address of concentrator).Where "xx.xx.xx.xx" is the address of the source interface, "xx" isthe local name of the tunnel, "yy" is the remote name of the tunnel,and "yy.yy.yy.yy" is the private address of the concentrator.  This ispassed to the ip-up script as the sixth argument.See also the following test scripts;test-multiple-tunnels-1.sh  creates multiple source interfacestest-multiple-tunnels-2.sh  creates multiple tunnels$Id: USING,v 1.6 2003/02/15 04:32:50 quozl Exp $	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -