{"id":89,"date":"2019-09-17T17:12:49","date_gmt":"2019-09-17T15:12:49","guid":{"rendered":"http:\/\/www.sensimedia.org\/?p=89"},"modified":"2025-03-07T08:44:21","modified_gmt":"2025-03-07T07:44:21","slug":"freeradius-and-dnsmasq","status":"publish","type":"post","link":"https:\/\/sensimedia.org\/?p=89","title":{"rendered":"FreeRadius and Dnsmasq"},"content":{"rendered":"\n<p>I use DNSmasq to manage my local DHCP\/DNS server, but unfortunatly there is no plugin&#8217;s or wrapper for FreeRadius. I have coded a quick and dirty Python program to do this:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Generate an authorize file<\/li><li>Generate and authorized_macs file (no more require with my settings)<\/li><\/ul>\n\n\n\n<p>My next step is use the &#8220;tag&#8221; with the &#8220;set:&#8221; section from dnsmasq for mark the vlan ID (for exemple set:vlan10).this code is also available on <a href=\"https:\/\/github.com\/gpaquis\/Dnsmasq_to_FreeRadius\/blob\/master\/generate_user.py\">GitHub<\/a>.<\/p>\n\n\n\n<p>After launching the script, copy the authorize_conf file in the files folder in the freeradius 3.0 directory.<\/p>\n\n\n\n<p>i use the $INCLUDE value in the default.conf for include it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use DNSmasq to manage my local DHCP\/DNS server, but unfortunatly there is no plugin&#8217;s or wrapper for FreeRadius. I have coded a quick and dirty Python program to do this: Generate an authorize file Generate and authorized_macs file (no more require with my settings) My next step is use the &#8220;tag&#8221; with the &#8220;set:&#8221; &hellip; <a href=\"https:\/\/sensimedia.org\/?p=89\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;FreeRadius and Dnsmasq&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10],"tags":[17],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry","tag-linux"],"_links":{"self":[{"href":"https:\/\/sensimedia.org\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sensimedia.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sensimedia.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sensimedia.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sensimedia.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":1,"href":"https:\/\/sensimedia.org\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/sensimedia.org\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/522"}],"wp:attachment":[{"href":"https:\/\/sensimedia.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sensimedia.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sensimedia.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}