{"id":271341,"date":"2015-12-29T12:11:02","date_gmt":"2015-12-29T09:11:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271341"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271341","title":{"rendered":"\u0421\u0431\u043e\u0440\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 FreeRADIUS 3 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SQLITE"},"content":{"rendered":"<p>       \u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0434\u043d\u044f, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435.<br \/>  \u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0412\u0430\u043c\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043e\u0434\u043d\u043e\u0439 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u043e\u043c\u0443-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e.<br \/>  \u0418\u0442\u0430\u043a,<\/p>\n<h2><b>\u0414\u0410\u041d\u041e:<\/b><\/h2>\n<p>  \u043c\u0430\u043b\u043e\u043c\u043e\u0449\u043d\u0430\u044f \u0436\u0435\u043b\u0435\u0437\u043a\u0430 \u0441 arm \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c \u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434 \u043d\u0435\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 Debian 7 wheezy.<\/p>\n<h2><b>\u0417\u0410\u0414\u0410\u0427\u0410:<\/b><\/h2>\n<p>  \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c FreeRADIUS 3.0.X, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0411\u0414 SQLITE. \u0422.\u0435., \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0443\u0436\u043d\u043e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c) RADIUS \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0411\u0414 SQLITE.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/95b\/53c\/d53\/95b53cd538134b359dac6ef45f73a0f2.jpg\"\/><\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435?<br \/>  \u0421\u0442\u043e\u043b\u043a\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0438 \u043d\u0430\u0447\u0430\u0432 \u0433\u0443\u0433\u043b\u0438\u0442\u044c \u044f \u0431\u044b\u043b \u0443\u0434\u0438\u0432\u043b\u0435\u043d \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 freeradius, \u0430 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SQLITE \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043d\u0430 \u043f\u0430\u043c\u044f\u0442\u044c.<\/p>\n<h2><b>\u0420\u0415\u0428\u0415\u041d\u0418\u0415:<\/b><\/h2>\n<p>  \u0421\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 3 \u0447\u0430\u0441\u0442\u0435\u0439:<br \/>  1) \u0421\u0431\u043e\u0440\u043a\u0430 Freeradius 3.0.3 (\u044f \u0432\u044b\u0431\u0440\u0430\u043b \u044d\u0442\u0443 \u0432\u0435\u0440\u0441\u0438\u044e, \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0437\u0434\u043d\u0438\u0445 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0436\u0435) \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SQLite;<br \/>  2) \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0432\u044f\u0437\u043a\u0438 Freeradius \u0438 SQLite;<br \/>  3) \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 (\u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0432\u044b\u0448\u0435 \u2014 \u00ab\u0441\u0435\u0440\u0432\u0435\u0440\u00bb).<\/p>\n<h3><b>1 \u0421\u0431\u043e\u0440\u043a\u0430 Freeradius 3.0.3 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SQLite<\/b><\/h3>\n<p>  \u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 radius 3.0.3 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<br \/>  <b>1.1<\/b> \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434: <a href=\"ftp:\/\/ftp.freeradius.org\/pub\/freeradius\/old\/freeradius-server-3.0.3.tar.gz\">ftp.freeradius.org\/pub\/freeradius\/old\/freeradius-server-3.0.3.tar.gz<\/a>, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443;<br \/>  <b>1.2<\/b> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 apt-get \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b: libtalloc2, libtalloc-dev, libssl-dev, libperl-dev, libpam0g-dev, libsqlite3-dev, libgdbm-dev (\u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0411\u0414, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 dev \u043f\u0430\u043a\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 mysql-dev);<br \/>  <b>1.3<\/b> \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0430\u0440\u0445\u0438\u0432\u043e\u043c \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c\u0438 \u0438, \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e,   <\/p>\n<pre><code>.\/configure make make install <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430 .\/configure \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2013 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0435\u0449\u0435 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0447\u0438\u0442\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0432\u043e\u0434 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438\u0445.<\/p>\n<h3><b>2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0432\u044f\u0437\u043a\u0438 Freeradius \u0438 SQLite<\/b><\/h3>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0432\u044f\u0437\u043a\u0438 freeradius + sqlite \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<\/p>\n<h4><b>2.1 \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0411\u0414 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 sqlite<\/b><\/h4>\n<p>  <b>2.1.1<\/b> \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u0443 sqlite \u0438 \u0441\u0445\u0435\u043c\u0443 \u0432 \u0411\u0414, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c radius:  <\/p>\n<pre><code>sqlite3 \/etc\/raddb\/sqlite_rad.db &lt; \/etc\/raddb\/mods-config\/sql\/main\/sqlite\/schema.sql<\/code><\/pre>\n<p>  \/etc\/raddb\/sqlite_rad.db \u2013 \u044d\u0442\u043e \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0411\u0414, \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435.<br \/>  <b>2.1.2<\/b> \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0423\u0417 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0411\u0414:  <\/p>\n<pre><code>sqlite3 \/etc\/raddb\/sqlite_rad.db insert into radcheck values (\u20181\u2019,\u2019user\u2019,\u2019Cleartext-Password\u2019,\u2019:=\u2019,\u2019secret\u2019);<\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c \u0432\u044b\u0448\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0432 \u0411\u0414 \u043c\u044b \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 radcheck, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u0423\u0417 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439:<br \/>  \u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 ID \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f = 1; \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f = user; \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u0423\u0417 = Cleartext-Password; \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 = \u201c:=\u201d; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430 = \u201csecret\u201d. \u0415\u0441\u043b\u0438 \u043f\u043e-\u0440\u0443\u0441\u0441\u043a\u0438, \u0442\u043e \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0423\u0417 user, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2013 \u201csecret\u201d. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e \u043f\u0430\u0440\u044b \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (av pair) \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e radius \u0438 unlang. <a href=\"http:\/\/freeradius.org\/radiusd\/man\/unlang.html\">freeradius.org\/radiusd\/man\/unlang.html<\/a><\/p>\n<h4><b>2.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c freeradius:<\/b><\/h4>\n<p>  <b>2.2.1<\/b> \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432\u0441\u0435\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 radius \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \/etc\/raddb\/mods-available. \u0427\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u0432 \u043f\u0430\u043f\u043a\u0435 \/etc\/raddb\/mods-enabled:  <\/p>\n<pre><code>cd \/etc\/raddb\/mods-enabled  ln -s \/etc\/raddb\/mods-available\/sql sql<\/code><\/pre>\n<p>  <b>2.2.2 <\/b> \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/etc\/raddb\/mods-enabled\/sql, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code>sql { \u2026\u2026\u2026\u2026 driver = &quot;rlm_sql_sqlite&quot; \u2026\u2026\u2026\u2026 \tsqlite { \t\tfilename = &quot;\/etc\/raddb\/sqlite_rad.db&quot; \t} \u2026\u2026\u2026\u2026 dialect = &quot;sqlite&quot; \u2026\u2026\u2026..<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f filename \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b \u0411\u0414, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 2.1.1.<br \/>  <b>2.2.3<\/b> \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430 radius, \u0442.\u0435. \u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0438\u043b\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435), \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0430\u043d\u043d\u044b\u0439 radius. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \/etc\/raddb\/clients.conf:  <\/p>\n<pre><code>client 192.168.0.4 {        secret          = testing123        shortname       = new_server }<\/code><\/pre>\n<p>  secret \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 \u044d\u0442\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e radius \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u043d \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<br \/>  shortname \u2013 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u00ab\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0438\u043c\u044f\u00bb, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c.<br \/>  <b>2.2.4<\/b> \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 \u00abauthorize\u00bb \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/raddb\/sites-enabled\/default \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u00ab-sql\u00bb:  <\/p>\n<pre><code>authorize { ........ -sql ........<\/code><\/pre>\n<h3><b>3 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 RADIUS <\/b><\/h3>\n<p>  <b>3.1<\/b> \u041d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 pam_radius:  <\/p>\n<pre><code>apt-get install libpam-radius-auth<\/code><\/pre>\n<p>  <b>3.2<\/b> \u0412 \u0444\u0430\u0439\u043b\u0435 \/etc\/pam_radius_auth.conf \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code>other-server    other-secret       3<\/code><\/pre>\n<p>  \u0433\u0434\u0435 other-server \u2013 IP \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 radius, other-secret \u2013 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 2.2.3 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<pre><code>192.168.0.2     testing123    3<\/code><\/pre>\n<p>  <b>3.3<\/b> \u0412 \u0444\u0430\u0439\u043b\u0435 \/etc\/pam.d\/sshd \u043d\u0430\u0434 \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u043c\u0438  <\/p>\n<pre><code># Standard Un*x authentication. @include common-auth<\/code><\/pre>\n<p>  \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443  <\/p>\n<pre><code>auth       sufficient  pam_radius_auth.so<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c RADIUS \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f PROFIT&#8217;\u043e\u043c.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/274251\/\"> http:\/\/habrahabr.ru\/post\/274251\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0434\u043d\u044f, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435.<br \/>  \u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0412\u0430\u043c\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043e\u0434\u043d\u043e\u0439 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u043e\u043c\u0443-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e.<br \/>  \u0418\u0442\u0430\u043a,<\/p>\n<h2><b>\u0414\u0410\u041d\u041e:<\/b><\/h2>\n<p>  \u043c\u0430\u043b\u043e\u043c\u043e\u0449\u043d\u0430\u044f \u0436\u0435\u043b\u0435\u0437\u043a\u0430 \u0441 arm \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c \u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434 \u043d\u0435\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 Debian 7 wheezy.<\/p>\n<h2><b>\u0417\u0410\u0414\u0410\u0427\u0410:<\/b><\/h2>\n<p>  \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c FreeRADIUS 3.0.X, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0411\u0414 SQLITE. \u0422.\u0435., \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0443\u0436\u043d\u043e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c) RADIUS \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0411\u0414 SQLITE.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-271341","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=271341"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271341\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}