The OpenNET Project / Index page

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



Индекс форумов
Составление сообщения

Исходное сообщение
"callback server(radius+portslave)"
Отправлено vvvua, 20-Фев-06 16:44 
>можешь скинуть конфиг portslave ?
ugu
>в чем может быть проблема ?
ссылку можно создать на pppd.
вот мой конф. модем idc 2814bxl+, com1

# pslave.conf   Here is the sample server configuration file.
#
# Version:      2005.04.03

# IP address - if left empty, uses the IP address of the system (hostname).
# This is used as the "local" address for SLIP and PPP connections.
#
# used to be conf.ipno
all.loc_host    10.3.2.10

# If you set this to "yes", you can always login locally by putting a '!'
# before your loginname. Useful for emergencies when the RADIUS server is down.
#
all.locallogins yes

# Logging stuff - this program can use a remote syslog daemon if needed.
# If you want to log locally leave the "syslog" field empty. The facility
# field is an integer between 0 and 7 and sets the syslog facility to
# local0-local7.
#
#all.syslog     logger.someisp.com
all.syslog
all.facility    2

# Directory where your scripts that set up IP filtering (typically using
# ipfwadmin) are stored. To invoke them, just add the RADIUS-attribute
# Framed-Filter-Id = "foo" to your profile, where foo is the name of script.
#
all.filterdir   /etc/portslave/filters

## The all entry is used as a template for all others. This means that
## setting all.debug to "2", you set s0.debug, s1.debug, s2.debug etc.
## to "2". It also means that all these settings can be overridden on a
## per-port basis below.

# Debugging output to syslog. Set to 0, 1, or 2.  2 is pretty verbose.
#
all.debug       1

# Authentication type - either "radius" or "none".
#
all.authtype    radius

# Default is to accept NULL passwords when doing radius authentication. Set
# to "0" or "1". This option does not have effect on non-radius
# authentication - i.e. if "authtype" is "none" or if you do a local login.
#
all.radnullpass no

# Default protocol and host.
#
all.protocol    ppp

# Default IP stuff. If you end the "rem_host" with a "+", the portnumber will
# be added to the IP number. The IP number of a port is used when the RADIUS
# server doesn't send an IP number, or if it tells us to use a dynamic rem_host.
#
# Leave the netmask at 255.255.255.255, unless your really know what
# you're doing.
#
# all.rem_host used to be all.ipno
all.rem_host    172.16.3.2+
all.netmask     255.255.255.255
all.mtu         576
# Standard message that is issued on connect.
#
all.issue       \n\
\n\
     Welcome to my internet server %h port S%p \n\
\n\
\n

# If you want portslave to update the wtmp file just
# like a regular getty/login, set this to yes.
#
all.syswtmp     yes

## Options for the serial port.

# Porttype (passed to radius server for logging).
# async, sync, isdn, isdn-v120, isdn-v110
#
all.porttype    async

# Speed. All ports are set to 8N1.
#
all.speed       115200

# Use this to initialize the connection
#
# d == delay (1 sec), p == pause (0.1 sec), l == toggle DTR
# r == <CR>, l == <LF>
#
# If the modem tells us the calling number by "NMBR = num" and the called
# number by "NDID = num" (as some brands apparently do) then add the
# following to the start of the initchat to recognise the CLI numbers:
#               SETVAR "S=NMBR = " \
#               SETVAR "D=NDID = " \
#
all.initchat    TIMEOUT 10 \
                ABORT "NO CARRIER" \
                ABORT VOICE \
                SETVAR "C=CARRIER " \
                SETVAR C+PROTOCOL: \
                SETVAR C?CONNECT \
                "" \d\l\dATZ \
                OK\r\n-ATZ-OK\r\n "\c" \
                TIMEOUT 3600 \
                RING "\c" \
                STATUS Incoming %p:I.HANDSHAKE \
                "" ATA \
                TIMEOUT 75 \
                CONNECT "\c" \
                STATUS Connected %p:I.HANDSHAKE

# Flow control on this serial port:
#    hard - hardware, rts/cts
#    soft - software, CTRL-S / CTRL-Q
#    none.
#
all.flow        hard

# Use the DCD line or not (this sets CLOCAL if off). This means that the
# session will get hung up if the modem hangs up. Can be set to 0 or 1.
#
all.dcd         yes

# PPP options - used if we autodetect a PPP session.
# Note that we set mru and mtu both to the MTU setting.
#
all.autoppp     proxyarp %d asyncmap 0 %i: \
                noipx noccp login auth require-pap refuse-chap \
                mtu %t mru %t \
                ms-dns 10.3.2.10 ms-dns 212.35.160.30 \
                plugin /usr/lib/libpsr.so

## PPP options - User already authenticated and service type is PPP.
#
all.pppopt      proxyarp %d asyncmap 0 %i:%j \
                noipx noccp \
                mtu %t mru %t \
                netmask %m idle %I maxconnect %T \
                ms-dns 10.3.2.10 ms-dns 212.35.160.30 \
                plugin /usr/lib/libpsr.so

## Tty names are s0...s63. For every port we need to define a tty port, and
## an IP number for when radius tells us to pick one ourself. Unless you
## use the IP pool option mentioned above (IP number with "+" appended).
##
## Note that you can change _all_ of the above settings that start
## with all.xxxx on a per-port basis, such as issue, prompt etc.
#
##make the first 32 ports be Rocketport
#s{0-31}                ttyR{0-31}
##used to need the following lines repeated
#s0.tty         ttyR0
#s1.tty         ttyR1
#s2.tty         ttyR2
##make the next 32 ports be Cyclades
#s{32-63}       ttyC{0-31}
##make the next 32 ports be Stallion
#s{64-95}       ttyE{0-31}
##make ports 100 and 101 be standard serial.
#s{100-101}     ttyS{0-1}
#s{0-1}         ttyS{0-1}
##the above but for devfs
#s{0-31}                ttS/R{0-31}
#s{32-63}       ttS/C{0-31}
#s{64-95}       ttS/E{0-31}
#s{100-101}     ttS/{0-1}
s0.tty          ttyS0


 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



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

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