{"id":1012,"date":"2015-01-25T01:46:20","date_gmt":"2015-01-25T01:46:20","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=1012"},"modified":"2022-02-03T11:24:59","modified_gmt":"2022-02-03T17:24:59","slug":"unify-unifi-ap-pfsense-router-vlan-guest-network","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/","title":{"rendered":"How to integrate Unifi AP&#8217;s with a pfSense router with a VLAN for a guest network"},"content":{"rendered":"<p>Well, <a href=\"http:\/\/elbsolutions.com\/projects\/unifi-access-point-answer-enterprise-like-wifi-system\/\">in my last article where I discuss why I am trying out 2 new AP&#8217;s by Unifi<\/a>, it was discovered that they are &#8230; I think perfect. I am going to let them soak for a while and see how iOS devices hand off when walking across the building. But for now, they are great to configure.<\/p>\n<p>I had to do a little fiddling with the pfSense box and learn new stuff again, but it all seems to work. I think I love pfSense [UPDATE Fall 2015 &#8211; no I REALLY LOVE pfSense].<\/p>\n<p>In short &#8211; how to get the Unifi boxes to work with the main and guest networks by using a VLAN and how to route that traffic. This is for a church where on Sundays &#8211; hundreds of people come &#8211; so we need lots of guest IP addresses. Here we go&#8230;<!--more--><\/p>\n<p>First, I am using 100% pfSense. So the person with this article got me going the most. I followed his tutorial ignoring all the Cisco stuff and concentrating on VLAN 10.<\/p>\n<ul>\n<li>I configured a VLAN on my LAN port of my pfSense box and called assigned it an ID of 10 like <a href=\"https:\/\/www.iceflatline.com\/2013\/09\/how-to-create-and-configure-vlans-in-pfsense\/\" target=\"_blank\" rel=\"noopener noreferrer\">the article said<\/a>.<\/li>\n<li>Then, I added a new interface that used that VLAN like the article said\n<ul>\n<li>172.16.10.1 and used a \/23 behind it (1022 addresses -see cheat sheet link below). Now what does that mean? Well, I know it has something to do with the Subnet Mask et. al and all I ever use is 255.255.255.0 networks &#8211; which i know to be 253 devices . So I needed <a href=\"http:\/\/superuser.com\/questions\/723444\/how-do-i-get-a-23-subnet-mask-from-172-16-0-0-21-network-address\" target=\"_blank\" rel=\"noopener noreferrer\">this article<\/a> to fill in the rest of my knowledge which led me to <a href=\"http:\/\/www.aelius.com\/njh\/subnet_sheet.html\" target=\"_blank\" rel=\"noopener noreferrer\">the cheat sheet<\/a> that really gave me my answer. I know it was talking about class C stuff etc. but it really helped me understand things<\/li>\n<li>THEN in pfSense &#8211; when you go to configure the DHCP (below) &#8211; it tells you the range you can pick from \u00a0&#8211; so why did I need the above? Because I learn from what I know &#8211; then the &#8220;hindsight&#8221; fills in &#8211; pfSense is awesome because you can ono a little and it will help fill in the rest often.<\/li>\n<\/ul>\n<\/li>\n<li>Then I configured DCHP which needs the above interface (VLAN10) to have a static ip address.\n<ul>\n<li>I have my users\u00a0172.16.10.20-172.16.11.254 which is about 490 addresses &#8211; good enough for the Sunday morning church rush<\/li>\n<li>I configured their lease to expire in 3 hours &#8211; so if one had 2 services of church &#8211; this should only be 1 hour so the IP&#8217;s can be reused.<\/li>\n<\/ul>\n<\/li>\n<li>Then I configured the guest network in the Unifi AP to only\n<ul>\n<li>allowed subnets\u00a0172.16.10.0\/23 network and<\/li>\n<li>restricted subnets\u00a0of\u00a0192.16.1.0\/24 network<\/li>\n<li>so that the two could never see each other and now we have a normal network and a guest network.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Beauty. I tested them to ensure they could not see each other and it worked. I have to test the roaming on iOS but my iPhone died before I could do that test. I bought the cheap charging cable so I don&#8217;t have one in my car. Bummer. I will have to come back.<\/p>\n<p>Oh &#8211; and as a follow up &#8211; the controller MUST be working for the landing page right? So to get it working as a service in the background (not as a thing that needs a user to be logged in &#8211; on a mac, <a href=\"http:\/\/elbsolutions.com\/projects\/unify-ap-pfsense-router-vlan-guest-network\/\" target=\"_blank\" rel=\"noopener noreferrer\">follow extra these steps.<\/a>\u00a0I followed\u00a0the one where it was a .plist file.<\/p>\n<p><strong>[UPDATE Fall 2015] Frustrated in getting the service up and running and seeing the web page? THERE IS A BUG!!!!<\/strong> You have to install both the 64 and 32 bit versions of Java (no &#8211; really &#8211; this works!) <a href=\"https:\/\/community.ubnt.com\/t5\/UniFi-Wireless\/UniFi-Run-the-controller-as-a-Windows-service-windows-2008r2-64\/td-p\/942675\" target=\"_blank\" rel=\"noopener noreferrer\">See these guys&#8217; article<\/a> &#8211; SCROLL TO THE BOTTOM and work your way up. Don&#8217;t forget to do the setup, env. var paths for both versions. Then it will work. I only had 1 customer our of 3 where this was required.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, in my last article where I discuss why I am trying out 2 new AP&#8217;s by Unifi, it was discovered that they are &#8230; I think perfect. I am going to let them soak for a while and see how iOS devices hand off when walking across the building. But for now, they are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1012","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to integrate Unifi AP&#039;s with a pfSense router with a VLAN for a guest network - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to integrate Unifi AP&#039;s with a pfSense router with a VLAN for a guest network - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"Well, in my last article where I discuss why I am trying out 2 new AP&#8217;s by Unifi, it was discovered that they are &#8230; I think perfect. I am going to let them soak for a while and see how iOS devices hand off when walking across the building. But for now, they are [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-25T01:46:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:59+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"How to integrate Unifi AP&#8217;s with a pfSense router with a VLAN for a guest network\",\"datePublished\":\"2015-01-25T01:46:20+00:00\",\"dateModified\":\"2022-02-03T17:24:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/\"},\"wordCount\":670,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/\",\"name\":\"How to integrate Unifi AP's with a pfSense router with a VLAN for a guest network - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2015-01-25T01:46:20+00:00\",\"dateModified\":\"2022-02-03T17:24:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/unify-unifi-ap-pfsense-router-vlan-guest-network\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to integrate Unifi AP&#8217;s with a pfSense router with a VLAN for a guest network\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to integrate Unifi AP's with a pfSense router with a VLAN for a guest network - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/","og_locale":"en_US","og_type":"article","og_title":"How to integrate Unifi AP's with a pfSense router with a VLAN for a guest network - ELB Solutions.com Inc.","og_description":"Well, in my last article where I discuss why I am trying out 2 new AP&#8217;s by Unifi, it was discovered that they are &#8230; I think perfect. I am going to let them soak for a while and see how iOS devices hand off when walking across the building. But for now, they are [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2015-01-25T01:46:20+00:00","article_modified_time":"2022-02-03T17:24:59+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"How to integrate Unifi AP&#8217;s with a pfSense router with a VLAN for a guest network","datePublished":"2015-01-25T01:46:20+00:00","dateModified":"2022-02-03T17:24:59+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/"},"wordCount":670,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/","url":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/","name":"How to integrate Unifi AP's with a pfSense router with a VLAN for a guest network - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2015-01-25T01:46:20+00:00","dateModified":"2022-02-03T17:24:59+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/unify-unifi-ap-pfsense-router-vlan-guest-network\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"How to integrate Unifi AP&#8217;s with a pfSense router with a VLAN for a guest network"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=1012"}],"version-history":[{"count":10,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1012\/revisions"}],"predecessor-version":[{"id":2761,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1012\/revisions\/2761"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}