Configuration and Defaults' Settings Here it's possible to define the configuration for Portslave and the defaults for ports' definitions. The general configuration affects the general operations of Portslave. The defaults' settings are the ones which will be used for each port defined in Portslave, unless the port has its own definition for a specified item, so it would be used instead the default value. 11.. ((GGlloobbaall)) SSeettttiinnggss Here are defined the general configurations which will be applied to the whole Portslave system. 11..11.. HHoossttnnaammee The machine's hostname. 11..22.. IIPP nnuummbbeerr This machine's IP number (often ommited). 11..33.. LLoocckk ddiirreeccttoorryy The directory for lock files. 11..44.. RReemmoottee llooggiinn The executable to call when entering in remote login mode. 11..55.. PPPPPPdd The executable to call as PPP daemon (normally the Portslave's own PPPd is going to be used since it has some necessary extensions on it) 11..66.. TTeellnneett The executable to call when entering in telnet mode. 11..77.. SSSSHH The executable to call when entering in SSH mode. 11..88.. LLooccaall llooggiinnss When active, allows login using the local machine's account. This is useful for maintenance when, for some reason, the accounting host is unreachable or down. The login name must be provided with a '!' as prefix in order to be recognized as a local account. 11..99.. SSyysslloogg The machine which will take care of system logging. If you want to log locally, leave this field empty. 11..1100.. FFaacciilliittyy Sets the syslog facility. 11..1111.. FFiilltteerr ddiirreeccttoorryy 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. 11..1122.. SSttrriipp nnaammeess If enabled, 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, of course). 22.. PPoorrtt DDeeffaauullttss -- NNeettwwoorrkk Here are defined the defaults for each port defined in Portslave. The defaults' settings are the ones which will be used for each port defined in Portslave, unless the port has its own definition for a specified item, so it would be used instead the default value. Here you're able to configure network aspects of the port. 22..11.. DDeebbuugg If enabled, dumps extra debug information to be dumped to syslog. 22..22.. AAuutthh ttyyppee Authentication type. Example: such as radius. 22..33.. AAuutthh hhoosstt 11 Primary authentication host to be used. 22..44.. AAuutthh hhoosstt 22 Secondary authentication host to be used when primary authentication host is unreachable or down. This definition is optional. 22..55.. AAcccctt hhoosstt 11 Primary accounting host to be used. Usually this is the same host as the authentication host. 22..66.. AAcccctt hhoosstt 22 Secondary accounting host to be used when primary accounting host is unreachable or down. Usually this is the same as the secondary authentication host. This definition is optional. 22..77.. RRAADD ttiimmeeoouutt Retry timeout for authentication and accounting requests. 22..88.. RReeaallmmss ddeeffiinniittiioonnss 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 (double quotes). The order is @realm authhost1 accthost1 authhost2 accthost2. the suffix if providing a login service. which does what UUCPHACK has existed for. 22..99.. SSeeccrreett The shared secret for RADIUS (pssst! don't tell anyone). 22..1100.. PPrroottooccooll Protocol to be used in sessions. 22..1111.. HHoosstt Hostname used. 22..1122.. IIPP nnuummbbeerr IP assigned to port. This setting is usually used with the 'Auto generated IPs' option. 22..1133.. AAuuttoo ggeenneerraatteedd IIPPss When enabled the portnumber will be added to the 'IP number' given, so different IPs will be automatically assigned to each port. Using this option there's no need to define IPs port-by-port, saving administrator's time. 22..1144.. NNeettmmaasskk Leave this to 255.255.255.255 unless you really know what you're doing. 22..1155.. MMTTUU Self explanatory. 33.. PPoorrtt DDeeffaauullttss -- CCoommmm Here are defined the defaults for each port defined in Portslave. The defaults' settings are the ones which will be used for each port defined in Portslave, unless the port has its own definition for a specified item, so it would be used instead the default value. Here you may configure the communications aspects of the port, such as serial port configuration, modem-related settings, etc. 33..11.. IIssssuuee Standard message that is issued on connect. This string may contain some 'keys' that expands to port number, etc. 33..22.. PPrroommpptt Login prompt. 33..33.. TTeerrmm ttyyppee Term type for rlogin/telnet sessions. 33..44.. UUppddaattee uuttmmpp // UUppddaattee wwttmmpp If you want portslave to update the utmp and/or wtmp files just like a regular getty/login, enable these. 33..55.. PPoorrtt ttyyppee Port type (passed to Radius for logging). 33..66.. SSppeeeedd Serial port speed. All ports are set to 8N1. 33..77.. MMooddeemm iinniitt cchhaatt Use this to initialize the modem. d == delay (1 sec), p == pause (0.1 sec), l == toggle DTR, r == CR, l == LF 33..88.. WWaaiitt ffoorr Wait for this modem's message to pick the call. Use this *OR* auto-answer. 33..99.. AAnnsswweerr 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. 33..1100.. AAuuttoo aannsswweerr If you enable this, the system will just wait for the DCD line to get high (you won't get the connection info either). 33..1111.. CChheecckk ttiimmee How often to check if the modem is still alive. Time is in minutes 33..1122.. CChheecckk cchhaatt The chat string for checking if the modem is still alive. 33..1133.. FFllooww ccoonnttrrooll Flow control on this serial port: Hardware (RTS/CTS), software (CTRL-S, CTRL-Q) or none. 33..1144.. UUssee DDCCDD lliinnee 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. 33..1155.. AAuuttoo PPPPPP 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) 33..1166.. PPPPPP ooppttiioonnss PPP options - User already authenticated and service type is PPP. (pppd 2.3.x -- Linux 2.2, or Linux 2.0 patched)