Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Notes / FreeBSD & LMT Internet

FreeBSD & LMT Internet

ppp.conf for LMT:

 

#################################################################

# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.12.2.2 2012/11/17 11:36:11 svnexp Exp $
#################################################################
default:
set log Phase Chat LCP IPCP CCP tun command

LMT:
set device /dev/cuaU0.0 #modem device
set timeout 0

set dial "ABORT BUSY TIMEOUT 10 \
\"\" \
AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internet.lmt.lv\\\" OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATD*99***1# CONNECT"

## Lower the MTU as this seems to make the link more stable for GPRS connections.
#set mtu maximum 296
#set mru maximum 296
set crtscts on
disable vjcomp
disable acfcomp
disable deflate
disable deflate24
disable pred1
disable protocomp
disable mppe
disable ipv6cp
disable lqr
disable echo
nat enable yes
enable dns
resolv writable
set dns 208.67.220.220 208.67.222.222  # openDNS
set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0
add default HISADDR
root@fbsd:/etc/ppp # ppp -ddial LMT