################################################################# # # PPP Sample Configuration File # # Originally written by Toshiharu OHNO # # $OpenBSD: ppp.conf.sample,v 1.24 2006/07/30 18:02:01 david Exp $ # ################################################################# # Default setup. Always executed when PPP is invoked. # This section is *not* loaded by the ``load'' or ``dial'' commands. # # This is the best place to specify your modem device, its DTR rate, # and any logging specification. Logging specs should be done first # so that subsequent commands are logged. # default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # set redial 15 28800 # set reconnect 15 28800 # debug # To connect via a GPRS or UMTS device (e.g. a mobile phone or a PC Card), # it's often necessary to set the access-point name (in this case 'internet') # which requires quotes in the dial string. This section shows the escaping # required. Devices that have not already authenticated the SIM card (like a # PC Card) need to issue the "AT+CPIN=xxxx" (xxxx being the PIN for the SIM # card) first. # For certain devices it is necessary to adjust the baud rate (speed setting) # and/or change the dial string to "*99***1#". # UMTS devices often allow control of the connect mode (UMTS only, GPRS only # or default to which is available); this can be controlled with the number # passed to the AT+CGDCONT command and is device dependant. # Some ISPs do special things in their IPCP session in order to negotiate # the IP addresses; in this case it may be necessary to play with the ifaddr # setting. # See also: com(4), ubsa(4), ucom(4) and umodem(4) # # # the GPRS configuration : # Nokia: set device /dev/ttyU0 set speed 115200 set timeout 180 enable dns set dial "ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" ATZ OK-ATZ-OK AT+CGDCONT=1,\\\"IP\\\",\\\"websfr\\\" OK \\dATD\\T TIMEOUT 40 CONNECT" set phone "*99***1\#" set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add! default HISADDR