pppd-radius plugin send value of remotenumber option
to radius-server as Caller-ID attribute. I think it's
a good idea to use this option to say pppd what is
the original ip as a caller-id. I don't know anothe
way to send this information to pppd :)
Also, option 'noremotenumber' can be supported in
pptpd.conf, as for example option 'noipparam'.
Logged In: YES
user_id=19261
Originator: NO
Was added in 2004 as part of the pptpd logwtmp plugin, see pptpd-original-ip.
remotenumber future for pptpd
Logged In: YES
user_id=333744
Originator: YES
pptpd-orogonal-ip can be used only by logwtmp and external scripts.
Example of external scripts you can see here: http://www2.nag.ru/forum/lofiversion/index.php/t14818.html
It is mutch better and convenient to use standard pppd option remotenumber without nedd any additional external scripts to provide this functionality (allow pppd send caller ID to radius server).
Simple patch os attached:
diff -ru pptpd-1.3.4.orig/pptpctrl.c pptpd-1.3.4/pptpctrl.c
--- pptpd-1.3.4.orig/pptpctrl.c 2006-12-08 02:01:40.000000000 +0200
+++ pptpd-1.3.4/pptpctrl.c 2007-05-11 18:58:41.000000000 +0300
@@ -777,6 +777,10 @@
pppd_argv[an++] = "pptpd-original-ip";
pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
}
+
+ / add a CallerID support for pppd /
+ pppd_argv[an++] = "remotenumber";
+ pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
File Added: pptpd.remotenumber.dicr.patch
Ok, pptpd-original-ip is really good option, but it not solve the problem because pppd does not using it any way and does not provide Caller-Station-ID radius attribute. It use only information from remotenumber argument to send radius attributes. I already patched my copy of ppptp and successfully using it many year at ISP access servers.
Please, consider to provide information about calling station to pppd in the right way - remotenumber command line option.
There are just 2 additional lines in source which makes life mutch better !!!
No any other workaround to make pppd sending Caller-Station-ID for RADIUS :(((