Annotation of elwix/config/etc/default/ppp/ppp.conf, revision 1.1.1.1
1.1 misho 1: #################################################################
2: # PPP Sample Configuration File
3: # Originally written by Toshiharu OHNO
4: # Simplified 5/14/1999 by wself@cdrom.com
5: #
6: # See /usr/share/examples/ppp/ for some examples
7: #
8: # $FreeBSD: src/etc/ppp/ppp.conf,v 1.11 2008/07/19 20:00:18 marcel Exp $
9: #################################################################
10:
11: default:
12: set log Phase Chat LCP IPCP CCP tun command
13: ident elwix (built COMPILATIONDATE)
14:
15: # Ensure that "device" references the correct serial port
16: # for your modem. (cuau0 = COM1, cuau1 = COM2)
17: #
18: set device /dev/cuau1
19:
20: set speed 115200
21: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
22: \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
23: set timeout 180 # 3 minute idle timer (the default)
24: enable dns # request DNS info (for resolv.conf)
25: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
26: set redial 15 0
27: set reconnect 15 28800
28:
29: papchap:
30: #
31: # edit the next three lines and replace the items in caps with
32: # the values which have been assigned by your ISP.
33: #
34:
35: set phone PHONE_NUM
36: set authname USERNAME
37: set authkey PASSWORD
38:
39: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
40: add default HISADDR # Add a (sticky) default route
41:
42: ###############################################################################
43:
44: radius:
45: set radius /etc/ppp/radius.conf
46: set rad_alive 300
47: set rad_port_id tunnum
48:
49: pppoed:
50: # set log Chat Command Phase
51: set log Phase Chat LCP IPCP CCP tun command
52: load radius
53: # enable pap
54: enable chap
55: allow mode direct
56: enable proxy
57: disable ipv6cp
58: set mtu 1492
59: set mru 1492
60: set ifaddr 10.0.0.1 10.0.1.1-10.0.2.254 255.255.255.255
61: set speed sync
62: set timeout 0
63: enable echo
64: enable lqr
65: accept lqr
66: accept dns
67:
68: ###############################################################################
69:
70: mtel:
71: enable force-scripts
72: # MTEL GPRS/EDGE
73: set phone "*99***1#"
74: # MTEL CSD
75: #set phone "+359 88 1000"
76:
77: set timeout 300
78: enable dns
79: resolv rewrite
80: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
81: add default HISADDR
82:
83: rfcomm:
84: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
85: \"\" AT OK-AT-OK ATE1Q0 OK \
86: AT+CGDCONT=1,\\\"IP\\\",\\\"inet-gprs.mtel.bg\\\" OK \
87: \\dATDT\\T TIMEOUT 40 CONNECT"
88: load mtel
89:
90: 3g-pin:
91: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
92: \"\" AT OK-AT-OK ATE1Q0 OK \
93: AT+CPIN=0000 +ZEND \
94: AT+CGDCONT=1,\\\"IP\\\",\\\"inet-gprs.mtel.bg\\\" OK \
95: \\dATDT\\T TIMEOUT 40 CONNECT"
96: load mtel
97: set device /dev/ttyU0.2
98: dial
99:
100: 3g:
101: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
102: \"\" AT OK-AT-OK ATE1Q0 OK \
103: AT+CGDCONT=1,\\\"IP\\\",\\\"inet-gprs.mtel.bg\\\" OK \
104: \\dATDT\\T TIMEOUT 40 CONNECT"
105: load mtel
106: set device /dev/ttyU0.2
107: dial
108:
109:
110:
111: pppoe_client:
112: set device PPPoE:fxp0:aitnet_AC
113: set speed sync
114: set mtu 1492
115: set mru 1492
116: enable lqr
117: set lqrperiod 5
118: set timeout 0
119: set authname testuser
120: set authkey testpass
121: set dial
122: set login
123: add default HISADDR
124:
125: pptp_client:
126: set speed sync
127: enable lqr
128: set lqrperiod 5
129: set timeout 0
130: set authname testuser
131: set authkey testpass
132: set dial
133: set login
134: add default HISADDR
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>