upgrade from v1 to v3 L2TP issues

Matthew Newton mcn4 at leicester.ac.uk
Thu Jun 2 18:54:06 CEST 2016


On Thu, Jun 02, 2016 at 06:04:18PM +0200, Andy Smith wrote:
> On 2016-06-02 17:29:43, ALAN DEKOK wrote:
> 
> >>> radius 1 - not working 
> >>> vendor Cisco cisco-avpair=lcp:interface-config=ip unnumbered loopback 
> >>> _ 2003\0x0a _ 
> >>> 
> >>> _ radius 2 - working (differences in red)_ 
> >>> vendor Cisco cisco-avpair=lcp:interface-config=ip unnumbered loopback 
> >>> _ 2003\n_ 
> >> 
> >> Update v3 to send a 0x0a as the final character of the Cisco-AVPair. But even that shouldn't make a difference. 
> >> 
> >> The two packets are identical, so far as how things *should* work. 
> >> 
> > 
> > So sorry wasn't clear on my original email, the v3 is the one that sends the 0x0a and the v1 one sends \n. 
> > The field in MySQL has a \n so seems its being rewritten in v3.
> > So is there anyway I can change this behavior so I get and identical packet for both?

In post-auth

  if (&reply:cisco-avpair =~ /^(.*)\\0x0a$/) {
    update reply {
      cisco-avpair := "%{1}\n"
    }
  }

or that sort of idea.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list