On Fri, 24 Jun 2005, Ralf [UTF-8] Lübben wrote: > Hello, > > the radius plugin in is working. > I have still some questions about the OpenVpn behaviour. > > After one hour there is a rekeying/reauthentication of the user? Is that > right.
Yes, this depends on the value of the --reneg-sec parameter which is usually set to 3600. > The problem is that before an user can be authenticated from the > plugin the user needs a disconnect from OpenVpn for this user. At the > moment the reauthentenication fails and the OpenVpn disconnects the user > after the keepalive interval. Ather this the user can connect again. > > Have I the possibility to get the information if the authentication is a new > or a reauthentication from the enviroment variable? > > Maybe if I already have the user in my internal list and the user comes in > with the same username, password and remote_ip he is authenticated without > asking the radius server. > The other possibility is too delete the user from the list and add the user > again to the list. One thing that I'm thinking about adding to the plugin interface is an explicit constructor and destructor callback for client instance objects, and a related client handle which would be passed to all the plugin functions. Right now, the best way to do this is to track client-connect and client-disconnect calls. > What are about the counters in the status file? Are they set to 0 at the > rekeying/reauthentication? So I have to send the stop ticket to the radius > server and I have to send again a start ticket. The rekeying is "under the hood" and should mostly be invisible from the perspective of a plugin. There shouldn't be any client-disconnect/client-connect cycling when this occurs. > What are the maximum length of strings in the enviroment that I can get from > the OpenVpn process? Maybe 128 characters for the username and password. Right now the max username and password length is defined as #define USER_PASS_LEN 128 in misc.c (each separately can be up to this length). However, for environmental variables in general, there is no length restriction. James > Ralf Lübben > > > Ralf Lübben wrote: > > > Hello, > > > > I am interesting in build radius support for OpenVpn. > > At the moment I'am thinking about what is the best way. > > > > 1. Authentification and Authroization: > > I think this already works with the plugin pam_radius_auth.so, is that > > right? > > > > But I am interested in more features, > > like to get the ip-address and the routes from the RADIUS-Server. > > Can this be done with a plugin? Maybe by creating the configurationfiles > > at the start of the connection? > > Or could this be integrated in the Source Code? I think this would be the > > best solution. > > I hope the fea > > 2. Accounting: > > I need to count the traffic of a VPN-connection, one the side every > > traffic which goes from a client to the server (tun0-interface) and one > > the other side every traffic which goes through the VPN, maybe from one > > client to another client. > > So when I use the counter of the tun-interface, I lose the traffic which > > goes from one client to another. If I count the traffic of the > > eth-interface I get other traffic, which has nothing to do with the vpn. > > > > Maybe someone has some experiences with this topic and give some hints > > which is the best way? To do all things in a modul or to do all changes in > > the source code. and where I have to look in the source code to integrate > > this feature. > > > > I hope there is a gerneal interest in this feature. > > > > For every help I am very grateful. > > > > Ralf Lübben > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel >