Code Monkey home page Code Monkey logo

Comments (10)

omidkosari avatar omidkosari commented on June 5, 2024

My ras is mikrotik routeros v5.12 . i just want to work with it's Framed-IPv6-Prefix radius attribute . in radius server logs i have this

2012/01/27-16:39:46 ##############
O> AccessAccept attributes for 10.234.56.75:50974 with id 2
Authenticator: ['\xca\xa3\xa2d\xee\x8f1\x80\xb1\x12kdS\x19\x15\x14']
Framed-IPv6-Prefix: ['2a00:1ce0::15:0:0:0:0/64']
MS-MPPE-Encryption-Policy: ['\x00\x00\x00\x01']
Idle-Timeout: [300L]
MS-CHAP2-Success: ['\x01S=01E3E9BF2AE86CEB9EDA6612D256265B13C05D0B']
MS-MPPE-Recv-Key: ['\x95\xba\xee\x19#\x12\xa8\xb3r\x88\xbe\t\x9c\xa7\x96w\xd0\xaa\x1b\x94e\xfe\r\xba\x92\x14\xeeU}\x0eo\xd0\x91\x96']
MS-MPPE-Send-Key: ['\xbd\x01J2|\xd0urWC\xc2\xae\x88\xb4\xed>{;\x98(DI\x1eYv\xd7\xf2\xb9\xf9\xbe\xb4]\xf8|']
MS-Secondary-DNS-Server: ['208.67.222.222']
MS-MPPE-Encryption-Types: ['\x00\x00\x00\x06']
MS-Primary-DNS-Server: ['109.110.160.172']

But in mikrotik log i have

16:40:52 radius,debug,packet Framed-IPv6-Prefix = 0x326130303a316365303a3a31353a303a
16:40:52 radius,debug,packet 303a303a302f3634

in the dictionary file i tested different values
ATTRIBUTE Framed-IPv6-Prefix 97 ipv6prefix
ATTRIBUTE Framed-IPv6-Prefix 97 octets
ATTRIBUTE Framed-IPv6-Prefix 97 ipv6addr

from pyrad.

brat002 avatar brat002 commented on June 5, 2024

How do you calculate mppe attributes?

from pyrad.

omidkosari avatar omidkosari commented on June 5, 2024

more explanation please

from pyrad.

brat002 avatar brat002 commented on June 5, 2024

Please, show functions, that generates mppe keys in your pyrad server. I can`t create working solution from rfc.

from pyrad.

omidkosari avatar omidkosari commented on June 5, 2024

Actually i am using following software https://sourceforge.net/projects/ibs/files/IBSng/ . It uses pyrad as radius server . I hope it helps .

from pyrad.

GIC-de avatar GIC-de commented on June 5, 2024

@omidkosari the following new types are implemented now. Please check if this works for you.

ipv6addr 16 octets in network byte order
ipv6prefix 18 octets in network byte order

from pyrad.

morrowc avatar morrowc commented on June 5, 2024

This change doesn't actually make pyrad ipv6 clean...

https://github.com/wichert/pyrad/blob/master/pyrad/client.py#L71

is still fixing the listener code to ipv4 only.
would a fix be useful here? :) (it would be to me)

from pyrad.

johnmyrda avatar johnmyrda commented on June 5, 2024

@morrowc I'd find a fix useful. The company I work for uses this library to test a RADIUS client/server implementation and the lack of an ipv6 listener makes it difficult to completely test the product's ipv6 support.

from pyrad.

morrowc avatar morrowc commented on June 5, 2024

Ok, also the link I sent above is the client code, the server code is similarly hobbled...

https://github.com/wichert/pyrad/blob/master/pyrad/server.py#L106

i'll work up a fix in the next few days.

from pyrad.

morrowc avatar morrowc commented on June 5, 2024

#61 is the open pull request to add server.py code for binding to ipv4 and ipv6 sockets.

The client code should need similar work, but I'm not sure it's as necessary as the server code.

from pyrad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.