Gentoo/PPP Client

Page last edited 3,768 days ago
From Alon Bar-Lev's Site
Jump to navigation Jump to search

PPP Client

PPP protocol is used by most point to point connections, such as modems and broadband routers. Gentoo provides simple integration.

Configuration

emerge net-dialup/ppp net-dns/openresolv

net-dns/openresolv is optional, but makes life much easier, see Gentoo/Openresolv.

It is very recommended to configure firewall on your computer, see firehol configuration.

Linux Kernel Configuration:
  Device Drivers  --->
    [*] Network device support  --->
      <M>   PPP (point-to-point protocol) support
        [*]     PPP filtering
        <M>     PPP support for async serial ports
        <M>     PPP support for sync tty ports
        <M>     PPP Deflate compression
        <M>     PPP BSD-Compress compression
        <M>     PPP MPPE compression (encryption) (EXPERIMENTAL)
  -*- Cryptographic API  ---> 
    <M>   Michael MIC keyed digest algorithm

Add:

File: /etc/conf.d/modules
modules="${modules} ppp-generic"

Add:

File: /etc/conf.d/net
rc_net_ppp0_need="firewall"  # optional, if you are using firewall
config_ppp0="ppp"
link_ppp0="/dev/ttyUSB2" # set your device
username_ppp0=''         # set your username
password_ppp0=''         # set your password
phone_number_ppp0="*99#" # phone number to dial

pppd_ppp0="noauth defaultroute usepeerdns lock mru 296 mtu 296"
chat_ppp0="
ABORT BUSY
ABORT ERROR
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'Invalid Login'
ABORT 'Login incorrect'
TIMEOUT 5
'' 'ATZ'
OK AT
OK 'ATDT\T'
TIMEOUT 60
CONNECT ''
TIMEOUT 5
'~--' ''"
ln -s net.lo /etc/init.d/net.ppp0

Management

/etc/init.d/net.ppp0 start
/etc/init.d/net.ppp0 stop

Maintainer

Alon Bar-Lev

Authors

Originally written by: Alon Bar-Lev - 2011-11-17


Authors are people who have worked on this document and have made significant changes to its content. If you have edited this article and wish to add yourself to the authors list please read "Who are Authors".