[RADIATOR] Bug: Radiator always binds to an accounting port
Heikki Vatiainen
hvn at open.com.au
Thu May 25 14:48:47 UTC 2023
On 23.5.2023 18.09, Karl Gaissmaier via radiator wrote:
> seems to be a bug or the reference document is wrong:
>
>> 3.7.7. AcctPort
>> ...
>> Tip
>> You can prevent Radiator from binding to an accounting port by
>> undefining Acct- Port:
>> # Do not bind to an accounting port:
>> AcctPort
The above should work. Maybe your configuration file sets AcctPort
sometime later? The default accounting port is 1646. In other words,
port 1813 is unexpected too.
> this is not working as expected, radiator is always binding to an
> accounting port:
>
> Please see this config snippet:
See below for my test. It's the same snippet. I added 'LogDir .' to
avoid writing under /var/log directory.
>> Trace 4
>> Foreground
>> LogStdout
>>
>> AuthPort 1812
>> AcctPort
>>
>> BindAddress 127.0.0.1, ::1
>
>
> and the corresponding debug output when i start the radiator with this
> test config:
>
>> Tue May 23 17:05:42 2023: DEBUG: This system is IPv6 capable. IPv6
>> capability provided by: core
>> Tue May 23 17:05:42 2023: DEBUG: Creating authentication socket
>> 127.0.0.1 port 1812
>> Tue May 23 17:05:42 2023: DEBUG: Creating accounting socket 127.0.0.1
>> port 1813
>> Tue May 23 17:05:42 2023: DEBUG: Creating authentication socket ::1
>> port 1812
>> Tue May 23 17:05:42 2023: DEBUG: Creating accounting socket ::1 port 1813
>> Tue May 23 17:05:42 2023: NOTICE: Server started: Radiator 4.27 on
>> MyServer
% cat empty.cfg
LogDir .
Trace 4
Foreground
LogStdout
AuthPort 1812
AcctPort
BindAddress 127.0.0.1, ::1
% perl radiusd -config empty.cfg
Thu May 25 17:40:06 2023: DEBUG: Radius::JSON backend is
Cpanel::JSON::XS version 4.06
Thu May 25 17:40:06 2023: INFO: Using Radius::UtilXS 2.3
Thu May 25 17:40:06 2023: DEBUG: SCTP socket API extensions not available
Thu May 25 17:40:06 2023: DEBUG: Finished reading configuration file
'empty.cfg'
Thu May 25 17:40:06 2023: DEBUG: Reading dictionary file
'/usr/local/etc/raddb/dictionary'
Thu May 25 17:40:06 2023: INFO: Using Net::SSLeay 1.93_01 with SSL/TLS
library version 0x1010111f (OpenSSL 1.1.1q 5 Jul 2022)
Thu May 25 17:40:06 2023: DEBUG: SSL/TLS library and Net::SSLeay support
set_default_passwd_cb and related functions
Thu May 25 17:40:06 2023: DEBUG: This system is IPv6 capable. IPv6
capability provided by: core
Thu May 25 17:40:06 2023: DEBUG: Creating authentication socket
127.0.0.1 port 1812
Thu May 25 17:40:06 2023: DEBUG: Creating authentication socket ::1 port
1812
Thu May 25 17:40:06 2023: NOTICE: Server started: Radiator 4.27 on imac
Thanks,
Heikki
--
Heikki Vatiainen
OSC, makers of Radiator
Visit radiatorsoftware.com for Radiator AAA server software
More information about the radiator
mailing list