Imam zatrudneniq s nastroikata s pslave
modema mi e na ttyS0 
ip-to na radiusd e 127.0.0.1 port 1812/udp i 1813/udp 
iskam da ispolzvam radiusd za auth 
eto i moiq file 
ako nqkoi moje da mi pomogne she sym mu mnogo blagodaren.
-----------------------------
Free mail from www.dir.bg!
#
# pslave.conf   Here is the sample server configuration file.
#
# Version:      1.2.0  1999-XX-XX
#

#
# Hostname of the system.
#
conf.hostname   portslave.linux-rulez.org
#
# 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.
#
conf.ipno       192.168.42.21
#
# Lock directory - on FSSTND compliant systems it's /var/lock.
#
conf.lockdir    /var/lock
#
# Where to find the rlogin binary that accepts the "-i" flag.
#
# conf.rlogin   /usr/local/bin/rlogin-radius
#
# Where to find our patched pppd that has radius linked in.
#
conf.pppd       /usr/local/sbin/pppd-radius
#
# Where to find telnet. This can just be the system telnet. (Optional)
#
# conf.telnet   /usr/bin/telnet
#
# Where to find ssh. This can just be the system SSH. (Optional)
#
# conf.ssh      /usr/bin/ssh
#
# If you set this to "1", you can always login locally by putting a '!'
# before your loginname. Useful for emergencies when the RADIUS server is down.
#
conf.locallogins        0
#
# 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.
#
conf.syslog     logger.someisp.com
conf.facility   6
#
# 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.
# 
conf.filterdir  /usr/local/portslave/filters

#
# Stripnames - if you set this to "1", leading "P", "S", "C", "L" or "!"
# characters and trailing ".slip", ".cslip" and ".ppp" strings will be
# stripped from the username before it is recorded in the system
# utmp and wtmp files (if sysutmp or syswtmp are turned on ofcourse)
#
conf.stripnames 0       


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

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

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

#
# Authentication host and accounting host. We can have 2 of both. The
# first one is always tried three times before switching to the second one.
# They are alternately tried after that, upto maximum 10 times in total.
# Timeout is 3 seconds per query.
#
all.authhost1   127.0.0.1 
all.accthost1   127.0.0.1
all.radtimeout  9       
#all.authhost2  backuphost.someisp.com
#all.accthost2  backuphost.someisp.com

# Realms.  Again, user@host login names are recognized, but the @host
# part is used to select different authentication/accounting hosts.
# In the first example, all four hosts are actually defined; in the
# second, there is only one authentication and one accounting host.
# Undefined hosts must be represented by empty strings.  The order
# is @realm authhost1 accthost1 authhost2 accthost2.
#
#all.realm     >-@flintstone fred wilma barney zelda
#all.realm     >-@duck donald louie "" ""
#all.realm     <+U uucpauth uucpacct "" ""
#
# '>' means that the @host part is a suffix, and '-' tells the program
# to strip the suffix if providing a login service.  '<' and '+' are
# counterparts to '>' and '-', as shown in the third example, which
# does what UUCPHACK has existed for.
#
# Realm definitions are special because subsequent definitions don't
# replace the previous ones, but add to them.
#

#
# The shared secret for RADIUS.
#
all.secret       radius-pass # za toq secrets as shte se upravq sam
#
# Default protocol and host. This is for rlogin sessions.
#
#all.protocol   rlogin
# all.host      shellhost.someisp.com
#
# Default IP stuff. If you end the "ipno" 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 ipno.
#
# Leave the netmask at 255.255.255.255, unless your really know what
# you're doing.
#
all.ipno        192.168.0.2+
all.netmask     255.255.255.255
all.mtu         1500
#
# Standard message that is issued on connect.
#
all.issue       \n\
        Cistron Internet Services \n\
         POP Alphen aan den Rijn \n\
     Welcome to terminal server %h port S%p\n
# 
# Login prompt.
#
all.prompt      login: 
#
# Terminal type, for rlogin/telnet sessions.
#
all.term        vt100
#
# If you want portslave to update the utmp and/or wtmp files just
# like a regular getty/login, set these to 1.
#
all.sysutmp     1
all.syswtmp     0

##
## Options for the serial port.
##

#
# Porttype (passed to Radius for logging).
# 0 = async, 1 = sync, 2 = ISDN, 3 = ISDN-V120, 4 = ISDN-V110
#
all.porttype    0
#
# Speed. All ports are set to 8N1.
#
all.speed       115200
#
# Use this to initialize the modem.
#
# d == delay (1 sec), p == pause (0.1 sec), l == toggle DTR
# r == <CR>, l == <LF>
#
all.initchat    "" \d\l\dATZ OK\r\n-ATZ-OK\r\n
#
# You can use either waitfor or aa.
#
all.waitfor     RING
#
# Chat string to get the modem to connect after waitfor.
# The @ sign matches (.*)[\r\n] in regexp code, the match is logged
# to Radius as Connection-Info.
#
all.answer      "" ATA CONNECT@
#
# Auto answer - if you set this to "1", the system will just wait for
# the DCD line to get high (this is not well tested). You won't get
# the connection info either.
#
all.aa          0
#
# You can use this chatstring to regulary check if the modem is still alive.
# Tiem is in minutes
#
all.checktime   60
all.checkchat   "" AT OK
#
# 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 on). This means that the session
# will get hung up if the modem hangs up. Can be set to 0 or 1.
#
all.dcd         1
#
# PPP options - used if we autodetect a PPP session.
# Note that we set mru and mtu both to the MTU setting.

#pppd 2.3.x  -- Linux 2.2, or Linux 2.0 patched
all.autoppp     proxyarp modem asyncmap 0 %i: \
                noipx noccp login auth require-pap refuse-chap \
                mtu %t mru %t \
                ms-dns 192.168.1.1 ms-dns 192.168.1.2 \
                uselib /usr/local/lib/libpsr.so

#
# PPP options - User already authenticated and service type is PPP.
#

#pppd 2.3.x  -- Linux 2.2, or Linux 2.0 patched
all.pppopt      proxyarp modem asyncmap 0 %i:%j \
                noipx noccp mtu %t mru %t netmask %m \
                idle %I maxconnect %T \
                ms-dns 192.168.1.1 ms-dns 192.168.1.2
                uselib /usr/local/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.
##
s0.tty          ttyS0
s1.tty          ttyR1
s2.tty          ttyR2
s3.tty          ttyR3
s4.tty          ttyR4
s5.tty          ttyR5
s6.tty          ttyR6
s7.tty          ttyR7
s8.tty          ttyR8
s9.tty          ttyR9
s10.tty         ttyR10
s11.tty         ttyR11
s12.tty         ttyR12
s13.tty         ttyR13
s14.tty         ttyR14
s15.tty         ttyR15

#
# You can delete the examples below and unused ports above
# if you wish to clean up the config file, ofcourse.
#

#
# S30 is an external modem.
#
s30.tty         ttyS0

#
# S31 is a test port with a terminal on it.
#
# NOTE: you can ofcourse also enter tty9 here instead of ttyS1.
#       That way you can test portslave on a virtual console by
#       switching to it with ALT-F9.
#
s31.tty         ttyS1
s31.speed       9600
s31.flow        soft
s31.dcd         0
s31.initchat    ""
s31.waitfor     ""
s31.answer      ""

#
# S32 is my builtin 9600 baud modem
#
s32.tty         ttyS3
s32.speed       19200

#
# S33 is connected to a macine that _thinks_ it is connected to a modem.
# In this case, portslaves emulates a Hayes compatible modem. We use it
# to hook up our Mac with MACPPP over a serial null modem cable.
#
s33.tty         ttyS2
s33.speed       57600
s33.emumodem    1

#
# Leased Lines.
#
# Note that we change the lcp-timeout (lcp-restart) from 3 (default) to 4.
# PPP 2.2.0f in combination with some other PPP implementations may
# otherwise get stuck in an endless negotiation loop. Dialin lines do
# not have this problem because both sides start up at the same time.
#
# Do this only one _one_ side ofcourse.
#
s34.tty         ttyR47
s34.initchat    ""
s34.waitfor     ""
s34.answer      ""
s34.aa          0
s34.authtype    none
s34.issue       ""
s34.protocol    ppp
s34.ipno        192.168.5.249
s34.netmask     255.255.255.248
s34.pppopt      proxyarp modem asyncmap 0 %i:%j netmask %m \
                -ipx-protocol -ccp-protocol passive mtu 576 mru 576 \
                lcp-restart 4

Reply via email to