[RADIATOR] Using Radiator and Net-SNMP on the same server?

Heikki Vatiainen hvn at open.com.au
Fri Nov 21 02:35:11 CST 2014


On 20.11.2014 23.13, Eivind Olsen wrote:
> What's an easy way of running both Net-SNMP and Radiator (with its
> SNMPAgent). Is there some nice and fancy way of using both at the same
> time, or is the best / only way to tell them to listen on different ports
> such as UDP 161 for Net-SNMP and some other UDP-port for Radiator?

Hello Eivind,

I agree with Hugh that sharing ports can not be done and you would need 
to use different ports.

In case you have the possibility to modify the Net-SNMP configuration, 
you should try the proxy option.

http://www.net-snmp.org/wiki/index.php/Snmpd_proxy

Using Ubuntu 12.04 as an example, something like this should get you 
started:

1. Configure Radiator SNMPAgent to bind to 127.0.0.1 port 1161
2. Optional: configure it to use SNMPVersion 2c
3. Add the following lines in /etc/snmp/snmpd.conf

proxy -v 2c -c public 127.0.0.1:1161  .1.3.6.1.2.1.67
view   systemonly  included   .1.3.6.1.2.1.67

After restarting snmpd and starting Radiator, this should work:

% snmpwalk -m+ALL -v2c -c public 127.0.0.1:161

This shows everything that public community can access

% snmpwalk -m+ALL -v2c -c public 127.0.0.1:161 .1.3.6.1.2.1.67

This shows just the accounting server subtree. This is the information 
that is available if you query Radiator directly (the port is now 1161):

% snmpwalk -m+ALL -v2c -c public 127.0.0.1:1161 .1.3.6.1.2.1.67

Thanks,
Heikki

-- 
Heikki Vatiainen <hvn at open.com.au>

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, 
NetWare etc.


More information about the radiator mailing list