The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Рабочий ppp.conf для связки freebsd->grps, !*! The_Leif, 19-Дек-04, 11:20  [смотреть все]
  • Рабочий ppp.conf для связки freebsd->grps, !*! Rippy, 23:14 , 19-Дек-04 (1)
    /etc/ppp/ppp.conf
    default:
    set log Phase Chat LCP IPCP CCP tun command
    ident user-ppp VERSION (built COMPILATIONDATE)

    # Ensure that "device" references the correct serial port
    # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
    #
    set device /dev/ucom0  #motorola c380-USB!!

    set speed 115200
    set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
               \"\" AT OK-AT-OK ATE1Q0 OK AT+CGDCONT=1,\"IP\",\"internet.volga\" OK
    \\dATDT\\T TIMEOUT 40 CONNECT"  #modem initialisation string AT+CGDCONT=1,IP,"internet.volga" Megafon Povolzhe-Ulyanovsk
    set timeout 60                 # 3 minute idle timer (the default)
    enable dns                             # request DNS info (for resolv.conf)

    papchap:
    #
    # edit the next three lines and replace the items in caps with
    # the values which have been assigned by your ISP.
    #

    set phone "*99#"
    set authname p
    set authkey n

    set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0

    /etc/ppp/ppp.linkup
    papchap:
      add default HISADDR

    запускаю так:
    [root:ns:/usr/home/rippy]>ppp -nat papchap
    Working in interactive mode
    Using interface: tun0
    ppp ON ns> dial

    (нат - потому как выступает в роли гейта машина)




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру