<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Freeradius on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/freeradius/</link>
        <description>Recent content in Freeradius on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Mon, 27 Jun 2016 11:51:44 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/freeradius/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>[Ubuntu] Radsecproy for secure Radius over WAN</title>
            <link>https://www.nico-maas.de/posts/2016-06-27-ubuntu-radsecproy-for-secure-radius-over-wan/</link>
            <pubDate>Mon, 27 Jun 2016 11:51:44 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-06-27-ubuntu-radsecproy-for-secure-radius-over-wan/</guid>
            <description>&lt;p&gt;Chances are you going to need an radius Auth over WAN - because your Radius and Identity Mngmnt is hosted in the security of the local datacenter of your corp&amp;hellip; but the client (i.e. an network switch) is somewhere over the &lt;del&gt;rainbow&lt;/del&gt; WAN. You &lt;em&gt;could&lt;/em&gt; just pipe the radius traffic over the internet - but there be dragons: radius communication is unencrypted. So&amp;hellip; just no.&lt;/p&gt;&#xA;&lt;p&gt;Enter radsecproxy: Radsecproxy is - as the name implies, an radius proxy - which needs to be installed on both servers (the local one in your company, now called SERVER, and the remote one with the switch attached, now called CLIENT) - and does encrypt the communication between both server parts (over WAN i.e.) via TLS.&lt;/p&gt;</description>
        </item><item>
            <title>[Ubuntu] Freeradius: Improve Uptime</title>
            <link>https://www.nico-maas.de/posts/2016-05-20-ubuntu-freeradius-improve-uptime/</link>
            <pubDate>Fri, 20 May 2016 08:00:43 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-05-20-ubuntu-freeradius-improve-uptime/</guid>
            <description>&lt;p&gt;As a network admin, you&amp;rsquo;re going to have at least one Freeradius running, mostly for 802.1x authentication. At my place the problem arised, that the service was down too often - for different reasons.&lt;/p&gt;&#xA;&lt;p&gt;1.) Logrotate&lt;br&gt;&#xA;If you&amp;rsquo;re using logrotate, you should check out /etc/logrotate.d/freeradius:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/var/log/freeradius/*.log {&#xD;&#xA;weekly&#xD;&#xA;rotate 52&#xD;&#xA;compress&#xD;&#xA;delaycompress&#xD;&#xA;notifempty&#xD;&#xA;missingok&#xD;&#xA;postrotate&#xD;&#xA;invoke-rc.d freeradius reload &amp;amp;gt;/dev/null 2&amp;amp;gt;&amp;amp;1 || true&#xD;&#xA;endscript&#xD;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Logrotate does restart freeradius after it swapped the logs with reload, which often results in a crash or race condition (freeradius does not shutdown fast enough, and the restarting process thinks it already got one running process - and both terminate). So to change that, you should stop the process, wait, and start again.&lt;/p&gt;</description>
        </item><item>
            <title>[Ubuntu] Letsencrypt with Apache and Freeradius</title>
            <link>https://www.nico-maas.de/posts/2016-05-16-ubuntu-letsencrypt-with-apache-and-freeradius/</link>
            <pubDate>Mon, 16 May 2016 08:00:53 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-05-16-ubuntu-letsencrypt-with-apache-and-freeradius/</guid>
            <description>&lt;p&gt;This little tutorial describes how to use Letsencrypt with Apache, Freeradius and Auto-Renewal of the Certificates.&lt;/p&gt;&#xA;&lt;h1 id=&#34;install-letsencrypt&#34;&gt;Install Letsencrypt&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt-get update  &#xD;&#xA;sudo apt-get install git  &#xD;&#xA;cd /opt  &#xD;&#xA;sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt  &#xD;&#xA;cd /opt/letsencrypt&#xD;&#xA;&#xD;&#xA;# Become root  &#xD;&#xA;sudo su&#xD;&#xA;&#xD;&#xA;# &amp;#34;Order&amp;#34; certificates (replace SERVERDOMAIN.COM with the DNS of your Server!)  &#xD;&#xA;./letsencrypt-auto --apache -d SERVERDOMAIN.COM --rsa-key-size 4096  &#xD;&#xA;Enter Contact Mail: mail@SERVERDOMAIN.COM  &#xD;&#xA;Configuration Type: Secure #is best, as it does redirect insecure http to https)&#xD;&#xA;&#xD;&#xA;# Read PATH variable  &#xD;&#xA;echo $PATH&#xD;&#xA;&#xD;&#xA;# Cronjob for certificate renewal  &#xD;&#xA;#you should under all circumstances replace the string following PATH= with your own, as read with the command above.  &#xD;&#xA;#Seperate with ; from the rest of the command like shown in the example  &#xD;&#xA;crontab -e&#xD;&#xA;&#xD;&#xA;# letsencrypt&#xD;&#xA;30 2 * * 1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games;/opt/letsencrypt/letsencrypt-auto renew &amp;amp;gt;&amp;amp;gt; /var/log/le-renew.log&#xD;&#xA;35 2 * * 1 /etc/init.d/freeradius restart&#xD;&#xA;35 2 * * 1 /etc/init.d/apache2 restart&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;configure-freeradius&#34;&gt;Configure Freeradius&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cp -r /etc/freeradius/certs/ /etc/freeradius/certs_bkp  &#xD;&#xA;rm /etc/freeradius/certs/*.pem  &#xD;&#xA;cp /etc/freeradius/eap.conf /etc/freeradius/eap.conf_bkp&#xD;&#xA;&#xD;&#xA;vi /etc/freeradius/eap.conf&#xD;&#xA;&#xD;&#xA;#certdir = ${confdir}/certs&#xD;&#xA;#cadir = ${confdir}/certs&#xD;&#xA;certdir = /etc/letsencrypt/live/SERVERDOMAIN.COM&#xD;&#xA;cadir = /etc/letsencrypt/live/SERVERDOMAIN.COM&#xD;&#xA;#dh_file = ${certdir}/dh&#xD;&#xA;dh_file = ${confdir}/certs/dh&#xD;&#xA;#private_key_password = whatever&#xD;&#xA;private_key_file = ${certdir}/privkey.pem&#xD;&#xA;certificate_file = ${certdir}/cert.pem&#xD;&#xA;CA_file = ${cadir}/fullchain.pem&#xD;&#xA;&#xD;&#xA;# Configure access rights on /etc/letsencrypt  &#xD;&#xA;cd /etc/letsencrypt/  &#xD;&#xA;chgrp -R ssl-cert archive csr keys live options-ssl-apache.conf renewal # set group of cert/key dirs to ssl-cert  &#xD;&#xA;find . -type d -exec chmod g+xs {} \; # directories executable and setguid (set group ssl-cert for new files/dirs)  &#xD;&#xA;find . -type f -exec chmod g+r {} \; # files readable&#xD;&#xA;&#xD;&#xA;# Restart Freeradius  &#xD;&#xA;service freeradius stop  &#xD;&#xA;service freeradius start&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Additional infos: &lt;a class=&#34;link&#34; href=&#34;https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04&lt;/a&gt;&lt;/p&gt;</description>
        </item></channel>
</rss>
