Menu

#8 send original ip in pppd option remotenumber

open
nobody
5
2014-10-02
2006-06-22
No

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'.

Discussion

  • James Cameron

    James Cameron - 2007-04-16

    Logged In: YES
    user_id=19261
    Originator: NO

    Was added in 2004 as part of the pptpd logwtmp plugin, see pptpd-original-ip.

     
  • Igot Tarasov

    Igot Tarasov - 2007-05-11

    remotenumber future for pptpd

     
  • Igot Tarasov

    Igot Tarasov - 2007-05-11

    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]);

        /* argv arrays must always be NULL terminated */
        pppd_argv[an++] = NULL;
    

    File Added: pptpd.remotenumber.dicr.patch

     
  • Dicr

    Dicr - 2011-01-18

    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.

     
  • Dicr

    Dicr - 2011-01-18

    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 :(((

     

Log in to post a comment.