{"action":"created","comment":{"url":"https://api.github.com/repos/inverse-inc/packetfence/pulls/comments/31197711","id":31197711,"diff_hunk":"@@ -0,0 +1,152 @@\n+OpenWrt BarrierBreaker 14.07 with hostapd Quick Integration Guide\n+=================================================================\n+:encoding: UTF-8\n+:lang: en\n+:doctype: book\n+\n+include::includes/global-attributes.asciidoc[]\n+\n+About this Guide\n+----------------\n+This guide has been created in order to help sales engineers, product managers, or network specialists demonstrate the PacketFence capabilities on-site with an existing or potential customer.  It can also provide guidelines to setup a proof of concept for a potential PacketFence deployment using OpenWrt BarrierBreaker 14.07 with Hostapd.\n+\n+Introduction\n+------------\n+This guide will provide an example for the configuration of an Open SSID (not crypted) and a Secure SSID (802.1x). You will to install wpad and hostapd. This two SSIDs will do radius authentication against PacketFence.\n+\n+Assumptions\n+-----------\n+* You have a configured PacketFence environment with working test equipment\n+* Where the management IP of PacketFence will be 192.168.1.10 and has s3cr3t as his radius shared secret\n+* You have an acces point with OpenWrt BarrierBreaker 14.07 installed\n+\n+\n+Quick installation\n+------------------\n+Step 1: Packages installation\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+You can install the packages from the web interface of OpenWrt.\n+\n+Go to *System -> Software*\n+\n+First update the repos by clicking the button Update lists.\n+\n+Then you will have to install the packages of Hostapd and wpad.\n+\n+Go to the tab 'Available packages' and then search for the package hostapd into the 'Filter:' field.\n+\n+Click Install the hostapd package, the actual version is 2014-06-03.1-1.\n+\n+Do the same process for the wpad package version 2014-06-03.1-1.\n+\n+Step 2: Dynamic VLAN Configuration\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Create the file : /etc/config/hostapd.vlan\n+----\n+*           wlan0.#\n+----\n+\n+Step 3: Hostapd configuration\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+You will need to modify the hostapd script that come with the package that we previously installed.\n+\n+Connect with SSH to the AP and run these command:\n+----\n+cd /lib/netifd/\n+mv hostapd.sh hostapd.sh.old\n+wget https://github.com/inverse-inc/packetfence/tree/devel/addons/hostapd/hostapd-14.07.sh\n+mv hotsapd-14.07.sh hostapd.sh\n+wifi\n+----\n+\n+Step 4: Configure the SSIDs\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+To configure the PF-Open SSID, we will use UCI:\n+\n+----\n+uci add_list wireless.@wifi-iface[0]=\"wifi-iface\"\n+uci add_list wireless.@wifi-iface[0].device=\"radio0\"\n+uci add_list wireless.@wifi-iface[0].mode=\"ap\"\n+uci add_list wireless.@wifi-iface[0].ssid=\"PF-Open\"\n+uci add_list wireless.@wifi-iface[0].network=\"lan\"\n+uci add_list wireless.@wifi-iface[0].encryption=\"none\"\n+uci add_list wireless.@wifi-iface[0].auth_server=\"192.168.1.10\"\n+uci add_list wireless.@wifi-iface[0].auth_port=\"1812\"\n+uci add_list wireless.@wifi-iface[0].auth_secret=\"s3cr3t\"\n+uci add_list wireless.@wifi-iface[0].acct_server=\"192.168.1.10\"\n+uci add_list wireless.@wifi-iface[0].acct_port=\"1813\"\n+uci add_list wireless.@wifi-iface[0].acct_secret=\"s3cr3t\"\n+uci add_list wireless.@wifi-iface[0].dynamic_vlan=\"2\"\n+uci add_list wireless.@wifi-iface[0].vlan_file=\"/etc/config/hostapd.vlan\"\n+uci add_list wireless.@wifi-iface[0].vlan_tagged_interface=\"eth0\"\n+uci add_list wireless.@wifi-iface[0].dae_secret=\"s3cr3t\"\n+uci add_list wireless.@wifi-iface[0].dae_client=\"192.168.1.10\"\n+uci add_list wireless.@wifi-iface[0].dae_port=\"3799\"\n+uci add_list wireless.@wifi-iface[0].macfilter=\"2\"\n+uci add_list wireless.@wifi-iface[0].nasid=\"ubiquiti\"\n+uci commit\n+----\n+\n+Configure the PF-Secure SSID:\n+\n+----\n+uci add_list wireless.@wifi-iface[0]=\"wifi-iface\"\n+uci add_list wireless.@wifi-iface[0].device=\"radio0\"\n+uci add_list wireless.@wifi-iface[0].mode=\"ap\"\n+uci add_list wireless.@wifi-iface[0].ssid=\"PF-Secure\"\n+uci add_list wireless.@wifi-iface[0].network=\"lan\"\n+uci add_list wireless.@wifi-iface[0].encryption=\"wpa2\"\n+uci add_list wireless.@wifi-iface[0].auth_server=\"192.168.1.10\"\n+uci add_list wireless.@wifi-iface[0].auth_port=\"1812\"\n+uci add_list wireless.@wifi-iface[0].auth_secret=\"s3cr3t\"\n+uci add_list wireless.@wifi-iface[0].acct_server=\"192.168.1.10\"\n+uci add_list wireless.@wifi-iface[0].acct_port=\"1813\"\n+uci add_list wireless.@wifi-iface[0].acct_secret=\"s3cr3t\"\n+uci add_list wireless.@wifi-iface[0].dynamic_vlan=\"2\"\n+uci add_list wireless.@wifi-iface[0].vlan_file=\"/etc/config/hostapd.vlan\"\n+uci add_list wireless.@wifi-iface[0].vlan_tagged_interface=\"eth0\"\n+uci add_list wireless.@wifi-iface[0].dae_secret=\"s3cr3t\"\n+uci add_list wireless.@wifi-iface[0].dae_client=\"192.168.1.10\"\n+uci add_list wireless.@wifi-iface[0].dae_port=\"3799\"\n+uci add_list wireless.@wifi-iface[0].macfilter=\"2\"\n+uci add_list wireless.@wifi-iface[0].nasid=\"ubiquiti\"\n+uci commit\n+----\n+\n+In order to apply this configuration, when you are connect over ssh on the AP, run the command 'wifi'. It will reload the configuration and broadcast the SSID.\n+\n+NOTE:  It's known that you can't put 2 SSIDs with the same dae server at the same time. The deauthentication will not work on the 2nd SSID.","path":"docs/PacketFence_OpenWrt-Hostapd_Quick_Install_Guide.asciidoc","position":118,"original_position":118,"commit_id":"419aec7b5a2cc29f04cec098d77372b1ee77402c","original_commit_id":"419aec7b5a2cc29f04cec098d77372b1ee77402c","user":{"login":"extrafu","id":1616141,"avatar_url":"https://avatars.githubusercontent.com/u/1616141?v=3","gravatar_id":"","url":"https://api.github.com/users/extrafu","html_url":"https://github.com/extrafu","followers_url":"https://api.github.com/users/extrafu/followers","following_url":"https://api.github.com/users/extrafu/following{/other_user}","gists_url":"https://api.github.com/users/extrafu/gists{/gist_id}","starred_url":"https://api.github.com/users/extrafu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extrafu/subscriptions","organizations_url":"https://api.github.com/users/extrafu/orgs","repos_url":"https://api.github.com/users/extrafu/repos","events_url":"https://api.github.com/users/extrafu/events{/privacy}","received_events_url":"https://api.github.com/users/extrafu/received_events","type":"User","site_admin":false},"body":"the 2nd -> the second","created_at":"2015-05-28T01:52:02Z","updated_at":"2015-05-28T01:52:02Z","html_url":"https://github.com/inverse-inc/packetfence/pull/613#discussion_r31197711","pull_request_url":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613","_links":{"self":{"href":"https://api.github.com/repos/inverse-inc/packetfence/pulls/comments/31197711"},"html":{"href":"https://github.com/inverse-inc/packetfence/pull/613#discussion_r31197711"},"pull_request":{"href":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613"}}},"pull_request":{"url":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613","id":36354702,"html_url":"https://github.com/inverse-inc/packetfence/pull/613","diff_url":"https://github.com/inverse-inc/packetfence/pull/613.diff","patch_url":"https://github.com/inverse-inc/packetfence/pull/613.patch","issue_url":"https://api.github.com/repos/inverse-inc/packetfence/issues/613","number":613,"state":"open","locked":false,"title":"Support OpenWrt 14.07 - Hostapd","user":{"login":"lzammit","id":5261214,"avatar_url":"https://avatars.githubusercontent.com/u/5261214?v=3","gravatar_id":"","url":"https://api.github.com/users/lzammit","html_url":"https://github.com/lzammit","followers_url":"https://api.github.com/users/lzammit/followers","following_url":"https://api.github.com/users/lzammit/following{/other_user}","gists_url":"https://api.github.com/users/lzammit/gists{/gist_id}","starred_url":"https://api.github.com/users/lzammit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzammit/subscriptions","organizations_url":"https://api.github.com/users/lzammit/orgs","repos_url":"https://api.github.com/users/lzammit/repos","events_url":"https://api.github.com/users/lzammit/events{/privacy}","received_events_url":"https://api.github.com/users/lzammit/received_events","type":"User","site_admin":false},"body":"# Description\r\nAdd the support with hostapd v2.3-devel and OpenWrt 14.07\r\n# Delete branch after merge\r\nYES \r\n\r\n# NEWS file entries\r\n## New Features\r\n* Support OpenWrt 14.07 with hostapd","created_at":"2015-05-27T22:16:37Z","updated_at":"2015-05-28T01:52:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2005db3bb99d704e1787d922a6b23d7383d4157e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613/commits","review_comments_url":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613/comments","review_comment_url":"https://api.github.com/repos/inverse-inc/packetfence/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inverse-inc/packetfence/issues/613/comments","statuses_url":"https://api.github.com/repos/inverse-inc/packetfence/statuses/419aec7b5a2cc29f04cec098d77372b1ee77402c","head":{"label":"lzammit:feature/hostapd-14.07","ref":"feature/hostapd-14.07","sha":"419aec7b5a2cc29f04cec098d77372b1ee77402c","user":{"login":"lzammit","id":5261214,"avatar_url":"https://avatars.githubusercontent.com/u/5261214?v=3","gravatar_id":"","url":"https://api.github.com/users/lzammit","html_url":"https://github.com/lzammit","followers_url":"https://api.github.com/users/lzammit/followers","following_url":"https://api.github.com/users/lzammit/following{/other_user}","gists_url":"https://api.github.com/users/lzammit/gists{/gist_id}","starred_url":"https://api.github.com/users/lzammit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzammit/subscriptions","organizations_url":"https://api.github.com/users/lzammit/orgs","repos_url":"https://api.github.com/users/lzammit/repos","events_url":"https://api.github.com/users/lzammit/events{/privacy}","received_events_url":"https://api.github.com/users/lzammit/received_events","type":"User","site_admin":false},"repo":{"id":19698519,"name":"packetfence","full_name":"lzammit/packetfence","owner":{"login":"lzammit","id":5261214,"avatar_url":"https://avatars.githubusercontent.com/u/5261214?v=3","gravatar_id":"","url":"https://api.github.com/users/lzammit","html_url":"https://github.com/lzammit","followers_url":"https://api.github.com/users/lzammit/followers","following_url":"https://api.github.com/users/lzammit/following{/other_user}","gists_url":"https://api.github.com/users/lzammit/gists{/gist_id}","starred_url":"https://api.github.com/users/lzammit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzammit/subscriptions","organizations_url":"https://api.github.com/users/lzammit/orgs","repos_url":"https://api.github.com/users/lzammit/repos","events_url":"https://api.github.com/users/lzammit/events{/privacy}","received_events_url":"https://api.github.com/users/lzammit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lzammit/packetfence","description":"PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful guest management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.","fork":true,"url":"https://api.github.com/repos/lzammit/packetfence","forks_url":"https://api.github.com/repos/lzammit/packetfence/forks","keys_url":"https://api.github.com/repos/lzammit/packetfence/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lzammit/packetfence/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lzammit/packetfence/teams","hooks_url":"https://api.github.com/repos/lzammit/packetfence/hooks","issue_events_url":"https://api.github.com/repos/lzammit/packetfence/issues/events{/number}","events_url":"https://api.github.com/repos/lzammit/packetfence/events","assignees_url":"https://api.github.com/repos/lzammit/packetfence/assignees{/user}","branches_url":"https://api.github.com/repos/lzammit/packetfence/branches{/branch}","tags_url":"https://api.github.com/repos/lzammit/packetfence/tags","blobs_url":"https://api.github.com/repos/lzammit/packetfence/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lzammit/packetfence/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lzammit/packetfence/git/refs{/sha}","trees_url":"https://api.github.com/repos/lzammit/packetfence/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lzammit/packetfence/statuses/{sha}","languages_url":"https://api.github.com/repos/lzammit/packetfence/languages","stargazers_url":"https://api.github.com/repos/lzammit/packetfence/stargazers","contributors_url":"https://api.github.com/repos/lzammit/packetfence/contributors","subscribers_url":"https://api.github.com/repos/lzammit/packetfence/subscribers","subscription_url":"https://api.github.com/repos/lzammit/packetfence/subscription","commits_url":"https://api.github.com/repos/lzammit/packetfence/commits{/sha}","git_commits_url":"https://api.github.com/repos/lzammit/packetfence/git/commits{/sha}","comments_url":"https://api.github.com/repos/lzammit/packetfence/comments{/number}","issue_comment_url":"https://api.github.com/repos/lzammit/packetfence/issues/comments{/number}","contents_url":"https://api.github.com/repos/lzammit/packetfence/contents/{+path}","compare_url":"https://api.github.com/repos/lzammit/packetfence/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lzammit/packetfence/merges","archive_url":"https://api.github.com/repos/lzammit/packetfence/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lzammit/packetfence/downloads","issues_url":"https://api.github.com/repos/lzammit/packetfence/issues{/number}","pulls_url":"https://api.github.com/repos/lzammit/packetfence/pulls{/number}","milestones_url":"https://api.github.com/repos/lzammit/packetfence/milestones{/number}","notifications_url":"https://api.github.com/repos/lzammit/packetfence/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lzammit/packetfence/labels{/name}","releases_url":"https://api.github.com/repos/lzammit/packetfence/releases{/id}","created_at":"2014-05-12T12:51:37Z","updated_at":"2014-05-12T12:54:09Z","pushed_at":"2015-05-27T22:12:49Z","git_url":"git://github.com/lzammit/packetfence.git","ssh_url":"git@github.com:lzammit/packetfence.git","clone_url":"https://github.com/lzammit/packetfence.git","svn_url":"https://github.com/lzammit/packetfence","homepage":"http://www.packetfence.org","size":86480,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"stable"}},"base":{"label":"inverse-inc:devel","ref":"devel","sha":"738ade80cccc7aa848be4fe71082b555ebcef200","user":{"login":"inverse-inc","id":1203154,"avatar_url":"https://avatars.githubusercontent.com/u/1203154?v=3","gravatar_id":"","url":"https://api.github.com/users/inverse-inc","html_url":"https://github.com/inverse-inc","followers_url":"https://api.github.com/users/inverse-inc/followers","following_url":"https://api.github.com/users/inverse-inc/following{/other_user}","gists_url":"https://api.github.com/users/inverse-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/inverse-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inverse-inc/subscriptions","organizations_url":"https://api.github.com/users/inverse-inc/orgs","repos_url":"https://api.github.com/users/inverse-inc/repos","events_url":"https://api.github.com/users/inverse-inc/events{/privacy}","received_events_url":"https://api.github.com/users/inverse-inc/received_events","type":"Organization","site_admin":false},"repo":{"id":3595658,"name":"packetfence","full_name":"inverse-inc/packetfence","owner":{"login":"inverse-inc","id":1203154,"avatar_url":"https://avatars.githubusercontent.com/u/1203154?v=3","gravatar_id":"","url":"https://api.github.com/users/inverse-inc","html_url":"https://github.com/inverse-inc","followers_url":"https://api.github.com/users/inverse-inc/followers","following_url":"https://api.github.com/users/inverse-inc/following{/other_user}","gists_url":"https://api.github.com/users/inverse-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/inverse-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inverse-inc/subscriptions","organizations_url":"https://api.github.com/users/inverse-inc/orgs","repos_url":"https://api.github.com/users/inverse-inc/repos","events_url":"https://api.github.com/users/inverse-inc/events{/privacy}","received_events_url":"https://api.github.com/users/inverse-inc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inverse-inc/packetfence","description":"PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful guest management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.","fork":false,"url":"https://api.github.com/repos/inverse-inc/packetfence","forks_url":"https://api.github.com/repos/inverse-inc/packetfence/forks","keys_url":"https://api.github.com/repos/inverse-inc/packetfence/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inverse-inc/packetfence/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inverse-inc/packetfence/teams","hooks_url":"https://api.github.com/repos/inverse-inc/packetfence/hooks","issue_events_url":"https://api.github.com/repos/inverse-inc/packetfence/issues/events{/number}","events_url":"https://api.github.com/repos/inverse-inc/packetfence/events","assignees_url":"https://api.github.com/repos/inverse-inc/packetfence/assignees{/user}","branches_url":"https://api.github.com/repos/inverse-inc/packetfence/branches{/branch}","tags_url":"https://api.github.com/repos/inverse-inc/packetfence/tags","blobs_url":"https://api.github.com/repos/inverse-inc/packetfence/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inverse-inc/packetfence/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inverse-inc/packetfence/git/refs{/sha}","trees_url":"https://api.github.com/repos/inverse-inc/packetfence/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inverse-inc/packetfence/statuses/{sha}","languages_url":"https://api.github.com/repos/inverse-inc/packetfence/languages","stargazers_url":"https://api.github.com/repos/inverse-inc/packetfence/stargazers","contributors_url":"https://api.github.com/repos/inverse-inc/packetfence/contributors","subscribers_url":"https://api.github.com/repos/inverse-inc/packetfence/subscribers","subscription_url":"https://api.github.com/repos/inverse-inc/packetfence/subscription","commits_url":"https://api.github.com/repos/inverse-inc/packetfence/commits{/sha}","git_commits_url":"https://api.github.com/repos/inverse-inc/packetfence/git/commits{/sha}","comments_url":"https://api.github.com/repos/inverse-inc/packetfence/comments{/number}","issue_comment_url":"https://api.github.com/repos/inverse-inc/packetfence/issues/comments{/number}","contents_url":"https://api.github.com/repos/inverse-inc/packetfence/contents/{+path}","compare_url":"https://api.github.com/repos/inverse-inc/packetfence/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inverse-inc/packetfence/merges","archive_url":"https://api.github.com/repos/inverse-inc/packetfence/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inverse-inc/packetfence/downloads","issues_url":"https://api.github.com/repos/inverse-inc/packetfence/issues{/number}","pulls_url":"https://api.github.com/repos/inverse-inc/packetfence/pulls{/number}","milestones_url":"https://api.github.com/repos/inverse-inc/packetfence/milestones{/number}","notifications_url":"https://api.github.com/repos/inverse-inc/packetfence/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inverse-inc/packetfence/labels{/name}","releases_url":"https://api.github.com/repos/inverse-inc/packetfence/releases{/id}","created_at":"2012-03-01T20:21:13Z","updated_at":"2015-05-27T06:51:36Z","pushed_at":"2015-05-27T22:16:37Z","git_url":"git://github.com/inverse-inc/packetfence.git","ssh_url":"git@github.com:inverse-inc/packetfence.git","clone_url":"https://github.com/inverse-inc/packetfence.git","svn_url":"https://github.com/inverse-inc/packetfence","homepage":"http://www.packetfence.org","size":142471,"stargazers_count":117,"watchers_count":117,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":92,"forks":63,"open_issues":92,"watchers":117,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613"},"html":{"href":"https://github.com/inverse-inc/packetfence/pull/613"},"issue":{"href":"https://api.github.com/repos/inverse-inc/packetfence/issues/613"},"comments":{"href":"https://api.github.com/repos/inverse-inc/packetfence/issues/613/comments"},"review_comments":{"href":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613/comments"},"review_comment":{"href":"https://api.github.com/repos/inverse-inc/packetfence/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inverse-inc/packetfence/pulls/613/commits"},"statuses":{"href":"https://api.github.com/repos/inverse-inc/packetfence/statuses/419aec7b5a2cc29f04cec098d77372b1ee77402c"}}}}