ppp.conf.sample (113346) | ppp.conf.sample (137882) |
---|---|
1################################################################# 2# 3# PPP Sample Configuration File 4# 5# Originally written by Toshiharu OHNO 6# | 1################################################################# 2# 3# PPP Sample Configuration File 4# 5# Originally written by Toshiharu OHNO 6# |
7# $FreeBSD: head/share/examples/ppp/ppp.conf.sample 113346 2003-04-10 21:33:02Z keramida $ | 7# $FreeBSD: head/share/examples/ppp/ppp.conf.sample 137882 2004-11-19 03:51:12Z obrien $ |
8# 9################################################################# 10 11# This file is separated into sections. Each section is named with 12# a label starting in column 0 and followed directly by a ``:''. The 13# section continues until the next label. Blank lines and characters 14# after a ``#'' are ignored (a literal ``#'' must be escaped with a ``\'' 15# or quoted with ""). All commands inside sections that do not begin --- 8 unchanged lines hidden (view full) --- 24# This section is *not* pre-loaded by the ``load'' or ``dial'' commands. 25# 26# This is the best place to specify your modem device, its DTR rate, 27# your dial script and any logging specification. Logging specs should 28# be done first so that the results of subsequent commands are logged. 29# 30default: 31 set log Phase Chat LCP IPCP CCP tun command | 8# 9################################################################# 10 11# This file is separated into sections. Each section is named with 12# a label starting in column 0 and followed directly by a ``:''. The 13# section continues until the next label. Blank lines and characters 14# after a ``#'' are ignored (a literal ``#'' must be escaped with a ``\'' 15# or quoted with ""). All commands inside sections that do not begin --- 8 unchanged lines hidden (view full) --- 24# This section is *not* pre-loaded by the ``load'' or ``dial'' commands. 25# 26# This is the best place to specify your modem device, its DTR rate, 27# your dial script and any logging specification. Logging specs should 28# be done first so that the results of subsequent commands are logged. 29# 30default: 31 set log Phase Chat LCP IPCP CCP tun command |
32 set device /dev/cuaa1 | 32 set device /dev/cuad1 |
33 set speed 115200 34 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \ 35 OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" 36 37# Client side PPP 38# 39# Although the PPP protocol is a peer to peer protocol, we normally 40# consider the side that initiates the connection as the client and --- 99 unchanged lines hidden (view full) --- 140 OK-AT-OK ATB40&J3E1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" 141 set login 142 set logout 143 set hangup 144 145 set timeout 60 300 # The minimum charge period is 5 minutes, so don't 146 # hangup before then 147 | 33 set speed 115200 34 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \ 35 OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" 36 37# Client side PPP 38# 39# Although the PPP protocol is a peer to peer protocol, we normally 40# consider the side that initiates the connection as the client and --- 99 unchanged lines hidden (view full) --- 140 OK-AT-OK ATB40&J3E1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" 141 set login 142 set logout 143 set hangup 144 145 set timeout 60 300 # The minimum charge period is 5 minutes, so don't 146 # hangup before then 147 |
148 set device /dev/cuaa0 # Or whatever | 148 set device /dev/cuad0 # Or whatever |
149 set speed 115200 # Use as high a speed as possible 150 151 enable dns # Ask the peer what to put in resolv.conf 152 153 # Take a wild guess at an IP number and let the other side decide 154 set ifaddr 172.16.0.1/0 212.0.0.0/0 0 0 155 add! default hisaddr 156 --- 153 unchanged lines hidden (view full) --- 310 set filter out 7 permit udp dst gt 33433 # traceroute 311 312# 313# ``dodgynet'' is an example intended for an autodial configuration which 314# is connecting a local network to a host on an untrusted network. 315dodgynet: 316 set log Phase # Log link uptime 317 allow mode auto # For autoconnect only | 149 set speed 115200 # Use as high a speed as possible 150 151 enable dns # Ask the peer what to put in resolv.conf 152 153 # Take a wild guess at an IP number and let the other side decide 154 set ifaddr 172.16.0.1/0 212.0.0.0/0 0 0 155 add! default hisaddr 156 --- 153 unchanged lines hidden (view full) --- 310 set filter out 7 permit udp dst gt 33433 # traceroute 311 312# 313# ``dodgynet'' is an example intended for an autodial configuration which 314# is connecting a local network to a host on an untrusted network. 315dodgynet: 316 set log Phase # Log link uptime 317 allow mode auto # For autoconnect only |
318 set device /dev/cuaa1 # Define modem device and speed | 318 set device /dev/cuad1 # Define modem device and speed |
319 set speed 115200 320 deny lqr # Don't support LQR 321 set phone 0W1194 # Remote system phone number, 322 set authname "pppLogin" # login 323 set authkey "MyPassword" # and password 324 set dial "ABORT BUSY ABORT NO\\sCARRIER \ # Chat script to dial the peer 325 TIMEOUT 5 \"\" ATZ OK-ATZ-OK \ 326 ATE1Q0M0 OK \\dATDT\\T \ --- 140 unchanged lines hidden (view full) --- 467# row fail. 468# 469# Make sure you don't have "deny lqr" in your default: on the client ! 470# If the peer denies LQR, we still send ECHO LQR packets at the given 471# lqrperiod interval (ppp-style-pings). 472# 473direct-client: 474 set dial | 319 set speed 115200 320 deny lqr # Don't support LQR 321 set phone 0W1194 # Remote system phone number, 322 set authname "pppLogin" # login 323 set authkey "MyPassword" # and password 324 set dial "ABORT BUSY ABORT NO\\sCARRIER \ # Chat script to dial the peer 325 TIMEOUT 5 \"\" ATZ OK-ATZ-OK \ 326 ATE1Q0M0 OK \\dATDT\\T \ --- 140 unchanged lines hidden (view full) --- 467# row fail. 468# 469# Make sure you don't have "deny lqr" in your default: on the client ! 470# If the peer denies LQR, we still send ECHO LQR packets at the given 471# lqrperiod interval (ppp-style-pings). 472# 473direct-client: 474 set dial |
475 set device /dev/cuaa0 | 475 set device /dev/cuad0 |
476 set sp 115200 477 set timeout 900 478 set lqrperiod 10 479 set log Phase Chat LQM 480 set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: ppp word: ppp HELLO" 481 set ifaddr 10.0.4.2 10.0.4.1 482 enable lqr 483 accept lqr --- 162 unchanged lines hidden (view full) --- 646# clients on numbers configured in /etc/ppp/ppp.secret (the 5th field): 647# 648callback-server: 649 load server 650 set callback cbcp 651 set cbcp 652 set log +cbcp 653 set redial 3 1 | 476 set sp 115200 477 set timeout 900 478 set lqrperiod 10 479 set log Phase Chat LQM 480 set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: ppp word: ppp HELLO" 481 set ifaddr 10.0.4.2 10.0.4.1 482 enable lqr 483 accept lqr --- 162 unchanged lines hidden (view full) --- 646# clients on numbers configured in /etc/ppp/ppp.secret (the 5th field): 647# 648callback-server: 649 load server 650 set callback cbcp 651 set cbcp 652 set log +cbcp 653 set redial 3 1 |
654 set device /dev/cuaa0 | 654 set device /dev/cuad0 |
655 set speed 115200 656 set dial "TIMEOUT 10 \"\" AT OK-AT-OK ATDT\\T CONNECT" 657 658# Or if we want to allow authenticated clients to specify their own 659# callback number: 660# 661callback-server-client-decides: 662 load callback-server --- 12 unchanged lines hidden (view full) --- 675# See ppp.conf.isdn for an example of how to do multi-link isdn. 676# 677# You can now ``dial'' specific links, or even dial all links at the 678# same time. The `dial' command may also be prefixed with a specific 679# link that should do the dialing. 680# 681mloop: 682 load loop | 655 set speed 115200 656 set dial "TIMEOUT 10 \"\" AT OK-AT-OK ATDT\\T CONNECT" 657 658# Or if we want to allow authenticated clients to specify their own 659# callback number: 660# 661callback-server-client-decides: 662 load callback-server --- 12 unchanged lines hidden (view full) --- 675# See ppp.conf.isdn for an example of how to do multi-link isdn. 676# 677# You can now ``dial'' specific links, or even dial all links at the 678# same time. The `dial' command may also be prefixed with a specific 679# link that should do the dialing. 680# 681mloop: 682 load loop |
683 set device /dev/cuaa0 /dev/cuaa1 /dev/cuaa2 # Use any of these devices | 683 set device /dev/cuad0 /dev/cuad1 /dev/cuad2 # Use any of these devices |
684 set mode interactive 685 set mrru 1500 686 set mru 1504 # Room for the MP header 687 clone 1 2 3 688 link deflink remove 689 # dial 690 # link 2 dial 691 # link 3 dial --- 100 unchanged lines hidden --- | 684 set mode interactive 685 set mrru 1500 686 set mru 1504 # Room for the MP header 687 clone 1 2 3 688 link deflink remove 689 # dial 690 # link 2 dial 691 # link 3 dial --- 100 unchanged lines hidden --- |