Hi Robert -
Thanks for the excellent example.
Just for completeness (and the Perl way) you could also do this:
sub {
${$_[0]}->change_attr('NAS-Port-Type', 'VPN');
}
regardsHugh
On Wednesday, Jun 18, 2003, at 22:55 Australia/Melbourne, Robert Blayzor wrote:
On 6/17/03 12:29 PM, "Craig Gittens" <[EMAIL PROTECTED]> wrote:
I am trying to implement a VPN solution using linux pppd and it is sending
the port type as Async. The problem is I don't want dialup customers able to
use this service as well. I was wondering if you could rewqrite NAS port
type before authentication in the CLIENT?
Try something like this:
<Client x.x.x.x> Identifier VPN-Client Secret foobar PreHandlerHook file:"vpn-port-rewrite.pl" </Client>
Then in "vpn-port-rewrite.pl" do this:
sub { ${$_[0]}->delete_attr('NAS-Port-Type'); ${$_[0]}->add_attr('NAS-Port-Type', 'VPN'); }
-- Robert Blayzor, BOFH INOC, LLC [EMAIL PROTECTED] PGP: http://www.inoc.net/~dev/ Key fingerprint = A445 7D1E 3D4F A4EF 6875 21BB 1BAA 10FE 5748 CFE9
Design: The activity of preparing for a design review.
=== Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.
NB: have you included a copy of your configuration file (no secrets), together with a trace 4 debug showing what is happening?
-- Radiator: the most portable, flexible and configurable RADIUS server anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X. - Nets: internetwork inventory and management - graphical, extensible, flexible with hardware, software, platform and database independence.
=== Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.
