(RADIATOR) rewrite NAS-Port-type?

Hugh Irvine hugh at open.com.au
Wed Jun 18 18:10:50 CDT 2003


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');
}
	
regards

Hugh


On Wednesday, Jun 18, 2003, at 22:55 Australia/Melbourne, Robert 
Blayzor wrote:

> On 6/17/03 12:29 PM, "Craig Gittens" <cgittens at sunbeach.net> 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
> rblayzor at inoc.net
> 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 radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' 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 radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list