====== PPP Orange ======
===== Ustawienia od Operatora =====
* APN: **''internet''**
* Numer dostępowy: **''*99#''**
* Nazwa użytkownika: **''internet''**
* Hasło: **''internet''**
* DNS: **''dynamiczny''**
===== ppp.conf =====
Założenia:
* port modemu: **''/dev/cuaU0.2''**
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
# Ensure that "device" references the correct serial port
# for your modem. (cuau0 = COM1, cuau1 = COM2)
set device /dev/cuau0.2
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
orange:
set device /dev/cuaU0.2
set speed 115200
set redial 5 10
set timeout 10
set authname internet
set authkey internet
set phone "*99#"
set dial "ABORT BUSY TIMEOUT 5 \
\"\" \
AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATD\\T CONNECT"
disable ipv6cp
resolv writable
#set dns 208.67.220.220 208.67.222.222 # openDNS
set ifaddr 10.0.0.2/0 10.0.0.1/0 255.255.255.255 0.0.0.0
add default HISADDR
===== mpd.conf =====
Alternatywnie można użyć ''net/mpd5''
Przykładowa konfiguracja do modemu Huawei E3372:
startup:
# configure mpd users
set user foo bar admin
set user foo1 bar1
# configure the console
set console self 127.0.0.1 5005
set console open
# configure the web server
set web self 0.0.0.0 5006
set web open
default:
load orange
orange:
create bundle static B1
set bundle links L1
set iface name ppp0
set iface route default
#set iface up-script /usr/local/etc/mpd5/up.sh
set ipcp ranges 0.0.0.0/0 10.0.0.1/0
set ipcp disable req-pri-dns
set ipcp disable req-sec-dns
set ipcp disable req-pri-nbns
set ipcp disable req-sec-nbns
create link static L1 modem
set modem device /dev/cuaU0.1
set modem var $DialPrefix "D"
set modem var $Telephone "*99#"
set modem var $InitString "+CGDCONT=1,\"IP\",\"internet\""
set modem script DialPeer
set link disable chap pap
set link accept chap pap
set auth authname internet
set auth password internet
set link max-redial 0
set link redial-delay 30
#set link mtu 1480
set link keep-alive 10 60
set link action bundle B1
open