FreeBSD + PPP + GSM/3G/LTE Modem
If you want to use GSM/3G/LTE modem on your FreeBSD box you need to use PPP and following configuration:
default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION set device /dev/cuaU0 set phone *99\# set redial 5 10 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" ATH OK ATZ OK AT OK-AT-OK ATE1Q0 OK \ AT+CFUN=1 OK-AT-OK \ AT+CPIN? READY-AT+CPIN=\"1234\"-OK \ AT+CGDCONT=1,\"ip\",\"internet\" OK \ \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 10 enable dns set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0 add default HISADDR