📄 pppoe.conf.5
字号:
.\" $Id: pppoe.conf.5,v 1.7 2005/08/09 02:49:16 dfs Exp $.\" LIC: GPL.\"".TH PPPOE.CONF 5 "21 February 2000".UC 4.SH NAMEpppoe.conf \- Configuration file used by \fBpppoe-start\fR(8),\fBpppoe-stop\fR(8), \fBpppoe-status(8)\fR and \fBpppoe-connect\fR(8)..SH DESCRIPTION\fB/etc/ppp/pppoe.conf\fR is a shell script which contains configurationinformation for Roaring Penguin's PPPoE scripts. Note that \fBpppoe.conf\fRis used only by the various pppoe-* shell scripts, not by \fBpppoe\fRitself.\fBpppoe.conf\fR consists of a sequence of shell variable assignments.The variables and their meanings are:.TP.B ETHThe Ethernet interface connected to the DSL modem (for example, eth0)..TP.B USERThe PPPoE user-id (for example, b1xxnxnx@sympatico.ca)..TP.B SERVICENAMEIf this is not blank, then it is passed with the \fB\-S\fR option to\fBpppoe\fR. It specifies a service name to ask for. Usually, youshould leave it blank..TP.B ACNAMEIf this is not blank, then it is passed with the \fB\-C\fR option to\fBpppoe\fR. It specifies the name of the access concentrator to connectto. Usually, you should leave it blank..TP.B DEMANDIf set to a number, the link is activated on demand and brought downafter after \fBDEMAND\fR seconds. If set to \fBno\fR, the link is keptup all the time rather than being activated on demand..TP.B DNSTYPEOne of \fBNOCHANGE\fR, \fBSPECIFY\fR or \fBSERVER\fR. Ifset to NOCHANGE, \fBpppoe-connect\fR will not adjust the DNS setup inany way. If set to SPECIFY, it will re-write /etc/resolv.conf withthe values of DNS1 and DNS2. If set to \fBSERVER\fR, it willsupply the \fIusepeerdns\fR option to \fBpppd\fR, and make a symlinkfrom /etc/resolv.conf to /etc/ppp/resolv.conf..TP.B DNS1, DNS2IP addresses of DNS servers if you use DNSTYPE=SPECIFY..TP.B NONROOTIf the line \fBNONROOT=OK\fR (exactly like that; no whitespace or comments)appears in the configuration file, then \fBpppoe-wrapper\fR will allownon-root users to bring the conneciton up or down. The wrapper is installedonly if you installed the rp-pppoe-gui package..TP.B USEPEERDNSIf set to "yes", then \fBpppoe-connect\fR will supply the \fIusepeerdns\fRoption to \fBpppd\fR, which causes it to obtain DNS server addressesfrom the peer and create a new \fB/etc/resolv.conf\fR file. Otherwise,\fBpppoe-connect\fR will not supply this option, and \fBpppd\fR will notmodify \fB/etc/resolv.conf\fR..TP.B CONNECT_POLLHow often (in seconds) \fBpppoe-start\fR should check to see if a new PPPinterface has come up. If this is set to 0, the \fBpppoe-start\fR simplyinitiates the PPP session, but does not wait to see if it comes upsuccessfully..TP.B CONNECT_TIMEOUTHow long (in seconds) \fBpppoe-start\fR should wait for a new PPP interfaceto come up before concluding that \fBpppoe-connect\fR has failed and killingthe session..TP.B PINGA character which is echoed every \fBCONNECT_POLL\fR seconds while\fBpppoe-start\fR is waiting for the PPP interface to come up..TP.B FORCEPINGA character which is echoed every \fBCONNECT_POLL\fR seconds while\fBpppoe-start\fR is waiting for the PPP interface to come up. Similarto \fBPING\fR, but the character is echoed even if \fBpppoe-start\fR'sstandard output is not a tty..TP.B PIDFILEA file in which to write the process-ID of the pppoe-connect process(for example, \fB/var/run/pppoe.pid\fR). Two additional files($PIDFILE.pppd and $PIDFILE.pppoe) hold the process-ID's of the\fBpppd\fR and \fBpppoe\fR processes, respectively..TP.B SYNCHRONOUSAn indication of whether or not to use synchronous PPP (\fByes\fR or\fBno\fR). Synchronous PPP is safe on Linux machines with the n_hdlcline discipline. (If you have a file called "n_hdlc.o" in yourmodules directory, you have the line discipline.) It is \fInotrecommended\fR on other machines or on Linux machines without then_hdlc line discipline due to some known and unsolveable raceconditions in a user-mode client..TP.B CLAMPMSSThe value at which to "clamp" the advertised MSS for TCP sessions. Thedefault of 1412 should be fine..TP.B LCP_INTERVALHow often (in seconds) \fBpppd\fR sends out LCP echo-request packets..TP.B LCP_FAILUREHow many unanswered LCP echo-requests must occur before \fBpppd\fRconcludes the link is dead..TP.B PPPOE_TIMEOUTIf this many seconds elapse without any activity seen by \fBpppoe\fR,then \fBpppoe\fR exits..TP.B FIREWALLOne of NONE, STANDALONE or MASQUERADE. If NONE, then \fBpppoe-connect\fR doesnot add any firewall rules. If STANDALONE, then it clears existing firewallrules and sets up basic rules for a standalone machine. If MASQUERADE, thenit clears existing firewall rules and sets up basic rules for an Internetgateway. If you run services on your machine, these simple firewall scriptsare inadequate; you'll have to make your own firewall rules and set FIREWALLto NONE..TP.B PPPOE_EXTRAAny extra arguments to pass to \fBpppoe\fR.TP.B PPPD_EXTRAAny extra arguments to pass to \fBpppd\fR.TP.B LINUX_PLUGINIf non-blank, the full path of the Linux kernel-mode PPPoE plugin(typically \fB/etc/ppp/plugins/rp-pppoe.so\fR.) This forces\fBpppoe-connect\fR to use kernel-mode PPPoE on Linux 2.4.x systems.This code is experimental and unsupported. Use of the plugin causes\fBpppoe-connect\fR to ignore CLAMPMSS, PPPOE_EXTRA, SYNCHRONOUS andPPPOE_TIMEOUT..PBy using different configuration files with different PIDFILEsettings, you can manage multiple PPPoE connections. Just specify theconfiguration file as an argument to \fBpppoe-start\fR and \fBpppoe-stop\fR..SH SEE ALSOpppoe(8), pppoe-connect(8), pppoe-start(8), pppoe-stop(8), pppd(8), pppoe-setup(8),pppoe-wrapper(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -