<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6150778399676082249</id><updated>2026-05-30T11:50:35.580-07:00</updated><category term="captive portal"/><category term="coovachilli"/><category term="chilli"/><category term="Ajax"/><category term="Cross-Domain"/><category term="HS_MACALLOW"/><category term="HS_MACAUTHMODE"/><category term="Internet Gateway"/><category term="Internet Radio"/><category term="JQuery"/><category term="JSON"/><category term="JSONP"/><category term="Mac OSX NetBeans"/><category term="OpenWRT"/><category term="Same-Origin Policy"/><category term="android sqlite sqllite database tutorial how to understanding"/><category term="audio"/><category term="audio streaming"/><category term="b.a.t.m.a.n."/><category term="batman"/><category term="bypass login"/><category term="coova"/><category term="coovachilli howto"/><category term="debug php"/><category term="dynamic web page"/><category term="eclipse on mac osx"/><category term="eclipse osx network user"/><category term="freeradius"/><category term="google bookmark on safari"/><category term="google toolbar"/><category term="google toolbar safari"/><category term="mac address bypass"/><category term="mesh network"/><category term="mr3220"/><category term="mysql"/><category term="netbeans locking issue"/><category term="netbeans php"/><category term="network user"/><category term="networking"/><category term="openvpn howto"/><category term="php debugging"/><category term="remote data"/><category term="retrieve remote data"/><category term="running netbeans on osx"/><category term="safari"/><category term="shoutcast"/><category term="streaming"/><category term="tp-link mr3220"/><category term="wireless"/><category term="wireless network"/><category term="xdebug"/><title type='text'>helping to makes things easy -- er</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-842813400167736027</id><published>2014-07-06T22:36:00.001-07:00</published><updated>2014-07-07T19:33:22.995-07:00</updated><title type='text'>Installing Modules in Cygwin Perl</title><content type='html'>The following will install &quot;File::Tail&quot;&lt;br /&gt;
&lt;br /&gt;
Run cygwin&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cpan&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;install File::Tail&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Change &quot;File::Tail&quot; with the module name you want to install&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;NB:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If that fails you can try delete ~/.cpan/build directory or just the directory of the module you are trying to install and try again.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If that still fails try going to the downloaded directory of the module and do this&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;perl Makefile.PL &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;make&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;make test&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;make install&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/842813400167736027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2014/07/installing-modules-in-cygwin-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/842813400167736027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/842813400167736027'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2014/07/installing-modules-in-cygwin-perl.html' title='Installing Modules in Cygwin Perl'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-1442712489313581432</id><published>2013-09-12T01:07:00.000-07:00</published><updated>2015-02-24T23:50:16.814-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Cross-Domain"/><category scheme="http://www.blogger.com/atom/ns#" term="dynamic web page"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="JSONP"/><category scheme="http://www.blogger.com/atom/ns#" term="remote data"/><category scheme="http://www.blogger.com/atom/ns#" term="retrieve remote data"/><category scheme="http://www.blogger.com/atom/ns#" term="Same-Origin Policy"/><title type='text'>Simple Cross-Domain Service Call via JSONP using JQuery</title><content type='html'>&lt;h3&gt;
    Objective:
&lt;/h3&gt;
Retrieve data from a different domain and dynamically
    display them in your web page.&lt;br /&gt;
&lt;h3&gt;
    Introduction:&lt;/h3&gt;
What if you want to make your web page display data
    dynamically? You can use AJAX to achieve this. All you have to do is fire up
    your AJAX, request data from the service which you created, and do some javascript
    stuff to update your DOM. As simple as that.&lt;br /&gt;
Now, what if you were in a situation where your supposedly dynamic
    web page resides in a different domain from where your data is coming from. Initially
    you will think AJAX to the rescue, again. That would be nice but it doesn’t
    work that way.&lt;br /&gt;
There is a thing called Same-Origin policy which prevents AJAX
    from calling a service from a different domain. Sucks doesn’t it? I know I’ve
    been there. And this is why I want to share a solution and explain it as simple
    as I can. Please read on.&lt;br /&gt;
&lt;h3&gt;
    &lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Procedure:&lt;/h3&gt;
Server Side&lt;br /&gt;
&lt;br /&gt;
create a php script named server.php. with the following content&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;?php&lt;br /&gt;header(&quot;Access-Control-Allow-Origin: *&quot;);&lt;br /&gt;header(&#39;content-type: application/json; charset=utf-8&#39;);&lt;br /&gt;$data = [&lt;br /&gt;&amp;nbsp; &amp;nbsp; [&#39;name&#39; =&amp;gt; &#39;uma&#39;],&lt;br /&gt;&amp;nbsp; &amp;nbsp; [&#39;name&#39; =&amp;gt; &#39;tykia&#39;],&lt;br /&gt;&amp;nbsp; &amp;nbsp; [&#39;name&#39; =&amp;gt; &#39;miranda&#39;],&lt;br /&gt;&amp;nbsp; &amp;nbsp; [&#39;name&#39; =&amp;gt; &#39;de guzman&#39;]&lt;br /&gt;];&lt;br /&gt;echo json_encode($data);&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Client side:&lt;br /&gt;
&lt;br /&gt;
Create a file named client.html with the following content:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot; src=&quot;//code.jquery.com/jquery-1.11.2.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(function () {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var url = &quot;http://www.servercom/server.php&quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $.ajax({&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataType: &quot;json&quot;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: url,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data: {},&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success: function(r){&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(JSON.stringify(r));&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error: function(a,b,c){&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(a);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(b);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(c);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; })&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
Replace the url with the actual url of the server-side script&lt;br /&gt;
&lt;br /&gt;
I hope it helps</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/1442712489313581432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2013/09/simple-cross-domain-service-call-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/1442712489313581432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/1442712489313581432'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2013/09/simple-cross-domain-service-call-via.html' title='Simple Cross-Domain Service Call via JSONP using JQuery'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-1435706639012424555</id><published>2013-01-29T00:09:00.000-08:00</published><updated>2013-01-29T00:09:47.555-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google bookmark on safari"/><category scheme="http://www.blogger.com/atom/ns#" term="google toolbar"/><category scheme="http://www.blogger.com/atom/ns#" term="google toolbar safari"/><category scheme="http://www.blogger.com/atom/ns#" term="safari"/><title type='text'>Google Bookmark on Safari</title><content type='html'>&lt;br /&gt;
I like Google bookmark since everywhere I go I get to access my bookmarks. That way I can go to my previously bookmarked page and read it at my convenience. In Safari accessing my bookmarks is not hard. Basically I just go to http://bookmarks.google.com, log in and i&#39;ll be presented with my list. However, adding an item into my bookmark is another story. The long way is to go to Google&#39;s bookmark page and clicking the Add bookmark link. But this is to tedious since you have to provide the title and the URL of the page you want to bookmark.&lt;br /&gt;
&lt;br /&gt;
Fortunately, there is a way. I had this in my Safari for a long time now (frankly, I can&#39;t remember where I got it in the first place) and only came to realize how valuable it is when I needed to add this function on a different Mac. I have searched and I have googled but I can&#39;t find a way to add Google Toolbar on Safari to ease the task of adding a bookmark nor adding just only the bookmark function. Thus I am sharing this for those who might need it.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s start.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
1. Start Safari&lt;br /&gt;
2. Click Bookmarks --&amp;gt; Add Bookmark…&lt;br /&gt;
3. Type &quot;Google Bookmark&quot; or other label the you deemed more appropriate&lt;br /&gt;
4. For the location, select &quot;Bookmarks Bar&quot; from the drop-down list&lt;br /&gt;
5. Click Add button&lt;br /&gt;
6. Going back to the menu, click Bookmarks (again) then Show All Bookmarks&lt;br /&gt;
7. Select &quot;Bookmarks Bar&quot; in the left pane&lt;br /&gt;
8. Locate the bookmark item you just recently added&lt;br /&gt;
9. Click it then click (again) this time aiming at the address column to put it in edit mode&lt;br /&gt;
10. Replace the value of the address with the following (note that this is just one line)&lt;br /&gt;
&lt;br /&gt;
javascript:(function(){var%20a=window,b=document,c=encodeURIComponent,d=a.open(%22https://www.google.com/bookmarks/mark?op=edit&amp;amp;output=popup&amp;amp;bkmk=%22+c(b.location)+%22&amp;amp;title=%22+c(b.title),%22bkmk_popup%22,%22left=%22+((a.screenX||a.screenLeft)+10)+%22,top=%22+((a.screenY||a.screenTop)+10)+%22,height=510px,width=550px,resizable=1,alwaysRaised=1%22);a.setTimeout(function(){d.focus()},300)})();&lt;br /&gt;
&lt;br /&gt;
11. Press return button to save the new address value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you typed in the correct address this should give you the convenience of adding the current page to you Google bookmark by just clicking the bookmark item you&#39;ve just created.&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/1435706639012424555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2013/01/google-bookmark-on-safari.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/1435706639012424555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/1435706639012424555'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2013/01/google-bookmark-on-safari.html' title='Google Bookmark on Safari'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-4685961900581115934</id><published>2013-01-17T22:26:00.000-08:00</published><updated>2013-01-17T22:26:40.293-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="audio"/><category scheme="http://www.blogger.com/atom/ns#" term="audio streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Radio"/><category scheme="http://www.blogger.com/atom/ns#" term="shoutcast"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><title type='text'>Setting Up An Internet Radio Station</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Objective&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;This guide aims to provide the steps in creating an Internet radio station.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Overview&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In this guide we will run a SHOUTcast Distributed Network Audio Server (DNAS) that will broadcast audio stream coming from a transcoder. Initially we will use the SHOUTcast Transcoder to send audio streams to SHOUTcast DNAS for it to broadcast. Both SHOUTcast DNAS and SHOUTcast Transcoder will reside in one host computer running Linux OS.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;After the initial setup is done, we will replace SHOUTcast Transcoder with Winamp+DSP running on Windows. This will give easier control on what audio file to stream or switch to live input from a microphone.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Next we will want other people to know of our Server and give them a way to connect to our service. To do that we will need to register our SHOUTcast DNAS to SHOUTcast directory to be included in SHOUTcast’s list of available servers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;We will then finish this guide with steps on how to configure SHOUTcast DNAS accept multiple input and broadcast these in different streams.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Requirements&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Computer running Linux OS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;SHOUTcast&amp;nbsp; DNAS 2.0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;SHOUTcast Transcoder&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;i&gt;For Winamp&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Computer running Windows OS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Winamp&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;DSP Plug-In for Winamp&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;SHOUTcast DNAS&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;We need to download a copy of SHOUTcast DNAS from http://www.shoutcast.com/broadcast-tools, and extract it to its own folder. This copy of SHOUTcast DNAS comes pre-compiled and is ready to run as soon as it’s been extracted.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#cd /usr/src&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#mkdir shoutcast&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#cd shoutcast&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_07_31_2011.tar.gz &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;for a 64 bit version, download http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#tar -xzvf /sc_serv2_linux_07_31_2011.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;SHOUTcast DNAS comes with several sample configuration files that are ready to use. For&amp;nbsp; our need we just need to change the administrator password for SHOUTcast DNAS’s web interface.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open sc_serv2_basic.conf and look for the line “adminpassword=changeme”. Replace the value with your desired password. Save and close the file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Since we are still not sending audio stream to our Server, we cannot test if our Server is working by using an audio player and listening to it. However, we can still run the Server and test its status by checking its web interface.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In the Server&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#cd /usr/src/shoutcast&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#./sc_serv sc_serv_basic.conf&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In a computer with an Internet browser&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open a browser&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In the address bar, type the IP address of our Server followed by port 8000 (e.g. 192.168.1.1:8000)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use the following for the login credentials&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;username = admin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;password = &amp;lt;the password you provided during the configuration&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;You will now then be presented with the Server’s web interface&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Do not worry if the status says that the Server is currently down. This is just because we have not yet provided the Server with an audio stream to broadcast.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;SHOUTcast Transcoder&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Now we’re ready to install the Transcoder that will provide the Server with audio stream to broadcast. Just like SHOUTcast DNAS, SHOUTcast Transcoder comes pre-compiled so we only need to create another directory then download and extract the Trancoder there.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#mkdir /usr/src/shoutcast/transcoder&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#cd /usr/src/shoutcast/transcoder&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#wget http://download.nullsoft.com/shoutcast/tools/sc_trans_linux_10_07_2011.tar.gz&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;for a 64 bit version, download http://download.nullsoft.com/shoutcast/tools/sc_trans_linux_x64_10_07_2011.tar.gz&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#tar -xzvf sc_trans_linux_10_07_2011.tar.gz&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Again, just like SHOUTcast DNAS, SHOUTcast Transcoder comes with sample configuration files that we can use right away. All we need to do now is to copy audio files into /usr/src/shoutcast/transcoder/music folder (or to other location you like as long as it is accessible by the Transcoder).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open /usr/src/shoutcast/transcoder/playlists/main.lst and add the location of the audio file to include in the stream, one file per line. Just follow the example provided in main.lst (don’t forget to remove this line after you are finished adding your audio files). Save and close main.lst&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Start Streaming&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;To start streaming audio to the server, just run sc_trans with the file name of the configuration file to use&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#./sc_trans sc_trans_basic.conf&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Make sure the SHOUTcast DNAS is running before you execute the above command&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;This time we can use an audio player like Winamp, iTunes, VLC, etc. to see if our Server is indeed broadcasting the audio stream provided to it by the Transcoder.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Do this in another computer that has an Internet browser:&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open an Internet browser&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Go to &amp;lt;your Server’s IP address&amp;gt;:8000/listen.pls (e.g. 192.168.1.1:8000/listen.pls)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;If your browser is configured to open an application that can handle PLS files it will run and start playing the audio broadcasted from our Server&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Otherwise, run your audio player and open the downloaded listen.pls file. This will start playing the audio broadcasted from our Server&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Registration to SHOUTcast Directory&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;By now we have a working Internet radio that is ready to broadcast to the whole world. What is left now is for the whole world to know that our server exists. We can easily let the whole world know our server and give them a easy way to connect to us by registering our server to SHOUTcast directory. So with the Server and Transcoder still running, follow the following instructions.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open an Internet browser&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In the address bar, type the following&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;lt;Server IP&amp;gt;:&amp;lt;Port #&amp;gt;/admin.cgi?sid=0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;(e.g. 192.168.1.1:8000/admin.cgi?sid=0)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Login&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click on &lt;i&gt;Create Authhash&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Fill up the form that follows then click &lt;i&gt;Create Authhash&lt;/i&gt; button&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;This time instead of using sc_serv_basic.conf as the parameter for sc_serv, use sc_serv_public.conf&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;i.e.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sc_serv sc_serv_public.conf&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;That’s it! Our server is not included in SHOUTcast directory and ready for the whole world to use.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Winamp&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Since SHOUTcast Transcoder does not have a GUI interface it becomes hard to add or remove files to be included in the stream. Also, switching between recorded and live feed. To make is easier to control what is to be included in the stream, we will replace SHOUTcast Transcoder with Winamp with DSP plug-in. DSP plug-in is used for sending live feed into the stream. SHOUTcast DSP Plug-In for Winamp only works on Windows so get a Windows computer and start installing.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Install Winamp&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Download Winamp from www.winamp.com&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Double-click the downloaded file and follow the installation prompts&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Install SHOUTcast DSP Plug-In for Winamp&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Download the DSP plug-in from http://www.shoutcast.com/broadcast-tools&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Double-click the downloaded file and follow the installation prompts&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open Winamp’s preferences window by clicking &lt;i&gt;Options&lt;/i&gt; then &lt;i&gt;Preferences&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Select &lt;i&gt;DSP/Effect&lt;/i&gt; under &lt;i&gt;Plug-ins&lt;/i&gt; in the left side list box&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In the right side list box, select &lt;i&gt;Nullsoft SHOUTcast Source DSP v2.3.2&amp;nbsp; [dsp_sc.dll]&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click &lt;i&gt;Configure active plug-in&lt;/i&gt; button located at the bottom of the window&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In &lt;i&gt;Nullsoft SHOUTcast Source, &lt;/i&gt;Open the &lt;i&gt;Output&lt;/i&gt; tab then the &lt;i&gt;Login&lt;/i&gt; tab&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Under &lt;i&gt;Server Address&lt;/i&gt;, type in the IP address of our SHOUTcast DNAS (e.g 192.168.1.1)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Under &lt;i&gt;Port&lt;/i&gt;, type the port number used by our SHOUTcast DNAS (e.g. 8000)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Keep &lt;i&gt;Stream&lt;/i&gt;’s value of 1&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Ignore the &lt;i&gt;DJ / User ID&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Under p&lt;i&gt;assword&lt;/i&gt;, type in the administrator password you provided for the SHOUTcast DNAS&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Select &lt;i&gt;Automatic reconnection on connection failure&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Keep &lt;i&gt;Reconnection timeout&lt;/i&gt; of 1 second&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Unselect &lt;i&gt;Use SHOUTcast v1 mode&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click on the &lt;i&gt;Input&lt;/i&gt; tab&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Select the &lt;i&gt;Input Device &lt;/i&gt;you want to use&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Winamp (to send the audio being produced by Winamp when it plays)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Souncard Input (to send the audio being received by the computer’s audio input, like your voice from a microphone)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Before clicking the &lt;i&gt;Connect&lt;/i&gt; button in &lt;i&gt;Nullsoft SHOUTcast Source &lt;/i&gt;window, make sure that you have stopped SHOUTcast Transcoder but keep SHOUTcast DNAS running.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;If you selected &lt;i&gt;Winamp&lt;/i&gt; as the &lt;i&gt;Input Device,&lt;/i&gt; add audio files into Winamp’s playlist and click the Winamp’s play button&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Re-open &lt;i&gt;Nullsoft SHOUTcast Source &lt;/i&gt;window (if it closed) and click the &lt;i&gt;Connect&lt;/i&gt; in the &lt;i&gt;Output&lt;/i&gt; tab&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;On a different device, connect an audio player to our SHOUTcast DNAS&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Once your done you should hear the audio player playing the broadcast from our SHOUTcast DNAS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 18.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Multiple Stream&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;SHOUTcast DNAS is capable of broadcasting multiple streams, meaning we broadcast more than one audio source from our SHOUTcast DNAS. We are going to reconfigure our Server to allow two Transcoders / sources to send input to our Server for it to broadcast. One source will be coming from SHOUTcast Transcoder and the other from Winamp.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Server Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open &lt;i&gt;sc_serv_basic.conf&lt;/i&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Comment the lines&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;streamid=1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;streampath=/test.aac&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;and uncomment the following lines&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;streamid_1=1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;streampath_1=/test.aac&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;streamid_2=2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;streampath_2=/test2.aac&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Save and close the configuration file (Note: you still start sc_serv using sc_serv_public.conf if you want to make the Server public. sc_serv_public.conf reads and includes the configuration in sc_serv_basic.conf)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Transcoder Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;&lt;i&gt;SHOUTcast Transcoder&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open &lt;i&gt;sc_trans_basic.conf&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Look for &lt;i&gt;streamid&lt;/i&gt; and set its value to 1 to occupy broadcast stream 1 of our Server&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Optionally change the value of &lt;i&gt;adminport &lt;/i&gt;in case it is being used by other Transcoder or other programs&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Save and close the file&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;&lt;i&gt;Winamp + DSP&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open &lt;i&gt;Nullsoft SHOUTcast Source&lt;/i&gt; window&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open &lt;i&gt;Output&lt;/i&gt; tab then the &lt;i&gt;Login&lt;/i&gt; tab&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Set the value of &lt;i&gt;Stream&lt;/i&gt; to 2 to occupy broadcast stream 2 of our Server&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Registering Stream 2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;SHOUTcast DNAS is now ready to broadcast these two input sources. However, we still have not registered stream 2 to SHOUTcast directory. We have to do the registrations steps as instructed in &lt;i&gt;Registration to SHOUTcast Directory &lt;/i&gt;section. This time choose &lt;i&gt;Create Authhash&lt;/i&gt; for stream 2.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 15.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Start our server using sc_serv_public.conf as the parameter&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Start SHOUTcast Transcoder&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Start Winamp and click the &lt;i&gt;Connect&lt;/i&gt; button in &lt;i&gt;Nullsoft SHOUTcast Source&lt;/i&gt; window&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use an audio player to listen to the streams. You can manually input the source and select the stream to listen to by accessing this URL pattern&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;lt;Server IP address&amp;gt;:&amp;lt;Port #&amp;gt;/test.aac for stream 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;lt;Server IP address&amp;gt;:&amp;lt;Port #&amp;gt;/test2.aac for stream 2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;e.g.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;192.168.1.1:8000/test.aac&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/4685961900581115934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2013/01/setting-up-internet-radio-station.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/4685961900581115934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/4685961900581115934'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2013/01/setting-up-internet-radio-station.html' title='Setting Up An Internet Radio Station'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-3770464444277271503</id><published>2013-01-17T00:49:00.000-08:00</published><updated>2013-01-17T22:28:37.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="b.a.t.m.a.n."/><category scheme="http://www.blogger.com/atom/ns#" term="batman"/><category scheme="http://www.blogger.com/atom/ns#" term="captive portal"/><category scheme="http://www.blogger.com/atom/ns#" term="chilli"/><category scheme="http://www.blogger.com/atom/ns#" term="coovachilli"/><category scheme="http://www.blogger.com/atom/ns#" term="mesh network"/><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><category scheme="http://www.blogger.com/atom/ns#" term="wireless"/><category scheme="http://www.blogger.com/atom/ns#" term="wireless network"/><title type='text'>OpenWRT + BATMAN + CoovaChilli</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Objective&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Build a captive portal on a wireless mesh network&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Wireless clients can roam around the mesh network&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Requirements&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;OpenWRT compatible router&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;OpenWRT&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;B.A.T.M.A.N.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;CoovaChilli&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;FreeRadius&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Topology&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;img alt=&quot;pastedGraphic.pdf&quot; src=&quot;webkit-fake-url://40A24A8F-6D93-4B29-BFD3-EE4BB61C56CB/pastedGraphic.pdf&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;OpenWRT&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Download appropriate OpenWRT image from http://downloads.openwrt.org/snapshots/trunk/&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect your computer to the router&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Turn on the router&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Follow the router’s manual on upgrading its firmware but instead of using the manufacturer’s upgraded firmware, use the downloaded OpenWRT image&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;For the configuration, we just need to set a password for the root user account&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Using Telnet, login to the router. A router with a newly installed OpenWRT has a default IP address of 192.168.1.1. Your telnet command should be&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;telnet 192.168.1.1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Once logged in type &lt;/span&gt;&lt;span style=&quot;font: 10.0px Helvetica; letter-spacing: 0.0px;&quot;&gt;passwd&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt; then Enter and provide a password for the root user account&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Logout by typing &lt;/span&gt;&lt;span style=&quot;font: 10.0px Helvetica; letter-spacing: 0.0px;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt; then press Enter&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;First we test if OpenWRT can access the Internet&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect the WAN port of the router to the Internet&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Login to the router using ssh (use root and the password you just set during configuration respectively)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Now do a ping test to see if the router is indeed connected to the Internet&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Now We’ll test the wireless interface of the router&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Still logged in to the router, edit /etc/config/wireless&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Delete the line that says “option disabled 1”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Optionally set the SSID (This is the line that says &lt;/span&gt;&lt;span style=&quot;font: 10.0px Helvetica; letter-spacing: 0.0px;&quot;&gt;option ssid ‘OpenWRT’&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;. Change OpenWRT to your chosen SSID)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Save and close the file&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Type wifi and press Enter to reload wifi configuration&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect to the router through its wireless interface. You should be able to access the Internet&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;B.A.T.M.A.N.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Login to the router&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect the router to the Internet&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Execute the following&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;opkg update&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;opkg install kmod-batman-adv&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create a file /tmp/batman_config.sh and set the content with the following&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;### Node-specific settings&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export HOSTNAME=&quot;ROUTERNAME&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export IP=&quot;192.168.1.1&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export LAN_IFNAME=&quot;eth0 bat0&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;### Network-specific settings should be consistent across all nodes with in the mesh network&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export PUBLIC_ESSID=&quot;OMNISPOT&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export NETMASK=&quot;255.255.255.0&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export DNS=&quot;&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export GATEWAY=&quot;&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export MESH0_BSSID=&quot;CA:CA:CA:CA:CA:00&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export MESH0_ESSID=&quot;mesh0&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;export MESH0_CHANNEL=&quot;3&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;wifi detect &amp;gt;&amp;gt;/etc/config/wireless&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;( for i in `seq 0 9` ; do echo &quot;delete wireless.@wifi-iface[]&quot; ; done ) | uci batch -q&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;uci import -m batman-adv &amp;lt;/dev/null&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;echo &quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set system.@system[0].hostname=$HOSTNAME&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set batman-adv.bat0=mesh&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set batman-adv.bat0.interfaces=&#39;mesh0&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set batman-adv.bat0.gw_mode=&#39;off&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.lan.ipaddr=$IP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.lan.netmask=$NETMASK&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.lan.dns=&#39;$DNS&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.lan.gateway=$GATEWAY&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.lan.ifname=&#39;$LAN_IFNAME&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.bat0=interface&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.bat0.ifname=bat0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.bat0.proto=none&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.bat0.mtu=1500&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.mesh0=interface&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.mesh0.proto=none&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set network.mesh0.mtu=1528&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.radio0=wifi-device&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.radio0.channel=$MESH0_CHANNEL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.radio0.disabled=0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.radio0.phy=phy0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.radio0.macaddr=&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;add wireless wifi-iface&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].device=radio0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].encryption=none&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].network=lan&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].mode=ap&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].ssid=&#39;$PUBLIC_ESSID&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;add wireless wifi-iface&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].device=radio0&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].encryption=none&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].network=mesh0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].mode=adhoc&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].bssid=$MESH0_BSSID&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].ssid=&#39;$MESH0_ESSID&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set wireless.@wifi-iface[-1].mcast_rate=11000&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;set dhcp.lan.ignore=1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;commit&quot; \&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;| uci batch&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Set the values of the node-specific settings for each router&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; border-collapse: collapse;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 122.7px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 306.6px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 122.7px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;HOSTNAME&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 306.6px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Would-be hostname of the router&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 122.7px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;IP&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 306.6px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Would-be IP address of the router&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 28.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 122.7px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;LAN_IFNAME&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 28.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 306.6px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;LAN interface name of the router and bat0 (B.A.T.M.A.N. interface)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Set the network specific-settings. These should be the same for all nodes in the mesh network&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; border-collapse: collapse;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 28.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;PUBLIC_ESSID&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 28.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The SSID of the wireless network where clients will connect to&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;NETMASK&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Network mask of the mesh network&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;DNS&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The DNS setting&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;GATEWAY&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Internet gateway address&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 28.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;MESH0_BSSID&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 28.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;A common MAC address to enable the nodes of the mesh network to identify each other and communicate&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;MESH0_ESSID&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The SSID for the mesh network&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 121.9px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;MESH0_CHANNEL&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 305.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The channel to use for wireless communication&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Save and close the file /tmp/batman_config.sh&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Run the batman configuration script&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sh /tmp/batman_config.sh&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart the router&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Do this for all the routers involve&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Turn on all the routers&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Log in to one of the routers&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;You should be able to ping the other router&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;CoovaChilli&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Login to the router&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect the router to the Internet&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Execute the following&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;opkg update&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;opkg install coova-chilli&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Execute the following on your computer&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #2400a9; font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px color: #000000;&quot;&gt;wget &lt;a href=&quot;http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz&lt;/span&gt;&lt;/a&gt; .&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;tar -xzvf coova-chilli-1.3.0.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cd coova-chilli-1.3.0/miniportal&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ls *.in | sed &#39;s/\(.*\)\.in/\1/&#39; | xargs -I {} mv {}.in {}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Substitute the markers @SBINDIR@ and @ETCCHILLI@ with “/usr/sbin” and “/etc/chilli” respectively&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Copy the content of miniportal folder to the router&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scp * &lt;a href=&quot;mailto:root@192.168.1.1&quot;&gt;&lt;span style=&quot;font: 10.0px Helvetica; letter-spacing: 0.0px color: #2400a9; text-decoration: underline;&quot;&gt;root@192.168.1.1&lt;/span&gt;&lt;/a&gt;:/etc/chilli/www/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Logon to the router&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open /etc/chilli/defaults and edit the following settings&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; border-collapse: collapse;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 69.1px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Key&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 123.4px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Recommended Value&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background-color: #bec0bf; border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 14.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 226.8px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Remarks&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 56.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 69.1px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;HS_WANIF&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 56.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 123.4px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;eth1 or eth0.2&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 56.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 226.8px;&quot; valign=&quot;top&quot;&gt;&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The WAN interface&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment this and set the value to the name of the WAN of the router&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use ifconfig to give you a hint&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 42.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 69.1px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;HS_LANIF&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 42.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 123.4px;&quot; valign=&quot;top&quot;&gt;&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;bat0&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #000000 #000000 #000000 #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; height: 42.0px; padding: 5.0px 5.0px 5.0px 5.0px; width: 226.8px;&quot; valign=&quot;top&quot;&gt;&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The LAN interface&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;bat0 is the name of the mesh network interface&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Choose either of the two for authentication&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;RADIUS Authentication&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;For radius authentication, provide the IP address of the RADIUS server as value for key HS_RADIUS in /etc/chilli/defaults&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Local File Authentication&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;For local file authentication, uncomment the line HS_LOCALUSERS in /etc/chilli/defaults&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create the file /etc/chilli/localusers and add the username and password in the following format&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;username:password:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Replace the marker username and password for the actual username and password. Use one line for each entry&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart the router&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use a tablet or a PC to connect to the mesh network&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open a browser and type in a URL&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;After you have installed and configured everything, you should have a captive portal working on a wireless mesh network. All DHCP request are handled by the gateway running CoovaChilli. And Internet access is controlled by CoovaChilli.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/3770464444277271503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2013/01/openwrt-batman-coovachilli.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/3770464444277271503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/3770464444277271503'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2013/01/openwrt-batman-coovachilli.html' title='OpenWRT + BATMAN + CoovaChilli'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-8074194143619020205</id><published>2012-12-02T20:32:00.000-08:00</published><updated>2012-12-02T20:34:24.994-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OSX NetBeans"/><category scheme="http://www.blogger.com/atom/ns#" term="netbeans locking issue"/><category scheme="http://www.blogger.com/atom/ns#" term="network user"/><category scheme="http://www.blogger.com/atom/ns#" term="running netbeans on osx"/><title type='text'>Running NetBeans using a Mac Network User Account</title><content type='html'>I have known this for a long time now. And today, I just happen to need NetBeans again. I am using Mac OSX 10.6 logged in as a network user. You&#39;d think it would be easy to run NetBeans in this environment. Well, think again. I, again, forgot how to start NetBeans.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So I am writing this to share to other, and serve also as a reminder to myself.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Steps to running NetBeans:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. Open a Terminal&lt;/div&gt;
&lt;div&gt;
2. Type the following on the Terminal&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;open &amp;lt;Path to NetBeans.app&amp;gt; --args -J-Dosgi.locking=none&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
That&#39;s it!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/8074194143619020205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2012/12/running-netbeans-using-mac-network-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/8074194143619020205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/8074194143619020205'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2012/12/running-netbeans-using-mac-network-user.html' title='Running NetBeans using a Mac Network User Account'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-441333963719157338</id><published>2012-11-23T16:36:00.000-08:00</published><updated>2012-11-30T05:01:48.788-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bypass login"/><category scheme="http://www.blogger.com/atom/ns#" term="captive portal"/><category scheme="http://www.blogger.com/atom/ns#" term="coovachilli"/><category scheme="http://www.blogger.com/atom/ns#" term="HS_MACALLOW"/><category scheme="http://www.blogger.com/atom/ns#" term="HS_MACAUTHMODE"/><category scheme="http://www.blogger.com/atom/ns#" term="mac address bypass"/><title type='text'>CoovaChilli - MAC Address Authentication</title><content type='html'>Since it&#39;s hard to get a straight answer from CoovaChilli&#39;s site, I just decided to post my findings in here.&lt;br /&gt;
&lt;br /&gt;
Today, after so much searching and testing, I discovered how to bypass CoovaChilli&#39;s usual login page. In this post you will learn how to allow a device to gain access to the Internet via CoovaChilli based on the devices&#39; MAC address.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
I&#39;m not much for words so go to the easy setup.&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Go to /etc/chilli or /usr/local/chilli depending on how you installed your CoovaChilli&lt;/li&gt;
&lt;li&gt;Open the &quot;&lt;i&gt;defaults&lt;/i&gt;&quot; file&lt;/li&gt;
&lt;li&gt;Uncomment &lt;i&gt;HS_MACAUTHMODE=local &lt;/i&gt;&lt;/li&gt;
&lt;li&gt;Also uncomment &lt;i&gt;HS_MACALLOW=&quot;...&quot; &lt;/i&gt;and edit it to look something like this&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
HS_MACALLOW=&quot;00-25-d3-3f-70-9f&quot;&lt;/blockquote&gt;
&lt;br /&gt;Change the value part with the MAC address of the device that you want bypass the login process&lt;/li&gt;
&lt;/ol&gt;
That&#39;s it!&lt;br /&gt;
&lt;br /&gt;
To add more devices in the list, simply add their MAC address separating them with comma. Like:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
HS_MACALLOW=&quot;00-25-d3-3f-70-9f,1C-4B-D6-5B-90-CA&quot;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Again, that&#39;s it!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I hope this helps&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/441333963719157338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2012/11/coovachilli-mac-address-authentication.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/441333963719157338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/441333963719157338'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2012/11/coovachilli-mac-address-authentication.html' title='CoovaChilli - MAC Address Authentication'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-7820845655259911067</id><published>2012-11-22T22:27:00.000-08:00</published><updated>2012-11-30T08:04:44.920-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="captive portal"/><category scheme="http://www.blogger.com/atom/ns#" term="coovachilli"/><category scheme="http://www.blogger.com/atom/ns#" term="mr3220"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenWRT"/><category scheme="http://www.blogger.com/atom/ns#" term="tp-link mr3220"/><title type='text'>OpenWRT+CoovaChilli</title><content type='html'>&lt;h1&gt;
Introduction&lt;/h1&gt;
Today I am going to share my experience in Installing CoovaChilli on a router.  &lt;br /&gt;
&lt;br /&gt;
My first attempt with this endeavor ended up with me having a very expensive brick instead of a captive portal. So for those who want to avoid this costly experience I am laying out this simple installation process for you to follow and hopefully succeed. Once you get comfortable with it you can then venture into more riskier approach, like compiling your own OpenWRT.&lt;br /&gt;
&lt;br /&gt;
I am using TP-Link&#39;s MR3220 as my router. Though I haven&#39;t tried it yet, I hope the same approach will work on other routers based on Altheros AR71xx.&lt;br /&gt;
Let&#39;s start!&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1&gt;
 Download required Packages&lt;/h1&gt;
1.	Download openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin from &lt;a href=&quot;http://downloads.openwrt.org/snapshots/trunk/ar71xx/&quot;&gt;http://downloads.openwrt.org/snapshots/trunk/ar71xx/&lt;/a&gt;. &lt;br /&gt;
  2.	Download the following from &lt;a href=&quot;http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/&quot;&gt;http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/&lt;/a&gt; &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;coova-chilli_1.2.9-1_ar71xx.ipk&lt;/li&gt;
&lt;li&gt;haserl_0.9.29-1_ar71xx.ipk&lt;/li&gt;
&lt;li&gt;kmod-tun_3.3.8-1_ar71xx.ipk&lt;/li&gt;
&lt;li&gt;libpthread_0.9.33.2-1_ar71xx.ipk&lt;/li&gt;
&lt;li&gt;librt_0.9.33.2-1_ar71xx.ipk&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;
Flash OpenWRT for MR3220&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;Use a LAN cable to connect your computer to one of the LAN ports of the router&lt;/li&gt;
&lt;li&gt;Start a browser and go to http://192.168.1.1 (this is the router&#39;s default IP address, change this accordingly if you already changed your router&#39;s IP address)&lt;/li&gt;
&lt;li&gt;Choose System Tools --&amp;gt; Firmware Upgrade&lt;/li&gt;
&lt;li&gt;Click the Browse button&lt;/li&gt;
&lt;li&gt;Locate and select openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin file&lt;/li&gt;
&lt;li&gt;Click the Upgrade button&lt;/li&gt;
&lt;li&gt;Wait until it says rebooting&lt;/li&gt;
&lt;/ol&gt;
In this stage OpenWRT is already installed in your router and you will not be able to access your router’s web interface&lt;br /&gt;
&lt;h1&gt;
Initialize OpenWRT&lt;/h1&gt;
For first time login, you have to set root’s password. Follow these steps.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Still connected to your router, open telnet and connect to 192.168.1.1&lt;/li&gt;
&lt;li&gt;Once logged in you should be see a display similar to this:&lt;br /&gt;&lt;/li&gt;
&lt;pre&gt;  BusyBox v1.19.4 (2012-11-18 23:21:39 EST) built-in shell (ash)
  Enter &#39;help&#39; for a list of built-in commands.
  
  _______                     ________        __
  |       |.-----.-----.-----.|  |  |  |.----.|  |_
  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  |_______||   __|_____|__|__||________||__|  |____|
  |__| W I R E L E S S   F R E E D O M
  -----------------------------------------------------
  BARRIER BREAKER (Bleeding Edge, r34253)
  -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
  -----------------------------------------------------
  root@OpenWrt:~# 

&lt;/pre&gt;
&lt;li&gt;To set root’s password type &lt;em&gt;passwd&lt;/em&gt; the press return key&lt;/li&gt;
&lt;li&gt;Type in root’s new password, press return, then re-type the password for confirmation&lt;/li&gt;
&lt;/ol&gt;
After setting the password you should quit telnet and login to the router using ssh


&lt;br /&gt;
&lt;h1&gt;
Setup Wireless Configuration&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;Login to the router using ssh&lt;/li&gt;
&lt;code&gt;&lt;br /&gt;ssh root@192.168.1.1&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Edit /etc/config/wireless&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;
vi /etc/config/wireless
&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Comment or delete the line “option disabled 1” to enable wireless LAN&lt;/li&gt;
&lt;li&gt;Optionally change the SSID by changing the value of &lt;em&gt;“option ssid”&lt;/em&gt;, from OpenWRT to your choice&lt;/li&gt;
&lt;li&gt;Save and close the file&lt;/li&gt;
&lt;li&gt;Execute &lt;em&gt;wifi&lt;/em&gt; to force the system to re-read the wireless configuration file and start wireless LAN&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;
Install CoovaChilli&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;Go to your computer’s terminal and copy the rest of the packages to router’s /tmp directory&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;scp coova-chilli_1.2.9-1_ar71xx.ipk haserl_0.9.29-1_ar71xx.ipk kmod-tun_3.3.8-1_ar71xx.ipk libpthread_0.9.33.2-1_ar71xx.ipk librt_0.9.33.2-1_ar71xx.ipk root@192.168.1.1:/tmp&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Log back in to the router&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;ssh root@192.168.1.1&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Go to /tmp and install the packages in the following order&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;
  opkg install librt_0.9.33.2-1_ar71xx.ipk&lt;br /&gt;
  opkg install libpthread_0.9.33.2-1_ar71xx.ipk&lt;br /&gt;
  opkg install kmod-tun_3.3.8-1_ar71xx.ipk&lt;br /&gt;
  opkg install coova-chilli_1.2.9-1_ar71xx.ipk&lt;br /&gt;
  opkg install haserl_0.9.29-1_ar71xx.ipk
&lt;/code&gt;
&lt;/ol&gt;
&lt;h1&gt;
Setup CoovaChilli&lt;/h1&gt;
&lt;h3&gt;
&amp;nbsp;Configuration File&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Open /etc/chilli/defaults and change the following lines&lt;/li&gt;
&lt;pre&gt;  
  from “# HS_WANIF=eth0                      # WAN Interface toward the Internet”
  to “HS_WANIF=eth1                          # WAN Interface toward the Internet”
  
  from “HS_LANIF=eth1                        # Subscriber Interface for client devices”
  to “HS_LANIF=wlan0                         # Subscriber Interface for client devices”
  
  from “HS_RADIUS=locahost”
  to “HS_RADIUS=&amp;lt;your RADIUS IP address&amp;gt;”
  
  from &quot;HS_RADSECRET=testing123              # Set to be your RADIUS shared secret&quot;
  to &quot;HS_RADSECRET=&amp;lt;your RADIUS password&amp;gt;    # Set to be your RADIUS shared secret
&lt;/pre&gt;
&lt;li&gt;Save and close the file&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;h3&gt;
Start-up Script&lt;/h3&gt;
Now we need to create the startup script for coova-chilli. Coova-chilli package does not provide this so we have to create this by hand
&lt;br /&gt;
Create a the file &lt;em&gt;/etc/init.d/chilli&lt;/em&gt; with the following content
&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;     #!/bin/sh /etc/rc.common
     # - init script for chilli -

     START=60
     STOP=90

     NAME=chilli
     RUN_D=/var/run
     CMDSOCK=$RUN_D/$NAME.sock
     PIDFILE=$RUN_D/$NAME.pid

     option_cb() { [ -n &quot;$2&quot; ] &amp;amp;&amp;amp; echo &quot;HS_$(echo $1|tr &#39;a-z&#39; &#39;A-Z&#39;)=\&quot;$2\&quot;&quot; | sed &#39;s/\$/\\\$/g&#39;; }
     config_load hotspot &amp;gt; /etc/chilli/config

     . /etc/chilli/functions

     start() {
         HS_DNS_DOMAIN=${HS_DNS_DOMAIN:-cap.coova.org}
         HS_DNS1=${HS_DNS1:-$HS_UAMLISTEN}
         HS_DNS2=${HS_DNS2:-$HS_NASIP}
         HS_NASID=${HS_NASID:-$HS_NASMAC}
         HS_MACAUTHMODE=${HS_MACAUTHMODE:-local}
         HS_USELOCALUSERS=${HS_USELOCALUSERS:-off}
         HS_PROXY_TYPE=${HS_PROXY_TYPE:-none}
         HS_RADCONF_URL=${HS_RADCONF_URL:-http://ap.coova.org/config/tos.conf}
         HS_CFRAME_URL=${HS_CFRAME_URL:-http://coova.org/cframe/default/}
         HS_CFRAME_SZ=${HS_CFRAME_SZ:-100}
         HS_DEFSESSIONTIMEOUT=${HS_DEFSESSIONTIMEOUT:-0}
         HS_DEFIDLETIMEOUT=${HS_DEFIDLETIMEOUT:-0}
         HS_DEFINTERIMINTERVAL=${HS_DEFINTERIMINTERVAL:-300}
         HS_LAN_ACCESS=${HS_LAN_ACCESS:-deny}
         HS_CFRAME_POS=${HS_CFRAME_POS:-top}
         HS_PROVIDER=${HS_PROVIDER:-Coova}
         HS_PROVIDER_LINK=${HS_PROVIDER_LINK:-http://coova.org/}
         HS_LOC_NAME=${HS_LOC_NAME:-My HotSpot}
         HS_LOC_NETWORK=${HS_LOC_NETWORK:-Coova}
         HS_OPENIDAUTH=${HS_OPENIDAUTH:-off}
         HS_ANYIP=${HS_ANYIP:-off}

         [ -z &quot;$HS_LANIF&quot; ] &amp;amp;&amp;amp; {
             [ -e /tmp/device.hotspot ] &amp;amp;&amp;amp; {
                 stop
             }
             HS_LANIF=$(wlanconfig ath create wlandev wifi0 wlanmode ap)
             for i in 0 1 2 3 4; do ifconfig ath$i mtu 1500; done 2&amp;gt;/dev/null
             echo $HS_LANIF &amp;gt; /tmp/device.hotspot
             iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
             iwconfig $HS_LANIF essid ${HS_SSID:-Coova} 2&amp;gt;/dev/null
         }

         writeconfig
         radiusconfig
                                                                                            
         [ -d $RUN_D ] || mkdir -p $RUN_D

         /sbin/insmod tun &amp;gt;&amp;amp;- 2&amp;gt;&amp;amp;-
         /usr/sbin/chilli
     }

     stop() {
         [ -f $PIDFILE ] &amp;amp;&amp;amp; kill $(cat $PIDFILE)
         rm -f $PIDFILE $LKFILE $CMDSOCK 2&amp;gt;/dev/null
         iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
         wlanconfig $(cat /tmp/device.hotspot) destroy
         rm /tmp/device.hotspot
     }
&lt;/pre&gt;
&lt;br /&gt;
&lt;h3&gt;
Automatically Start CoovaChilli&lt;br /&gt;
&lt;/h3&gt;
Create a symbolic link to /etc/init.d/chilli in /etc/rc.d and name it S60chilli&lt;br /&gt;&lt;br /&gt;
&lt;code&gt;
cd /etc/rc.d&lt;br /&gt;
ln -s ../init.d/chilli S60chilli
&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;
This will automatically start CoovaChilli everytime you start your router.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Login Page&lt;/h3&gt;
Lastly we need to create the login pages for CoovaChilli. CoovaChilli&#39;s package for OpenWRT does not include this and so we have to download CoovaChilli&#39;s source code and copy the contents of the miniportal forder&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Back in your computer, download CoovaChilli&#39;s source code&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;wget http://ap.coova.org/chilli/coova-chilli-1.2.9.tar.gz&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Untar the package&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;tar -xzvf coova-chilli-1.2.9.tar.gz&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Goto the miniportal folder&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;cd coova-chilli-1.2.9/miniportal&lt;br /&gt;&lt;/code&gt;
&lt;li&gt;Edit the files &lt;em&gt;functions.sh.in, config-local.sh.in, uam.sh.in&lt;/em&gt; and replace @SBINDIR@ and @ETCCHILLI@ with /usr/sbin and /etc/chilli respectively&lt;/li&gt;
&lt;li&gt;Rename the files that end in &quot;.in&quot;, removing &quot;.in&quot; part&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;e.g. functions.sh.in will be renamed to functions.sh&lt;/code&gt;&lt;/ol&gt;
&lt;ol&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;li&gt;Copy the contents of miniportal folder to your router&#39;s /etc/chilli/www&lt;br /&gt;&lt;/li&gt;
&lt;code&gt;scp * root@192.168.1.1:/etc/chilli/www/&lt;/code&gt;
&amp;nbsp;&lt;/ol&gt;
&lt;br /&gt;
We&#39;re done. All you have to do is reboot your router and connect to it once it starts up.&lt;br /&gt;
&lt;br /&gt;
When you open your browser and starts browsing you will be redirected to CoovaChilli&#39;s login page.&lt;br /&gt;
&lt;br /&gt;
Enjoy!!!</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/7820845655259911067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2012/11/openwrtcoovachilli.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/7820845655259911067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/7820845655259911067'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2012/11/openwrtcoovachilli.html' title='OpenWRT+CoovaChilli'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-6989070095618457761</id><published>2012-10-23T21:04:00.000-07:00</published><updated>2013-09-12T17:14:25.544-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="captive portal"/><category scheme="http://www.blogger.com/atom/ns#" term="chilli"/><category scheme="http://www.blogger.com/atom/ns#" term="coova"/><category scheme="http://www.blogger.com/atom/ns#" term="coovachilli"/><category scheme="http://www.blogger.com/atom/ns#" term="coovachilli howto"/><category scheme="http://www.blogger.com/atom/ns#" term="freeradius"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Gateway"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'></title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;font: normal normal normal 18px/normal Helvetica; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Creating a Capture Portal using CoovaChilli, FreeRadius, and MySQL&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Objectives&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;Create a capture portal&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;Use MySQL database to hold user accounts and accounting data&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;Limit access/session time per user&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;Limit access/session time per MAC address&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;Limiut simultaneous logins&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Requirements&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Ubuntu 12.04.1 LTS&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;CoovaChilli&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;PC with 2 Network Card&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Internet Access&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Install Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Download a copy of Ubuntu 12.04 LTS from &lt;a href=&quot;http://www.ubuntu.com/download/desktop&quot;&gt;&lt;span style=&quot;font: 12.0px Helvetica; letter-spacing: 0.0px color: #2400a9; text-decoration: underline;&quot;&gt;http://www.ubuntu.com/download/desktop&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Burn the ISO image onto a CD&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Insert the CD in the CD Drive&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Start the computer&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Wait for Ubuntu to boot from the CD&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click “Install Ubuntu”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click “Continue”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Select the option to erase the content of the disk and install Ubuntu. Click “Continue”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click “Install Now”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Set your timezone then click “Continue”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Select appropriate keyboard layout then click “Continue”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Type your name, computer name, login name, and password. Click “Continue”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Wait until Ubuntu finishes copying the files&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click “Restart”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Remove CD from Drive then click press Enter&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Wait for the computer to restart&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Additional Software Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Login using the username and password you provided earlier&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click on the Ubunto Icon and type “Terminal” in the search box&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Click the Terminal&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Update the source packages&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo apt-get update&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Install tasksel&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;sudo apt-get install tasksel&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Run tasksel and select LAMP server then click OK&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo tasksel&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;When asked for “New password for the MYSQL ‘root’ user” use mysqlsecret (this password is use for this documentation. Change this for production use)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Enable packet forwarding&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Execute the following command&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;To ensure packet forwarding is enable every time you reboot, do the following&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open /etc/sysctl.conf&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment the line&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;net.ipv4.ip_forward=1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Save and close sysctl.conf&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Install and Configure FreeRadius&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Install FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo apt-get install freeradius&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Test FreeRadius&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment line 90 &lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;i&gt;&quot;John Doe&quot;&amp;nbsp; &amp;nbsp; &amp;nbsp; Cleartext-Password := &quot;hello&quot;&lt;/i&gt; &lt;br /&gt;
and line 91&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;i&gt;Reply-Message = &quot;Hello, %{User-Name}&quot;&lt;/i&gt; &lt;br /&gt;
in /etc/freeradius/users&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/etc/init.d/freeradius restart&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use radtest to test FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;radtest &quot;John Doe&quot; hello 127.0.0.1 0 testing123&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The output should be similar to this&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Sending Access-Request of id 153 to 127.0.0.1 port 1812&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User-Name = &quot;John Doe&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User-Password = &quot;hello&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAS-IP-Address = 127.0.1.1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAS-Port = 0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 18px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Install CoovaChilli&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create user for CoovaChilli&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo useradd chilli -s /usr/sbin/nologin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Install required libraries&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo apt-get install libssl-dev&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo apt-get install haserl&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Download CoovaChilli&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;cd&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mkdir chilli&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;cd chilli&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #2400a9; font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px color: #000000;&quot;&gt;wget &lt;a href=&quot;http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px; text-decoration: underline;&quot;&gt;http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Compile and Install CoovaChilli&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;tar -xzvf coova-chilli-1.3.0.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;cd coova-chilli-1.3.0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;./configure --prefix= --enable-largelimits --enable-miniportal --with-openssl&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;make&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo make install&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Configure CoovaChilli&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo su -&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;cd /etc/chilli&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;cp defaults config&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;echo iptables -I POSTROUTING -t nat -o \$HS_WANIF -j MASQUERADE &amp;gt;&amp;gt; ipup.sh&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;/etc/init.d/chilli start &amp;amp;&amp;amp; /etc/init.d/chilli stop&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Test CoovaChilli&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect eth0 to the LAN or device that has access to the internet&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Set the default gateway to the IP of the Internet gateway that is located in eth0’s LAN&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Connect eth1 to an access point or switch&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Make sure that DHCP service is disabled in the above-mentioned access point&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Start CoovaChilli&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Using a tablet, phone or a pc, connect to the access point&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open an Internet browser and go to any site&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;You should be redirected to the capture portal’s login page&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;i&gt;When checking who is logged in, sometimes radwho will give this error&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;radwho: Error reading /var/log/freeradius/sradutmp: No such file or directory&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;i&gt;To fix it, uncomment sradutmp in the accounting section of /etc/freeradius/sites-available/default then restart freeradius&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Customize Login Page&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Use MySQL for FreeRadius User Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Install Required Packages&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;MySQL is already installed. All we need is to install FreeRadius’s MySQL package&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sudo apt-get install freeradius-mysql&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Configure MySQL Database for FreeRadius&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create a database for FreeRadius to use&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysqladmin -uroot -pmysqsecret create radius&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create a user that will have access to the radius database. We’ll use one provided in FreeRadius’s MySQL package&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret&amp;nbsp; &amp;lt; /etc/freeradius/sql/mysql/admin.sql&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create the tables&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius &amp;lt; /etc/freeradius/sql/mysql/schema.sql&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Add a test user&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius -e &quot;INSERT INTO radcheck (username, attribute, op, value) VALUES (&#39;testuser&#39;, &#39;Cleartext-Password&#39;, &#39;:=&#39;, &#39;password&#39;)&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Configure FreeRadius&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment the line&lt;br /&gt;
&lt;br /&gt;
$INCLUDE sql.conf&lt;br /&gt;
&lt;br /&gt;
in /etc/freeradius/radiusd.conf&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment the line&lt;br /&gt;
&lt;br /&gt;
sql&lt;br /&gt;
&lt;br /&gt;
in the authorize section of /etc/freeradius/sites-available/default (by default this is in line 159)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Test FreeRadius MySQL User Configuration&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;/etc/init.d/freeradius restart&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use radtest to login as testuser&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;radtest testuser password 127.0.0.1 0 testing123&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The result should look something like&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Sending Access-Request of id 199 to 127.0.0.1 port 1812&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User-Name = &quot;testuser&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User-Password = &quot;password&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAS-IP-Address = 127.0.1.1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAS-Port = 0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=199, length=20&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Limit Access Time Per User&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Limiting the time a use can access the Internet is done by basically returning an AVP of Session-Timeout. But using this a user can just log back in again. To prevent this a counter is used.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Since we already have FreeRadius’s MySQL package, we’ll use the sqlcounter. Our counter will reset the count on a daily basis thus a user can again use his account on the next day&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open /etc/freeradius/dictionary and append the lines&lt;br /&gt;
&lt;br /&gt;
ATTRIBUTE&amp;nbsp; &amp;nbsp; &amp;nbsp; Daily-Session-Time&amp;nbsp; &amp;nbsp; &amp;nbsp; 3000&amp;nbsp; &amp;nbsp; integer&lt;br /&gt;
ATTRIBUTE&amp;nbsp; &amp;nbsp; &amp;nbsp; Max-Daily-Session &amp;nbsp; &amp;nbsp; &amp;nbsp; 3001&amp;nbsp; &amp;nbsp; integer&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment the line&lt;br /&gt;
&lt;br /&gt;
sql&lt;br /&gt;
&lt;br /&gt;
in the accounting section of /etc/freeradius/sites-available/default (by default this is in line 388)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open /etc/freeradius/sql/mysql/counter.con and change the sql directive of dailycounter from this: &lt;br /&gt;
&lt;br /&gt;
query = &quot;SELECT SUM(acctsessiontime - \&lt;br /&gt;
GREATEST((%b - UNIX_TIMESTAMP(acctstarttime)), 0)) \ &lt;br /&gt;
FROM radacct WHERE username = &#39;%{%k}&#39; AND \&lt;br /&gt;
UNIX_TIMESTAMP(acctstarttime) + acctsessiontime &amp;gt; &#39;%b&#39;&quot;&lt;br /&gt;
&lt;br /&gt;
to this:&lt;br /&gt;
&lt;br /&gt;
query = &quot;SELECT IFNULL(SUM(acctsessiontime - \&lt;br /&gt;
GREATEST((%b - UNIX_TIMESTAMP(acctstarttime)), 0)),0) \&lt;br /&gt;
FROM radacct WHERE username = &#39;%{%k}&#39; AND \&lt;br /&gt;
UNIX_TIMESTAMP(acctstarttime) + acctsessiontime &amp;gt; &#39;%b&#39;&quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Open /etc/freeradius/sites-available/default and add the line&lt;br /&gt;
&lt;br /&gt;
dailycounter&lt;br /&gt;
&lt;br /&gt;
just below daily in the authorize section (this should be in line 175)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment the line&lt;br /&gt;
&lt;br /&gt;
$INCLUDE sql/mysql/counter.conf&lt;br /&gt;
&lt;br /&gt;
in /etc/freeradius/radiusd.conf (this is at line 695)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Add a 15minute limit to testuser account&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius -e &quot;INSERT INTO radcheck (username, attribute, op, value) VALUES (&#39;testuser&#39;, &#39;Max-Daily-Session&#39;, &#39;:=&#39;, 1800)&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Test Configuration for Limiting Access Time Per User&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;/etc/init.d/freeradius restart&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Use radtest to login as testuser&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;radtest testuser password 127.0.0.1 0 testing123&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;The result should look something like&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Sending Access-Request of id 132 to 127.0.0.1 port 1812&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User-Name = &quot;testuser&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User-Password = &quot;password&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAS-IP-Address = 127.0.1.1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAS-Port = 0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=132, length=26&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session-Timeout = 1800&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Notice the “Session-Timeout” at the end of FreeRadius reply. This indicates the amount of time (in seconds) a user can access the internet using the capture portal.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;To actually test the configuration browse the Internet by logging through the capture portal. Track the time from login up to the given time limit. When the configured time has lapsed you should be directed to the login screen. You should not be able to use the account again until the counter is reset (in this case, until the next day)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Limiting Simultaneous Logins Per User&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;This time we will limit the number of simultaneous login a user can have. We will use the rlm_sql module since it is faster (according to the notes in the configuration file)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In the /etc/freeradius/sites-available/default&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Make sure sql is included in the accouting section (line 389)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Comment radutmp in the session section (line 433)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment sql in the session section (line 437)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Uncomment the simul_count_query in /etc/freeradius/sql/mysql/dialup.conf (lines 279-282)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Limit testuser to one session&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius -e &quot;INSERT INTO radcheck (username, attribute, op, value) VALUES (&#39;testuser&#39;, &#39;Simultaneous-Use&#39;, &#39;:=&#39;, &#39;1&#39;)&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Restart FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 18.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;b&gt;Limit Access Time Per Device (MAC) Address&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;In this section we will limit the access time of a device base on user and the device’s MAC address&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Append the following to /etc/freeradius/dictionary&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;ATTRIBUTE &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Counter-Reset-Type 3002&amp;nbsp; &amp;nbsp; string&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;ATTRIBUTE &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Time-Limit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3003&amp;nbsp; &amp;nbsp; string&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;ATTRIBUTE &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Session-Start-Time &amp;nbsp; 3004&amp;nbsp; &amp;nbsp; integer&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;ATTRIBUTE &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Used-Session-Time&amp;nbsp; 3005&amp;nbsp; &amp;nbsp; string&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;ATTRIBUTE &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Avail-Session-Time &amp;nbsp; 3006&amp;nbsp; &amp;nbsp; string&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create the file /etc/freeradius/modules/set_starttime with the following content&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;perl set_starttime {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; module = ${confdir}/set_starttime.pl&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create the file /etc/freeradius/modules/check_time with the following content&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;perl check_time {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; module = ${confdir}/check_time.pl&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create the file /etc/freeradius/set_starttime.pl with the following content&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#!/usr/bin/perl&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;use strict;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# use ...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# This is very important ! Without this script will not get the filled hashesh from main.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;use vars qw(%RAD_REQUEST %RAD_REPLY %RAD_CHECK);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;use Data::Dumper;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# This is hash wich hold original request from radius&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#my %RAD_REQUEST;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# In this hash you add values that will be returned to NAS.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#my %RAD_REPLY;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#This is for check items&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#my %RAD_CHECK;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# This the remapping of return values&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_REJECT=&amp;gt;&amp;nbsp; &amp;nbsp; 0;#&amp;nbsp; /* immediately reject the request */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_FAIL=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1;#&amp;nbsp; /* module failed, don&#39;t reply */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_OK=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2;#&amp;nbsp; /* the module is OK, continue */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_HANDLED=&amp;gt; &amp;nbsp; 3;#&amp;nbsp; /* the module handled the request, so stop. */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_INVALID=&amp;gt; &amp;nbsp; 4;#&amp;nbsp; /* the module considers the request invalid. */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_USERLOCK=&amp;gt;&amp;nbsp; 5;#&amp;nbsp; /* reject the request (user is locked out) */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_NOTFOUND=&amp;gt;&amp;nbsp; 6;#&amp;nbsp; /* user not found */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_NOOP=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 7;#&amp;nbsp; /* module succeeded without doing anything */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_UPDATED=&amp;gt; &amp;nbsp; 8;#&amp;nbsp; /* OK (pairs modified) */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_NUMCODES=&amp;gt;&amp;nbsp; 9;#&amp;nbsp; /* How many return codes there are */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# Function to handle authorize&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sub authorize {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; #Find out when the reset time should be&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; if($RAD_CHECK{&#39;MY-Counter-Reset-Type&#39;} =~ /monthly/i){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $RAD_CHECK{&#39;MY-Session-Start-Time&#39;} = mktime (0, 0, 0, 1, $mon, $year, 0, 0); &amp;nbsp; #We use this month&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; if($RAD_CHECK{&#39;MY-Counter-Reset-Type&#39;} =~ /weekly/i){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $RAD_CHECK{&#39;MY-Session-Start-Time&#39;} = mktime (0, 0, 0, $mday-$wday, $mon, $year, 0, 0);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; if($RAD_CHECK{&#39;MY-Counter-Reset-Type&#39;} =~ /daily/i){ &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $RAD_CHECK{&#39;MY-Session-Start-Time&#39;} = mktime (0, 0, 0, $mday, $mon, $year, 0, 0);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; if(exists($RAD_CHECK{&#39;MY-Session-Start-Time&#39;})){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return RLM_MODULE_UPDATED;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return RLM_MODULE_NOOP;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Create the file /etc/freeradius/check_time.pl with the following content&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;use strict;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# use ...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# This is very important ! Without this script will not get the filled hashesh from main.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;use vars qw(%RAD_REQUEST %RAD_REPLY %RAD_CHECK);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;use Data::Dumper;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# This is hash wich hold original request from radius&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#my %RAD_REQUEST;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# In this hash you add values that will be returned to NAS.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#my %RAD_REPLY;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#This is for check items&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#my %RAD_CHECK;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# This the remapping of return values&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_REJECT=&amp;gt;&amp;nbsp; &amp;nbsp; 0;#&amp;nbsp; /* immediately reject the request */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_FAIL=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1;#&amp;nbsp; /* module failed, don&#39;t reply */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_OK=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2;#&amp;nbsp; /* the module is OK, continue */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_HANDLED=&amp;gt; &amp;nbsp; 3;#&amp;nbsp; /* the module handled the request, so stop. */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_INVALID=&amp;gt; &amp;nbsp; 4;#&amp;nbsp; /* the module considers the request invalid. */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_USERLOCK=&amp;gt;&amp;nbsp; 5;#&amp;nbsp; /* reject the request (user is locked out) */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_NOTFOUND=&amp;gt;&amp;nbsp; 6;#&amp;nbsp; /* user not found */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_NOOP=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 7;#&amp;nbsp; /* module succeeded without doing anything */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_UPDATED=&amp;gt; &amp;nbsp; 8;#&amp;nbsp; /* OK (pairs modified) */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use constant&amp;nbsp; &amp;nbsp; RLM_MODULE_NUMCODES=&amp;gt;&amp;nbsp; 9;#&amp;nbsp; /* How many return codes there are */&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;# Function to handle authorize&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;sub authorize {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; if(!exists($RAD_CHECK{&#39;MY-Time-Limit&#39;}) || !exists($RAD_CHECK{&#39;MY-Used-Session-Time&#39;})){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return RLM_MODULE_NOOP;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; $RAD_CHECK{&#39;MY-Avail-Session-Time&#39;} = $RAD_CHECK{&#39;MY-Time-Limit&#39;} - $RAD_CHECK{&#39;MY-Used-Session-Time&#39;}; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; if($RAD_CHECK{&#39;MY-Avail-Session-Time&#39;} &amp;lt;= $RAD_CHECK{&#39;MY-Time-Limit&#39;}){ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($RAD_CHECK{&#39;MY-Counter-Reset-Type&#39;} ne &#39;never&#39;){&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $RAD_REPLY{&#39;Reply-Message&#39;} = &quot;Maximum usage exceeded&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return RLM_MODULE_REJECT;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; $RAD_REPLY{&#39;Session-Timeout&#39;} = int($RAD_CHECK{&#39;MY-Avail-Session-Time&#39;});&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; return RLM_MODULE_UPDATED;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Add the following in the authorize section of /etc/freeradius/sites-available/default, just below daily (line 174). Delete or comment dailycounter&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if((control:MY-Time-Limit)&amp;amp;&amp;amp;(control:MY-Counter-Reset-Type)){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set_starttime&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(updated){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update control {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Used-Session-Time := &quot;%{sql:SELECT IFNULL(SUM(acctsessiontime), 0) FROM radacct WHERE UNIX_TIMESTAMP(acctstarttime) &amp;gt; %{control:MY-Session-Start-Time} AND username = &#39;%{request:User-Name}&#39; AND IF(username = &#39;free&#39;, callingstationid=&#39;%{request:Calling-Station-Id}&#39;, TRUE)}&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update control {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MY-Used-Session-Time := &quot;%{sql:SELECT IFNULL(SUM(acctsessiontime), 0) FROM radacct WHERE username = &#39;%{request:User-Name}&#39; AND IF(username = &#39;free&#39;, callingstationid=&#39;%{request:Calling-Station-Id}&#39;, TRUE)}&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; check_time&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px; min-height: 12.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;i&gt;Note that “else {“ must be in a new line&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Give testuser a daily access limit of 15 minutes&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius -e &quot;INSERT INTO radcheck (username, attribute, op, value) VALUES (&#39;testuser&#39;, &#39;MY-Time-Limit&#39;, &#39;:=&#39;, ‘1800’)&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius -e &quot;INSERT INTO radcheck (username, attribute, op, value) VALUES (&#39;testuser&#39;, &#39;MY-Counter-Reset-Type&#39;, &#39;:=&#39;, &#39;daily&#39;)&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Remove the simultaneous usage limit created in the previous section&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;mysql -uroot -pmysqlsecret radius -e &quot;DELETE FROM radcheck WHERE username=&#39;testuser&#39; and attribute=&#39;Simultaneous-Use&#39;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Stop FreeRadius&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;/etc/init.d/freeradius stop&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Start FreeRadius in debug mode&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;freeradius -XX&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;If you get an error like&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Can&#39;t load &#39;/usr/lib/perl/5.14/auto/Data/Dumper/Dumper.so&#39; for module Data::Dumper: /usr/lib/perl/5.14/auto/Data/Dumper/Dumper.so: undefined symbol: PL_charclass at /usr/share/perl/5.14/XSLoader.pm line 71.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&amp;nbsp;at /usr/lib/perl/5.14/Data/Dumper.pm line 36&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Compilation failed in require at /etc/freeradius/set_starttime.pl line 6.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;BEGIN failed--compilation aborted at /etc/freeradius/set_starttime.pl line 6.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Thu Oct 25 10:51:37 2012 : Error: rlm_perl: perl_parse failed: /etc/freeradius/set_starttime.pl not found or has syntax errors.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Thu Oct 25 10:51:37 2012 : Error: /etc/freeradius/modules/set_starttime[1]: Instantiation failed for module &quot;set_starttime&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Thu Oct 25 10:51:37 2012 : Error: /etc/freeradius/sites-enabled/default[176]: Failed to load module &quot;set_starttime&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Thu Oct 25 10:51:37 2012 : Error: /etc/freeradius/sites-enabled/default[176]: Failed to parse &quot;set_starttime&quot; entry.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;Thu Oct 25 10:51:37 2012 : Error: /etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;This means FreeRadius has problems dynamically loading perl modules. A workaround is to set LD_PRELOAD environment variable before starting FreeRadius. Use the following command&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 10.0px Helvetica; margin: 0.0px 0.0px 0.0px 28.4px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;LD_PRELOAD=/usr/lib/libperl.so.5.14 /usr/sbin/freeradius -XXX&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;This Setup will allow simultaneous devices using testuser account to have 15 minute daily access to the Internet using the capture portal&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/6989070095618457761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2012/10/creating-capture-portal-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/6989070095618457761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/6989070095618457761'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2012/10/creating-capture-portal-using.html' title=''/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total><georss:featurename>Angelica Dr, Antipolo City, Philippines</georss:featurename><georss:point>14.579056347602915 121.19383335113525</georss:point><georss:box>14.575214347602914 121.18889785113525 14.582898347602915 121.19876885113526</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-8541240898583125209</id><published>2012-10-23T21:03:00.002-07:00</published><updated>2012-11-07T21:43:04.100-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debug php"/><category scheme="http://www.blogger.com/atom/ns#" term="netbeans php"/><category scheme="http://www.blogger.com/atom/ns#" term="php debugging"/><category scheme="http://www.blogger.com/atom/ns#" term="xdebug"/><title type='text'>Debugging PHP using NetBeans and x Debug</title><content type='html'>Objective:&lt;br /&gt;
&lt;br /&gt;
To be able to debug PHP files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tested on:&lt;br /&gt;
&lt;br /&gt;
- Windows 7 64 bit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Requirements:&lt;br /&gt;
&lt;br /&gt;
- NetBeans 6.9.1 with PHP package&lt;br /&gt;
- Apache 2.2&lt;br /&gt;
- PHP 5.3&lt;br /&gt;
- xDebug 2.1.0 (php-xdebug-2.1.0-5.3-vc9.dll&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Steps:&lt;br /&gt;
&lt;br /&gt;
- Install PHP&lt;br /&gt;
- Install Apache&lt;br /&gt;
- Configure Apache&lt;br /&gt;
- Download xDebug&lt;br /&gt;
- Configure php.ini&lt;br /&gt;
- Install Netbeans&lt;br /&gt;
- Create a test project&lt;br /&gt;
- Test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Install PHP&lt;br /&gt;
&lt;br /&gt;
Get the thread safe windows zip package, php-5.3.3-Win32-VC9-x86.zip, from PHP download site &lt;a href=&quot;http://windows.php.net/download/&quot;&gt;http://windows.php.net/download/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
unzip the package to c:\php (you can put this in other location but you have to make adjustments)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Install Apache&lt;br /&gt;
&lt;br /&gt;
Download Apache HTTP server, httpd-2.2.16-win32-x86-openssl-0.9.8o.msi, from &lt;a href=&quot;http://httpd.apache.org/download.cgi&quot;&gt;http://httpd.apache.org/download.cgi&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
Start installing Apache by double clicking httpd-2.2.16-win32-x86-openssl-0.9.8o.msi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Configure Apache&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Download xDebug&lt;br /&gt;
- Configure php.ini&lt;br /&gt;
- Install Netbeans&lt;br /&gt;
- Create a test project&lt;br /&gt;
- Test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
http://www.xdebug.org/find-binary.php</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/8541240898583125209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2012/10/debugging-php-using-netbeans-and-x-debug.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/8541240898583125209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/8541240898583125209'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2012/10/debugging-php-using-netbeans-and-x-debug.html' title='Debugging PHP using NetBeans and x Debug'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-2999527952490694232</id><published>2010-10-06T01:39:00.000-07:00</published><updated>2010-10-06T01:39:05.167-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android sqlite sqllite database tutorial how to understanding"/><title type='text'>Understanding Android SQLite Database</title><content type='html'>Because of the limited documentation of Android&#39;s database handling, I  have spent days trying to understand the inner workings SQLite in an  Android application. Debugging here, testing there, but in the end, going no where.&lt;br /&gt;
&lt;br /&gt;
For those who are in a hurry to learn SQLite in Android, I have written this in order to share my discoveries and hope to help those who are impatiently wanting to understand Android&#39;s database handling&lt;br /&gt;
&lt;br /&gt;
In order to demonstrate database creation, we will create an An android project that will take the a name and an age data and save it in SQLite database.&lt;br /&gt;
&lt;br /&gt;
Make sure that you already have Eclipse with Android plug-in installed.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s start by creating an Android project by clicking File-&amp;gt;New-Project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select &lt;b&gt;Android Project&lt;/b&gt; from the list (you may have to expand &lt;b&gt;Android&lt;/b&gt; to see &lt;b&gt;Android Project&lt;/b&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOW3t5OgmiwHVNyT6DGobtAakrr4W4hTsHjD3u45aTbDTeNSp2Xuy59jOmodYHmsIVCyVZcl_oKsffEhyphenhyphenbWPsHg_W3L1lXyFdGKpDkJE1YLveR0yEjqzUyvGL8aFcUTWIDmsCVFiSMPNs/s1600/Picture+1.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5524030638102422786&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOW3t5OgmiwHVNyT6DGobtAakrr4W4hTsHjD3u45aTbDTeNSp2Xuy59jOmodYHmsIVCyVZcl_oKsffEhyphenhyphenbWPsHg_W3L1lXyFdGKpDkJE1YLveR0yEjqzUyvGL8aFcUTWIDmsCVFiSMPNs/s320/Picture+1.png&quot; style=&quot;cursor: pointer; display: block; height: 305px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the Next button to proceed.&lt;br /&gt;
&lt;br /&gt;
Now fill in the project details using the following values: &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;Project Name = Android SQLite Demo&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;Build Target = Android 2.1&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;Application Name = SQLite Demo&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;Package Name = com.demo.sqlite&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;Activity = Main&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6rXs8sjk7il6CLiENHbPN0YWhSbyIvyz5iGMq1Ha8pDjNX74p64X1U3LDClxKPFD1L7hsK4qidp80y56baqx25AGFQKgzsxqM9_Rury3aI7195VDucicJMLy46JgD3ItbvABNKH6jWXA/s1600/Picture+2.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5524032643347764850&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6rXs8sjk7il6CLiENHbPN0YWhSbyIvyz5iGMq1Ha8pDjNX74p64X1U3LDClxKPFD1L7hsK4qidp80y56baqx25AGFQKgzsxqM9_Rury3aI7195VDucicJMLy46JgD3ItbvABNKH6jWXA/s400/Picture+2.png&quot; style=&quot;cursor: pointer; display: block; height: 400px; margin: 0px auto 10px; text-align: center; width: 270px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Click Finish to create the project&lt;br /&gt;
&lt;br /&gt;
Let&#39;s start with construction the UI. Open main.xml located in res/layout.&lt;br /&gt;
&lt;br /&gt;
Replace the content with the following:&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;lt;TableLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_width=&quot;fill_parent&quot; &lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_height=&quot;fill_parent&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:stretchColumns=&quot;1&quot;&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TableRow&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextView android:text=&quot;Name&quot; /&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EditText android:id=&quot;@+id/name&quot; /&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TableRow&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TableRow&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextView android:text=&quot;Age&quot; /&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EditText android:id=&quot;@+id/age&quot; /&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TableRow&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TableRow&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button android:id=&quot;@+id/saveButton&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_span=&quot;2&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; android:text=&quot;Save&quot; &lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TableRow&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;lt;/TableLayout&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save main.xml then open Main.java in src/src/com.demo.sqlite.&lt;br /&gt;
&lt;br /&gt;
Type in the following:&lt;br /&gt;
&lt;br /&gt;
package com.demo.sqlite;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;import android.app.Activity;&lt;br /&gt;
import android.os.Bundle;&lt;br /&gt;
import android.view.View;&lt;br /&gt;
import android.view.View.OnClickListener;&lt;br /&gt;
import android.widget.Button;&lt;br /&gt;
import android.widget.EditText;&lt;br /&gt;
import android.widget.Toast;&lt;br /&gt;
&lt;br /&gt;
public class Main extends Activity {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private EditText name;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private EditText age;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private OnClickListener saveButtonClicked = new OnClickListener() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View v) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DBHandler dbHandler = new DBHandler(v.getContext());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Long id = dbHandler.insertRow(name.getText().toString(), Integer.parseInt(age.getText().toString()));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (id != -1){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Toast toast = Toast.makeText(v.getContext(), &quot;Your data has been saved, successfully&quot;, Toast.LENGTH_SHORT);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; toast.show();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name.setText(&quot;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; age.setText(&quot;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /** Called when the activity is first created. */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.main);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = (EditText) findViewById(R.id.name);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age = (EditText) findViewById(R.id.age);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Button saveButton = (Button) findViewById(R.id.saveButton);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; saveButton.setOnClickListener(saveButtonClicked);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Save Main.java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, create a new class under com.demo.sqlite and name it DBHandler.java. Type the following in the newly created class:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;package com.demo.sqlite;&lt;br /&gt;
&lt;br /&gt;
import android.content.Context;&lt;br /&gt;
import android.database.sqlite.SQLiteDatabase;&lt;br /&gt;
import android.database.sqlite.SQLiteOpenHelper;&lt;br /&gt;
import android.database.sqlite.SQLiteStatement;&lt;br /&gt;
&lt;br /&gt;
public class DBHandler extends SQLiteOpenHelper {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final int DATABASE_VERSION = 1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String DATABASE_NAME = &quot;demo.db&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String TABLE_NAME = &quot;mytable&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String QUERY_CREATE_TABLE =&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;CREATE TABLE &quot; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + TABLE_NAME &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot;(id INTEGER PRIMARY KEY AUTOINCREMENT&quot; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot;,name TEXT&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot;,age INTEGER);&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String QUERY_INSERT_ROW =&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;INSERT INTO &quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + TABLE_NAME&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot;(name, age)&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot;values (?,?)&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLiteDatabase db;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLiteStatement stmtInsertRow;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public DBHandler(Context context) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super(context, DATABASE_NAME, null, DATABASE_VERSION);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; db = this.getWritableDatabase();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stmtInsertRow = db.compileStatement(QUERY_INSERT_ROW);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreate(SQLiteDatabase db) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; db.execSQL(QUERY_CREATE_TABLE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; db.execSQL(&quot;DROP TABLE IF EXISTS &quot; + TABLE_NAME);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; onCreate(db);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public long insertRow(String name, Integer age){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stmtInsertRow.bindString(1, name);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stmtInsertRow.bindLong(2, age);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return stmtInsertRow.executeInsert();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strike&gt;&lt;/strike&gt;&lt;br /&gt;
&lt;br /&gt;
Let&#39;s trace the program execution to learn how Android handles SQLite databases first hand. Put breakpoints on the first line of all methods/functions of DBHandler. Now start debugging.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;First Run:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Type in your name and age in the input boxes respectively. Click the save button when you are finished.&lt;br /&gt;
&lt;br /&gt;
After clicking the save button the constructor for DBHandler is called when then DBHandler is initialized.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;super(context, DATABASE_NAME, null, DATABASE_VERSION), &lt;/i&gt;Initializes DBHandler by calling SQLiteOpenHelperConstructor. &lt;br /&gt;
&lt;br /&gt;
When the second line &lt;i&gt;db = this.getWritableDatabase()&lt;/i&gt; is executed, the &lt;b&gt;onCreate&lt;/b&gt; method is called. onCreate executes a query that will create your table.&lt;br /&gt;
&lt;br /&gt;
After onCreate finishes, execution goes back to the constructor then creates the insert statement. Code continues to save the data that you have provided in the text boxes.&lt;br /&gt;
&lt;br /&gt;
Notice that in this first run the &lt;b&gt;onCreate&lt;/b&gt; method is called. It has been advised that you put your table creation query here. Do not worry thinking that every time the constructor is called the table creation query will be executed. You will know why it is best to put your table creation query here later.&lt;br /&gt;
&lt;br /&gt;
Also notice &lt;b&gt;onUpgrade&lt;/b&gt; method is not called during program execution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2nd Run:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You may want to&amp;nbsp; close the emulator&amp;nbsp; and restart Eclipse. This is to demonstrate what will happen when Android phone or your Android application is restarted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now start debugging.&lt;br /&gt;
&lt;br /&gt;
On the second run, constructor for DBHandler is again called.&lt;br /&gt;
&lt;br /&gt;
When the second line &lt;i&gt;db = this.getWritableDatabase()&lt;/i&gt; is executed, you will notice that &lt;b&gt;onCreate&lt;/b&gt; method is NOT called. This just returns a reference to SQLiteDatabase object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next line creates the and insert statement and continues to run just like in the first run.&lt;br /&gt;
&lt;br /&gt;
In this second run you will notice that &lt;b&gt;onCreate&lt;/b&gt; method is never called. Android knows that the database is already created and thus skips calling the onCreate method.&lt;br /&gt;
&lt;br /&gt;
Again the onUpgrade method is not executed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3rd Run:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
For the third run, edit DBHandler.java. Change the line&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;private static final int DATABASE_VERSION = 1;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;private static final int DATABASE_VERSION = 2;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Save DBHandler.java. If you&#39;re the doubting kind, you may want to restart Eclipse and close the emulator.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Start the debug.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Step over the code until you reach&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;db = this.getWritableDatabase();&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Notice that when you execute this line you will jump to &lt;b&gt;onUpgrade&lt;/b&gt; method instead of onCreate method.&lt;br /&gt;
&lt;br /&gt;
onUpgrade method deletes your table then calls onCreate to re-create your table.&lt;br /&gt;
&lt;br /&gt;
After creating the table, execution goes back to DBHandler constructor. The codes continues to execute, inserting a data to the table and popping a notification the insert procedure went sucessfully.&lt;br /&gt;
&lt;br /&gt;
Here, onCreate is only executed because onUpgrade called it. This is the recommended way of updating the database table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;In summary&lt;/b&gt;, the following should be noted:&lt;br /&gt;
&lt;br /&gt;
- your database handler class should extend SQLiteOpenHelper. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;- SQLiteOpenHelper&#39;s onCreate method is the recommended place to put your table creation query.&lt;br /&gt;
&lt;br /&gt;
- SQLiteOpenHelper&#39;s onCreate method is called/executed only when the database is first created. Android ignores this if the database already exist.&lt;br /&gt;
&lt;br /&gt;
- To delete, change, or update the database table structure, it is recommended that you put the code inside SQLiteOpenHelper&#39;s onUpgrade function. Note that you have to change the &lt;b&gt;database version&lt;/b&gt; to force the execution of onUpgrade function. It does not matter whether you increment or decrement database version as long as the new version number is different from the previous number the application is running on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I hope this helps. Good luck!</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/2999527952490694232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2010/10/android-sqlite-database-tutorial.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/2999527952490694232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/2999527952490694232'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2010/10/android-sqlite-database-tutorial.html' title='Understanding Android SQLite Database'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOW3t5OgmiwHVNyT6DGobtAakrr4W4hTsHjD3u45aTbDTeNSp2Xuy59jOmodYHmsIVCyVZcl_oKsffEhyphenhyphenbWPsHg_W3L1lXyFdGKpDkJE1YLveR0yEjqzUyvGL8aFcUTWIDmsCVFiSMPNs/s72-c/Picture+1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-5239732079174542060</id><published>2010-09-25T16:50:00.000-07:00</published><updated>2012-11-07T21:43:48.539-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse on mac osx"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse osx network user"/><title type='text'>Running Eclipse on a Mac Network User Account</title><content type='html'>Original Post Date: Aug 17, 2010&lt;br /&gt;
&lt;br /&gt;
ISSUE:&lt;br /&gt;
&lt;br /&gt;
When running eclipse (galileo) using a Mac network user account a message “Workspace in use or cannot be created, choose a different one” always pops up. Then after clicking &quot;OK&quot;, eclipse closes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SOLUTION:&lt;br /&gt;
&lt;br /&gt;
Run eclipse with the following parameters:&lt;br /&gt;
&lt;br /&gt;
-vmargs -Dosgi.locking=java.io&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;br /&gt;
./eclipse -vmargs -Dosgi.locking=java.io&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
Add -Dosgi.locking=java.io in eclipse.ini.&lt;br /&gt;
&lt;br /&gt;
eclipse.ini can be found by right clicking Eclipse.app and choosing &quot;Show Package Content&quot;. Then go to Contents -&amp;gt; MacOS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
REFERENCE:&lt;br /&gt;
&lt;br /&gt;
http://www.spreendigital.de/blog/2010/03/26/eclipse-on-mac-os-x-workspace-error-on-nfs-mounts/comment-page-1/#comment-4486</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/5239732079174542060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2010/09/running-eclipse-on-mac-network-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/5239732079174542060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/5239732079174542060'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2010/09/running-eclipse-on-mac-network-user.html' title='Running Eclipse on a Mac Network User Account'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-8155536738947096489</id><published>2010-09-25T16:45:00.000-07:00</published><updated>2012-11-07T21:44:26.070-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="openvpn howto"/><title type='text'>Setting Up OpenVPN</title><content type='html'>This is a transfer from a blog dated Feb 23, 2009&lt;br /&gt;
consolidating...&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Goal&lt;/h2&gt;
&lt;br /&gt;
To concentrate on getting a VPN up and running. Explanations are cut to the very minimum (for details read the &lt;a href=&quot;http://www.openvpn.net/index.php/documentation/howto.html&quot;&gt;OpenVPN HowTo&lt;/a&gt;).&lt;br /&gt;
This guide is done using an Ubuntu 8.04 for the server and client. The text in &lt;span style=&quot;color: red;&quot;&gt;red&lt;/span&gt; may be modified to fit your configurations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Server&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;br /&gt;
- log in to the server&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# apt-get install openvpn&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create CA&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;# source ./vars&lt;br /&gt;# ./clean-all&lt;br /&gt;# ./build-ca&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
[[build-ca will prompt you for some values. Use the following as reference:]]&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;blockquote&gt;
Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;br /&gt;
State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;br /&gt;
Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;br /&gt;
Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;br /&gt;
Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;br /&gt;
Common Name (eg, your name or your server&#39;s hostname) [Fort-Funston CA]:&lt;span style=&quot;color: red;&quot;&gt;DPI-VPN&lt;/span&gt;&lt;br /&gt;
Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;/blockquote&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[[this will create ca.crt and ca.key in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Key &amp;amp; Certificate&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;
# ./build-key-server &lt;span style=&quot;color: red;&quot;&gt;server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[[build-key-server will prompt you for some values. Use the following as reference (leave challenge password and optional company name blank):]]&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;blockquote&gt;
Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;br /&gt;
State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;br /&gt;
Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;br /&gt;
Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;br /&gt;
Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;br /&gt;
Common Name (eg, your name or your server&#39;s hostname) [server]:&lt;span style=&quot;color: red;&quot;&gt;server&lt;/span&gt;&lt;br /&gt;
Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Please enter the following &#39;extra&#39; attributes&lt;br /&gt;
to be sent with your certificate request&lt;br /&gt;
A challenge password []:&lt;br /&gt;
An optional company name []:&lt;br /&gt;
Using configuration from /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf&lt;br /&gt;
Check that the request matches the signature&lt;br /&gt;
Signature ok&lt;br /&gt;
The Subject&#39;s Distinguished Name is as follows&lt;br /&gt;
countryName           :PRINTABLE:&#39;PH&#39;&lt;br /&gt;
stateOrProvinceName   :PRINTABLE:&#39;MM&#39;&lt;br /&gt;
localityName          :PRINTABLE:&#39;Pasig&#39;&lt;br /&gt;
organizationName      :PRINTABLE:&#39;DPI&#39;&lt;br /&gt;
commonName            :PRINTABLE:&#39;server&#39;&lt;br /&gt;
emailAddress          :IA5STRING:&#39;eman.de.guzman@gmail.com&#39;&lt;br /&gt;
Certificate is to be certified until Feb 23 02:17:50 2019 GMT (3650 days)&lt;br /&gt;
Sign the certificate? [y/n]:&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1 out of 1 certificate requests certified, commit? [y/n]&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
Write out database with 1 new entries&lt;br /&gt;
Data Base Updated&lt;/blockquote&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[[build-key-server will create server.crt and server.key in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Diffie Hellman parameters&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;# ./build-dh&lt;/code&gt;&lt;br /&gt;
[[build-dh will create dh1024.pem in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuration&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;# cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/&lt;br /&gt;# cd /etc/openvpn&lt;br /&gt;# gunzip server.conf.gz&lt;/code&gt;&lt;br /&gt;
- open /etc/openvpn/server.conf and change the following:&lt;br /&gt;
&lt;br /&gt;
line 78&lt;br /&gt;
from ca ca.crt&lt;br /&gt;
to ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt&lt;br /&gt;
&lt;br /&gt;
line 79&lt;br /&gt;
from cert server.crt&lt;br /&gt;
to cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.crt&lt;br /&gt;
&lt;br /&gt;
line 80&lt;br /&gt;
from key server.key&lt;br /&gt;
to key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.key&lt;br /&gt;
&lt;br /&gt;
line 87&lt;br /&gt;
from dh dh1024.pem&lt;br /&gt;
to dh /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem&lt;br /&gt;
&lt;br /&gt;
- save and close /etc/openvpn/server.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Test&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# openvpn /etc/openvpn/server.conf&lt;/code&gt;&lt;br /&gt;
- the output should look something like (the line &quot;Initialization Sequence Completed&quot; indicates that everything is working):&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;blockquote&gt;
Mon Feb 23 12:22:25 2009 OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008&lt;br /&gt;
Mon Feb 23 12:22:25 2009 Diffie-Hellman initialized with 1024 bit key&lt;br /&gt;
Mon Feb 23 12:22:25 2009 /usr/bin/openssl-vulnkey -q -b 1024 -m&lt;br /&gt;
Mon Feb 23 12:22:25 2009 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]&lt;br /&gt;
Mon Feb 23 12:22:25 2009 TUN/TAP device tun0 opened&lt;br /&gt;
Mon Feb 23 12:22:25 2009 TUN/TAP TX queue length set to 100&lt;br /&gt;
Mon Feb 23 12:22:25 2009 ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500&lt;br /&gt;
Mon Feb 23 12:22:25 2009 route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2&lt;br /&gt;
Mon Feb 23 12:22:25 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]&lt;br /&gt;
Mon Feb 23 12:22:25 2009 Socket Buffers: R=[110592-&amp;gt;131072] S=[110592-&amp;gt;131072]&lt;br /&gt;
Mon Feb 23 12:22:25 2009 UDPv4 link local (bound): [undef]:1194&lt;br /&gt;
Mon Feb 23 12:22:25 2009 UDPv4 link remote: [undef]&lt;br /&gt;
Mon Feb 23 12:22:25 2009 MULTI: multi_init called, r=256 v=256&lt;br /&gt;
Mon Feb 23 12:22:25 2009 IFCONFIG POOL: base=10.8.0.4 size=62&lt;br /&gt;
Mon Feb 23 12:22:25 2009 IFCONFIG POOL LIST&lt;br /&gt;
Mon Feb 23 12:22:25 2009 Initialization Sequence Completed&lt;/blockquote&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
- press Ctrl+C to stop the test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Run&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# /etc/init.d/openvpn start&lt;/code&gt;&lt;br /&gt;
[[the init.d script for OpenVPN will look for .conf file in /etc/openvpn/ and use it as configuration file. This means that everytime you start the server it will start to listen for a vpn connection request.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Linux Client&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;br /&gt;
- log in to the linux client&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# apt-get install openvpn&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Key &amp;amp; Certificate&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;# mkdir keys&lt;br /&gt;# chmod 700 keys&lt;br /&gt;# source ./vars&lt;br /&gt;# ./clean-all&lt;br /&gt;# scp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key ./keys/.&lt;br /&gt;# scp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt ./keys/.&lt;br /&gt;# ./build-key client&lt;/code&gt;&lt;br /&gt;
[[the lines&lt;br /&gt;
&lt;i&gt;# scp user@vpnserver:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key ./keys/.&lt;br /&gt;# scp user@vpnserver:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt ./keys/.&lt;/i&gt;&lt;br /&gt;
aim to copy the certificate authority (ca) key and certificate from the server to the client. you can use other means to copy the files from the server to the client]]&lt;br /&gt;
&lt;br /&gt;
[[build-key will prompt you for some values. Use the following as reference (leave challenge password and optional company name blank):]]&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;blockquote&gt;
Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;br /&gt;
State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;br /&gt;
Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;br /&gt;
Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;br /&gt;
Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;br /&gt;
Common Name (eg, your name or your server&#39;s hostname) [client]:&lt;span style=&quot;color: red;&quot;&gt;client1&lt;/span&gt;&lt;br /&gt;
Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Please enter the following &#39;extra&#39; attributes&lt;br /&gt;
to be sent with your certificate request&lt;br /&gt;
A challenge password []:&lt;br /&gt;
An optional company name []:&lt;br /&gt;
Using configuration from /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf&lt;br /&gt;
Check that the request matches the signature&lt;br /&gt;
Signature ok&lt;br /&gt;
The Subject&#39;s Distinguished Name is as follows&lt;br /&gt;
countryName :PRINTABLE:&#39;PH&#39;&lt;br /&gt;
stateOrProvinceName :PRINTABLE:&#39;MM&#39;&lt;br /&gt;
localityName :PRINTABLE:&#39;Pasig&#39;&lt;br /&gt;
organizationName :PRINTABLE:&#39;DPI&#39;&lt;br /&gt;
organizationalUnitName:PRINTABLE:&#39;IT&#39;&lt;br /&gt;
commonName :PRINTABLE:&#39;client1&#39;&lt;br /&gt;
emailAddress :IA5STRING:&#39;eman.de.guzman@gmail.com&#39;&lt;br /&gt;
Certificate is to be certified until Feb 22 08:46:55 2019 GMT (3650 days)&lt;br /&gt;
Sign the certificate? [y/n]:&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1 out of 1 certificate requests certified, commit? [y/n]&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
Write out database with 1 new entries&lt;br /&gt;
Data Base Updated&lt;/blockquote&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[[make sure CommonName value is different for each client]]&lt;br /&gt;
[[this will create client.crt and client.key in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuration&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn/&lt;br /&gt;# cd /etc/openvpn&lt;/code&gt;&lt;br /&gt;
- open /etc/openvpn/client.conf and change the following:&lt;br /&gt;
&lt;br /&gt;
line 42&lt;br /&gt;
from remote my-server-1 1194&lt;br /&gt;
to remote &lt;span style=&quot;color: red;&quot;&gt;111.111.111.101&lt;/span&gt; 1194&lt;br /&gt;
&lt;br /&gt;
line 88&lt;br /&gt;
from ca ca.crt&lt;br /&gt;
to ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt&lt;br /&gt;
&lt;br /&gt;
line 89&lt;br /&gt;
from cert &lt;br /&gt;
client.crt&lt;br /&gt;
to cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/client.crt&lt;br /&gt;
&lt;br /&gt;
line 90&lt;br /&gt;
from key client.key&lt;br /&gt;
to key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/client.key&lt;br /&gt;
&lt;br /&gt;
- save and close /etc/openvpn/client.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Test&lt;/h3&gt;
&lt;br /&gt;
- make sure that UDP port 1194 on the server is open&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# openvpn /etc/openvpn/client.conf&lt;/code&gt;&lt;br /&gt;
- the output should look something like (the line &quot;Initialization Sequence Completed&quot; indicates that everything is working):&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;blockquote&gt;
Tue Feb 24 16:58:07 2009 OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008&lt;br /&gt;
Tue Feb 24 16:58:07 2009 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.&lt;br /&gt;
Tue Feb 24 16:58:07 2009 /usr/bin/openssl-vulnkey -q -b 1024 -m&lt;br /&gt;
Tue Feb 24 16:58:08 2009 LZO compression initialized&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Local Options hash (VER=V4): &#39;41690919&#39;&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Expected Remote Options hash (VER=V4): &#39;530fdded&#39;&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Socket Buffers: R=[110592-&amp;gt;131072] S=[110592-&amp;gt;131072]&lt;br /&gt;
Tue Feb 24 16:58:08 2009 UDPv4 link local: [undef]&lt;br /&gt;
Tue Feb 24 16:58:08 2009 UDPv4 link remote: 111.111.111.101:1194&lt;br /&gt;
Tue Feb 24 16:58:08 2009 TLS: Initial packet from 111.111.111.101:1194, sid=efff49ab 3322efb5&lt;br /&gt;
TueFeb2416:58:082009VERIFYOK:depth=1,/C=PH/ST=MM/L=Pasig/O=DPI/CN=DPI_CA/emailAddress=eman.de.guzman@gmail.com&lt;br /&gt;
TueFeb2416:58:082009VERIFYOK:depth=0,/C=PH/ST=MM/L=Pasig/O=DPI/CN=server/emailAddress=eman.de.guzman@gmail.com&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Data Channel Encrypt: Cipher &#39;BF-CBC&#39; initialized with 128 bit key&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Data Channel Encrypt: Using 160 bit message hash &#39;SHA1&#39; for HMAC authentication&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Data Channel Decrypt: Cipher &#39;BF-CBC&#39; initialized with 128 bit key&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Data Channel Decrypt: Using 160 bit message hash &#39;SHA1&#39; for HMAC authentication&lt;br /&gt;
Tue Feb 24 16:58:08 2009 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA&lt;br /&gt;
Tue Feb 24 16:58:08 2009 [server] Peer Connection Initiated with 111.111.111.101:1194&lt;br /&gt;
Tue Feb 24 16:58:09 2009 SENT CONTROL [server]: &#39;PUSH_REQUEST&#39; (status=1)&lt;br /&gt;
Tue Feb 24 16:58:09 2009 PUSH: Received control message: &#39;PUSH_REPLY,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5&#39;&lt;br /&gt;
Tue Feb 24 16:58:09 2009 OPTIONS IMPORT: timers and/or timeouts modified&lt;br /&gt;
Tue Feb 24 16:58:09 2009 OPTIONS IMPORT: --ifconfig/up options modified&lt;br /&gt;
Tue Feb 24 16:58:09 2009 OPTIONS IMPORT: route options modified&lt;br /&gt;
Tue Feb 24 16:58:09 2009 TUN/TAP device tun0 opened&lt;br /&gt;
Tue Feb 24 16:58:09 2009 TUN/TAP TX queue length set to 100&lt;br /&gt;
Tue Feb 24 16:58:09 2009 ifconfig tun0 10.55.55.6 pointopoint 10.8.0.5 mtu 1500&lt;br /&gt;
Tue Feb 24 16:58:09 2009 route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.5&lt;br /&gt;
Tue Feb 24 16:58:09 2009 Initialization Sequence Completed&lt;/blockquote&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
- press Ctrl+C to stop the test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Run&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# /etc/init.d/openvpn start&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
[[the init.d script for OpenVPN will look for .conf file in /etc/openvpn/ and use it as configuration file. This means that everytime you start the client it will establish a vpn with the server.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Windows Client&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;br /&gt;
- download &lt;a href=&quot;http://openvpn.net/release/openvpn-2.0.9-install.exe&quot;&gt;OpenVPN&#39;s Windows Installer&lt;/a&gt;&lt;br /&gt;
- run downloaded file to start OpenVPN installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Key &amp;amp; Certificate&lt;/h3&gt;
&lt;br /&gt;
- in a command window, execute the following:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;C:\&amp;gt; cd &quot;c:\Program Files\OpenVPN\easy-rsa&quot;&lt;br /&gt;C:\&amp;gt; init-config&lt;br /&gt;C:\&amp;gt; vars&lt;br /&gt;C:\&amp;gt; clean-all&lt;br /&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key keys\.&lt;br /&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt keys\.&lt;br /&gt;C:\&amp;gt; path=%PATH%;c:\Program Files\OpenVPN\bin&lt;br /&gt;C:\&amp;gt; build-key client&lt;/code&gt;&lt;br /&gt;
[[the lines&lt;br /&gt;
&lt;i&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key keys\.&lt;br /&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt keys\.&lt;/i&gt;&lt;br /&gt;
aim to copy the certificate authority (ca) key and certificate from the server to the client. you can use other means to copy the files from the server to the client]]&lt;br /&gt;
&lt;br /&gt;
[[build-key will prompt you for some values. Use the following as reference (leave challenge password and optional company name blank):]]&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;blockquote&gt;
Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;br /&gt;
State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;br /&gt;
Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;br /&gt;
Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;br /&gt;
Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;br /&gt;
Common Name (eg, your name or your server&#39;s hostname) []:&lt;span style=&quot;color: red;&quot;&gt;client2&lt;/span&gt;&lt;br /&gt;
Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Please enter the following &#39;extra&#39; attributes&lt;br /&gt;
to be sent with your certificate request&lt;br /&gt;
A challenge password []:&lt;br /&gt;
An optional company name []:&lt;br /&gt;
Using configuration from /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf&lt;br /&gt;
Check that the request matches the signature&lt;br /&gt;
Signature ok&lt;br /&gt;
The Subject&#39;s Distinguished Name is as follows&lt;br /&gt;
countryName :PRINTABLE:&#39;PH&#39;&lt;br /&gt;
stateOrProvinceName :PRINTABLE:&#39;MM&#39;&lt;br /&gt;
localityName :PRINTABLE:&#39;Pasig&#39;&lt;br /&gt;
organizationName :PRINTABLE:&#39;DPI&#39;&lt;br /&gt;
organizationalUnitName:PRINTABLE:&#39;IT&#39;&lt;br /&gt;
commonName :PRINTABLE:&#39;client1&#39;&lt;br /&gt;
emailAddress :IA5STRING:&#39;eman.de.guzman@gmail.com&#39;&lt;br /&gt;
Certificate is to be certified until Feb 22 08:46:55 2019 GMT (3650 days)&lt;br /&gt;
Sign the certificate? [y/n]:&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1 out of 1 certificate requests certified, commit? [y/n]&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
Write out database with 1 new entries&lt;br /&gt;
Data Base Updated&lt;/blockquote&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuration&lt;/h3&gt;
&lt;br /&gt;
- still in the same command window, execute the following:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;C:\&amp;gt; cd &quot;c:\Program Files\OpenVPN\config\&quot;&lt;br /&gt;C:\&amp;gt; copy ..\sample-config\client.ovpn .&lt;br /&gt;C:\&amp;gt; edit client.ovpn&lt;/code&gt;&lt;br /&gt;
change the following:&lt;br /&gt;
&lt;br /&gt;
line 42&lt;br /&gt;
from remote my-server-1 1194&lt;br /&gt;
to remote &lt;span style=&quot;color: red;&quot;&gt;111.111.111.101&lt;/span&gt; 1194&lt;br /&gt;
&lt;br /&gt;
line 88&lt;br /&gt;
from ca ca.crt&lt;br /&gt;
to ca c:/Program\ Files/OpenVPN/easy-rsa/keys/ca.crt&lt;br /&gt;
&lt;br /&gt;
line 89&lt;br /&gt;
from cert &lt;br /&gt;
client.crt&lt;br /&gt;
to cert c:/Program\ Files/OpenVPN/easy-rsa/keys/client.crt&lt;br /&gt;
&lt;br /&gt;
line 90&lt;br /&gt;
from key client.key&lt;br /&gt;
to key c:/Program\ Files/OpenVPN/easy-rsa/keys/client.key&lt;br /&gt;
&lt;br /&gt;
- save and close &quot;c:\Program Files\OpenVPN\config\client.conf&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Run&lt;/h3&gt;
&lt;br /&gt;
- make sure that UDP port 1194 on the server is open&lt;br /&gt;
- still in the same command window, execute the following:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;C:\&amp;gt; cd &quot;c:\Program Files\OpenVPN&quot;&lt;br /&gt;C:\&amp;gt; bin\openvpn config\client.ovpn&lt;/code&gt;&lt;br /&gt;
- when you see the line &quot;Initialization Sequence Completed&quot;, this indicates that everything is working&lt;br /&gt;
- press Ctrl+Pause to stop OpenVPN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Reference&lt;/h2&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.openvpn.net/index.php/documentation/howto.html&quot;&gt;OpenVPN HowTo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/8155536738947096489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2010/09/setting-up-openvpn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/8155536738947096489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/8155536738947096489'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2010/09/setting-up-openvpn.html' title='Setting Up OpenVPN'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-5106137944490884267</id><published>2010-08-17T19:51:00.000-07:00</published><updated>2012-10-23T21:01:12.517-07:00</updated><title type='text'>Running Eclipse on a Mac Network User Account</title><content type='html'>ISSUE:&lt;br /&gt;
&lt;br /&gt;
When running eclipse (galileo) using a Mac network user account a message “Workspace in use or cannot be created, choose a different one” always pops up. Then after clicking &quot;OK&quot;, eclipse closes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SOLUTION:&lt;br /&gt;
&lt;br /&gt;
Run eclipse with the following parameters:&lt;br /&gt;
&lt;br /&gt;
-vmargs -Dosgi.locking=java.io&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;br /&gt;
./eclipse -vmargs -Dosgi.locking=java.io&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
Add -Dosgi.locking=java.io in eclipse.ini.&lt;br /&gt;
&lt;br /&gt;
eclipse.ini can be found by right clicking Eclipse.app and choosing &quot;Show Package Content&quot;. Then go to Contents -&amp;gt; MacOS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
REFERENCE:&lt;br /&gt;
&lt;br /&gt;
http://www.spreendigital.de/blog/2010/03/26/eclipse-on-mac-os-x-workspace-error-on-nfs-mounts/comment-page-1/#comment-4486</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/5106137944490884267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2010/08/running-eclipse-on-mac-network-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/5106137944490884267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/5106137944490884267'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2010/08/running-eclipse-on-mac-network-user.html' title='Running Eclipse on a Mac Network User Account'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6150778399676082249.post-3045102087036068997</id><published>2009-02-23T21:03:00.000-08:00</published><updated>2012-10-23T21:03:11.252-07:00</updated><title type='text'>Dynamic IP &amp;quot;Road-Warrior&amp;quot; VPN</title><content type='html'>&lt;h2&gt;
Goal&lt;/h2&gt;
&lt;br /&gt;
To concentrate on getting a VPN up and running. Explanations are cut to the very minimum (for details read the &lt;a href=&quot;http://www.openvpn.net/index.php/documentation/howto.html&quot;&gt;OpenVPN HowTo&lt;/a&gt;).&lt;br /&gt;
This guide is done using an Ubuntu 8.04 for the server and client. The text in &lt;span style=&quot;color: red;&quot;&gt;red&lt;/span&gt; may be modified to fit your configurations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Server&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;br /&gt;
- log in to the server&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# apt-get install openvpn&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create CA&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;# source ./vars&lt;br /&gt;# ./clean-all&lt;br /&gt;# ./build-ca&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
[[build-ca will prompt you for some values. Use the following as reference:]]&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Common Name (eg, your name or your server&#39;s hostname) [Fort-Funston CA]:&lt;span style=&quot;color: red;&quot;&gt;DPI-VPN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
[[this will create ca.crt and ca.key in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Key &amp;amp; Certificate&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;
# ./build-key-server &lt;span style=&quot;color: red;&quot;&gt;server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[[build-key-server will prompt you for some values. Use the following as reference (leave challenge password and optional company name blank):]]&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Common Name (eg, your name or your server&#39;s hostname) [server]:&lt;span style=&quot;color: red;&quot;&gt;server&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Please enter the following &#39;extra&#39; attributes&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;to be sent with your certificate request&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;A challenge password []:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;An optional company name []:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Using configuration from /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Check that the request matches the signature&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Signature ok&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;The Subject&#39;s Distinguished Name is as follows&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;countryName           :PRINTABLE:&#39;PH&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;stateOrProvinceName   :PRINTABLE:&#39;MM&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;localityName          :PRINTABLE:&#39;Pasig&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;organizationName      :PRINTABLE:&#39;DPI&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;commonName            :PRINTABLE:&#39;server&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;emailAddress          :IA5STRING:&#39;eman.de.guzman@gmail.com&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Certificate is to be certified until Feb 23 02:17:50 2019 GMT (3650 days)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Sign the certificate? [y/n]:&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;1 out of 1 certificate requests certified, commit? [y/n]&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Write out database with 1 new entries&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Data Base Updated&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
[[build-key-server will create server.crt and server.key in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Diffie Hellman parameters&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;# ./build-dh&lt;/code&gt;&lt;br /&gt;
[[build-dh will create dh1024.pem in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuration&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;# cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/&lt;br /&gt;# cd /etc/openvpn&lt;br /&gt;# gunzip server.conf.gz&lt;/code&gt;&lt;br /&gt;
- open /etc/openvpn/server.conf and change the following:&lt;br /&gt;
&lt;br /&gt;
line 78&lt;br /&gt;
from ca ca.crt&lt;br /&gt;
to ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt&lt;br /&gt;
&lt;br /&gt;
line 79&lt;br /&gt;
from cert server.crt&lt;br /&gt;
to cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.crt&lt;br /&gt;
&lt;br /&gt;
line 80&lt;br /&gt;
from key server.key&lt;br /&gt;
to key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.key&lt;br /&gt;
&lt;br /&gt;
line 87&lt;br /&gt;
from dh dh1024.pem&lt;br /&gt;
to dh /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem&lt;br /&gt;
&lt;br /&gt;
- save and close /etc/openvpn/server.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Test&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# openvpn /etc/openvpn/server.conf&lt;/code&gt;&lt;br /&gt;
- the output should look something like (the line &quot;Initialization Sequence Completed&quot; indicates that everything is working):&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 Diffie-Hellman initialized with 1024 bit key&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 /usr/bin/openssl-vulnkey -q -b 1024 -m&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 TUN/TAP device tun0 opened&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 TUN/TAP TX queue length set to 100&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 Socket Buffers: R=[110592-&amp;gt;131072] S=[110592-&amp;gt;131072]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 UDPv4 link local (bound): [undef]:1194&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 UDPv4 link remote: [undef]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 MULTI: multi_init called, r=256 v=256&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 IFCONFIG POOL: base=10.8.0.4 size=62&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 IFCONFIG POOL LIST&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Mon Feb 23 12:22:25 2009 Initialization Sequence Completed&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
- press Ctrl+C to stop the test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Run&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# /etc/init.d/openvpn start&lt;/code&gt;&lt;br /&gt;
[[the init.d script for OpenVPN will look for .conf file in /etc/openvpn/ and use it as configuration file. This means that everytime you start the server it will start to listen for a vpn connection request.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Linux Client&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;br /&gt;
- log in to the linux client&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# apt-get install openvpn&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Key &amp;amp; Certificate&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cd /usr/share/doc/openvpn/examples/easy-rsa/2.0&lt;br /&gt;# mkdir keys&lt;br /&gt;# chmod 700 keys&lt;br /&gt;# source ./vars&lt;br /&gt;# ./clean-all&lt;br /&gt;# scp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key ./keys/.&lt;br /&gt;# scp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt ./keys/.&lt;br /&gt;# ./build-key client&lt;/code&gt;&lt;br /&gt;
[[the lines&lt;br /&gt;
&lt;i&gt;# scp user@vpnserver:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key ./keys/.&lt;br /&gt;# scp user@vpnserver:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt ./keys/.&lt;/i&gt;&lt;br /&gt;
aim to copy the certificate authority (ca) key and certificate from the server to the client. you can use other means to copy the files from the server to the client]]&lt;br /&gt;
&lt;br /&gt;
[[build-key will prompt you for some values. Use the following as reference (leave challenge password and optional company name blank):]]&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Common Name (eg, your name or your server&#39;s hostname) [client]:&lt;span style=&quot;color: red;&quot;&gt;client1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Please enter the following &#39;extra&#39; attributes&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;to be sent with your certificate request&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;A challenge password []:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;An optional company name []:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Using configuration from /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Check that the request matches the signature&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Signature ok&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;The Subject&#39;s Distinguished Name is as follows&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;countryName :PRINTABLE:&#39;PH&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;stateOrProvinceName :PRINTABLE:&#39;MM&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;localityName :PRINTABLE:&#39;Pasig&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;organizationName :PRINTABLE:&#39;DPI&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;organizationalUnitName:PRINTABLE:&#39;IT&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;commonName :PRINTABLE:&#39;client1&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;emailAddress :IA5STRING:&#39;eman.de.guzman@gmail.com&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Certificate is to be certified until Feb 22 08:46:55 2019 GMT (3650 days)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Sign the certificate? [y/n]:&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;1 out of 1 certificate requests certified, commit? [y/n]&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Write out database with 1 new entries&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Data Base Updated&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
[[make sure CommonName value is different for each client]]&lt;br /&gt;
[[this will create client.crt and client.key in /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuration&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn/&lt;br /&gt;# cd /etc/openvpn&lt;/code&gt;&lt;br /&gt;
- open /etc/openvpn/client.conf and change the following:&lt;br /&gt;
&lt;br /&gt;
line 42&lt;br /&gt;
from remote my-server-1 1194&lt;br /&gt;
to remote &lt;span style=&quot;color: red;&quot;&gt;111.111.111.101&lt;/span&gt; 1194&lt;br /&gt;
&lt;br /&gt;
line 88&lt;br /&gt;
from ca ca.crt&lt;br /&gt;
to ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt&lt;br /&gt;
&lt;br /&gt;
line 89&lt;br /&gt;
from cert &lt;br /&gt;
client.crt&lt;br /&gt;
to cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/client.crt&lt;br /&gt;
&lt;br /&gt;
line 90&lt;br /&gt;
from key client.key&lt;br /&gt;
to key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/client.key&lt;br /&gt;
&lt;br /&gt;
- save and close /etc/openvpn/client.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Test&lt;/h3&gt;
&lt;br /&gt;
- make sure that UDP port 1194 on the server is open&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# openvpn /etc/openvpn/client.conf&lt;/code&gt;&lt;br /&gt;
- the output should look something like (the line &quot;Initialization Sequence Completed&quot; indicates that everything is working):&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:07 2009 OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:07 2009 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:07 2009 /usr/bin/openssl-vulnkey -q -b 1024 -m&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 LZO compression initialized&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Local Options hash (VER=V4): &#39;41690919&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Expected Remote Options hash (VER=V4): &#39;530fdded&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Socket Buffers: R=[110592-&amp;gt;131072] S=[110592-&amp;gt;131072]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 UDPv4 link local: [undef]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 UDPv4 link remote: 111.111.111.101:1194&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 TLS: Initial packet from 111.111.111.101:1194, sid=efff49ab 3322efb5&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;TueFeb2416:58:082009VERIFYOK:depth=1,/C=PH/ST=MM/L=Pasig/O=DPI/CN=DPI_CA/emailAddress=eman.de.guzman@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;TueFeb2416:58:082009VERIFYOK:depth=0,/C=PH/ST=MM/L=Pasig/O=DPI/CN=server/emailAddress=eman.de.guzman@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Data Channel Encrypt: Cipher &#39;BF-CBC&#39; initialized with 128 bit key&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Data Channel Encrypt: Using 160 bit message hash &#39;SHA1&#39; for HMAC authentication&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Data Channel Decrypt: Cipher &#39;BF-CBC&#39; initialized with 128 bit key&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Data Channel Decrypt: Using 160 bit message hash &#39;SHA1&#39; for HMAC authentication&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:08 2009 [server] Peer Connection Initiated with 111.111.111.101:1194&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 SENT CONTROL [server]: &#39;PUSH_REQUEST&#39; (status=1)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 PUSH: Received control message: &#39;PUSH_REPLY,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 OPTIONS IMPORT: timers and/or timeouts modified&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 OPTIONS IMPORT: --ifconfig/up options modified&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 OPTIONS IMPORT: route options modified&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 TUN/TAP device tun0 opened&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 TUN/TAP TX queue length set to 100&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 ifconfig tun0 10.55.55.6 pointopoint 10.8.0.5 mtu 1500&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.5&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Tue Feb 24 16:58:09 2009 Initialization Sequence Completed&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
- press Ctrl+C to stop the test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Run&lt;/h3&gt;
&lt;br /&gt;
- execute:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;# /etc/init.d/openvpn start&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
[[the init.d script for OpenVPN will look for .conf file in /etc/openvpn/ and use it as configuration file. This means that everytime you start the client it will establish a vpn with the server.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Windows Client&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;br /&gt;
- download &lt;a href=&quot;http://openvpn.net/release/openvpn-2.0.9-install.exe&quot;&gt;OpenVPN&#39;s Windows Installer&lt;/a&gt;&lt;br /&gt;
- run downloaded file to start OpenVPN installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Create Key &amp;amp; Certificate&lt;/h3&gt;
&lt;br /&gt;
- in a command window, execute the following:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;C:\&amp;gt; cd &quot;c:\Program Files\OpenVPN\easy-rsa&quot;&lt;br /&gt;C:\&amp;gt; init-config&lt;br /&gt;C:\&amp;gt; vars&lt;br /&gt;C:\&amp;gt; clean-all&lt;br /&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key keys\.&lt;br /&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt keys\.&lt;br /&gt;C:\&amp;gt; path=%PATH%;c:\Program Files\OpenVPN\bin&lt;br /&gt;C:\&amp;gt; build-key client&lt;/code&gt;&lt;br /&gt;
[[the lines&lt;br /&gt;
&lt;i&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.key keys\.&lt;br /&gt;C:\&amp;gt; pscp &lt;span style=&quot;color: red;&quot;&gt;user&lt;/span&gt;@&lt;span style=&quot;color: red;&quot;&gt;vpnserver_ip&lt;/span&gt;:/usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt keys\.&lt;/i&gt;&lt;br /&gt;
aim to copy the certificate authority (ca) key and certificate from the server to the client. you can use other means to copy the files from the server to the client]]&lt;br /&gt;
&lt;br /&gt;
[[build-key will prompt you for some values. Use the following as reference (leave challenge password and optional company name blank):]]&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Country Name (2 letter code) [US]:&lt;span style=&quot;color: red;&quot;&gt;PH&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;State or Province Name (full name) [CA]:&lt;span style=&quot;color: red;&quot;&gt;MM&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Locality Name (eg, city) [SanFrancisco]:&lt;span style=&quot;color: red;&quot;&gt;Pasig&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organization Name (eg, company) [Fort-Funston]:&lt;span style=&quot;color: red;&quot;&gt;DPI&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Organizational Unit Name (eg, section) []:&lt;span style=&quot;color: red;&quot;&gt;IT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Common Name (eg, your name or your server&#39;s hostname) []:&lt;span style=&quot;color: red;&quot;&gt;client2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Email Address [me@myhost.mydomain]:&lt;span style=&quot;color: red;&quot;&gt;eman.de.guzman@gmail.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Please enter the following &#39;extra&#39; attributes&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;to be sent with your certificate request&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;A challenge password []:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;An optional company name []:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Using configuration from /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Check that the request matches the signature&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Signature ok&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;The Subject&#39;s Distinguished Name is as follows&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;countryName :PRINTABLE:&#39;PH&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;stateOrProvinceName :PRINTABLE:&#39;MM&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;localityName :PRINTABLE:&#39;Pasig&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;organizationName :PRINTABLE:&#39;DPI&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;organizationalUnitName:PRINTABLE:&#39;IT&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;commonName :PRINTABLE:&#39;client1&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;emailAddress :IA5STRING:&#39;eman.de.guzman@gmail.com&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Certificate is to be certified until Feb 22 08:46:55 2019 GMT (3650 days)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Sign the certificate? [y/n]:&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;1 out of 1 certificate requests certified, commit? [y/n]&lt;span style=&quot;color: red;&quot;&gt;y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Write out database with 1 new entries&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Data Base Updated&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Configuration&lt;/h3&gt;
&lt;br /&gt;
- still in the same command window, execute the following:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;C:\&amp;gt; cd &quot;c:\Program Files\OpenVPN\config\&quot;&lt;br /&gt;C:\&amp;gt; copy ..\sample-config\client.ovpn .&lt;br /&gt;C:\&amp;gt; edit client.ovpn&lt;/code&gt;&lt;br /&gt;
change the following:&lt;br /&gt;
&lt;br /&gt;
line 42&lt;br /&gt;
from remote my-server-1 1194&lt;br /&gt;
to remote &lt;span style=&quot;color: red;&quot;&gt;111.111.111.101&lt;/span&gt; 1194&lt;br /&gt;
&lt;br /&gt;
line 88&lt;br /&gt;
from ca ca.crt&lt;br /&gt;
to ca c:/Program\ Files/OpenVPN/easy-rsa/keys/ca.crt&lt;br /&gt;
&lt;br /&gt;
line 89&lt;br /&gt;
from cert &lt;br /&gt;
client.crt&lt;br /&gt;
to cert c:/Program\ Files/OpenVPN/easy-rsa/keys/client.crt&lt;br /&gt;
&lt;br /&gt;
line 90&lt;br /&gt;
from key client.key&lt;br /&gt;
to key c:/Program\ Files/OpenVPN/easy-rsa/keys/client.key&lt;br /&gt;
&lt;br /&gt;
- save and close &quot;c:\Program Files\OpenVPN\config\client.conf&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Run&lt;/h3&gt;
&lt;br /&gt;
- make sure that UDP port 1194 on the server is open&lt;br /&gt;
- still in the same command window, execute the following:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;C:\&amp;gt; cd &quot;c:\Program Files\OpenVPN&quot;&lt;br /&gt;C:\&amp;gt; bin\openvpn config\client.ovpn&lt;/code&gt;&lt;br /&gt;
- when you see the line &quot;Initialization Sequence Completed&quot;, this indicates that everything is working&lt;br /&gt;
- press Ctrl+Pause to stop OpenVPN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Reference&lt;/h2&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.openvpn.net/index.php/documentation/howto.html&quot;&gt;OpenVPN HowTo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://emandeguzman.blogspot.com/feeds/3045102087036068997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://emandeguzman.blogspot.com/2009/02/dynamic-ip-vpn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/3045102087036068997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6150778399676082249/posts/default/3045102087036068997'/><link rel='alternate' type='text/html' href='http://emandeguzman.blogspot.com/2009/02/dynamic-ip-vpn.html' title='Dynamic IP &amp;quot;Road-Warrior&amp;quot; VPN'/><author><name>eman de guzman</name><uri>http://www.blogger.com/profile/01724431726359239068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>