1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
5 | <meta http-equiv="Content-Style-Type" content="text/css" /> |
---|
6 | <meta name="generator" content="pandoc" /> |
---|
7 | <title>PacketFence installation</title> |
---|
8 | <style type="text/css">code{white-space: pre;}</style> |
---|
9 | <link href="data:text/css,%2F%2A%0A%20%20%20%20Buttondown%0A%20%20%20%20A%20Markdown%2FMultiMarkdown%2FPandoc%20HTML%20output%20CSS%20stylesheet%0A%20%20%20%20Author%3A%20Ryan%20Gray%0A%20%20%20%20Date%3A%2015%20Feb%202011%0A%20%20%20%20Revised%3A%2021%20Feb%202012%0A%20%20%20%0A%20%20%20%20General%20style%20is%20clean%2C%20with%20minimal%20re%2Ddefinition%20of%20the%20defaults%20or%20%0A%20%20%20%20overrides%20of%20user%20font%20settings%2E%20The%20body%20text%20and%20header%20styles%20are%20%0A%20%20%20%20left%20alone%20except%20title%2C%20author%20and%20date%20classes%20are%20centered%2E%20A%20Pandoc%20TOC%20%0A%20%20%20%20is%20not%20printed%2C%20URLs%20are%20printed%20after%20hyperlinks%20in%20parentheses%2E%20%0A%20%20%20%20Block%20quotes%20are%20italicized%2E%20Tables%20are%20lightly%20styled%20with%20lines%20above%20%0A%20%20%20%20and%20below%20the%20table%20and%20below%20the%20header%20with%20a%20boldface%20header%2E%20Code%20%0A%20%20%20%20blocks%20are%20line%20wrapped%2E%20%0A%20%0A%20%20%20%20All%20elements%20that%20Pandoc%20and%20MultiMarkdown%20use%20should%20be%20listed%20here%2C%20even%20%0A%20%20%20%20if%20the%20style%20is%20empty%20so%20you%20can%20easily%20add%20styling%20to%20anything%2E%0A%20%20%20%20%0A%20%20%20%20There%20are%20some%20elements%20in%20here%20for%20HTML5%20output%20of%20Pandoc%2C%20but%20I%20have%20not%20%0A%20%20%20%20gotten%20around%20to%20testing%20that%20yet%2E%0A%2A%2F%0A%20%0A%2F%2A%20NOTES%3A%0A%20%0A%20%20%20%20Stuff%20tried%20and%20failed%3A%0A%20%20%20%20%0A%20%20%20%20It%20seems%20that%20specifying%20font%2Dfamily%3Aserif%20in%20Safari%20will%20always%20use%20%0A%20%20%20%20Times%20New%20Roman%20rather%20than%20the%20user%27s%20preferences%20setting%2E%0A%20%20%20%20%0A%20%20%20%20Making%20the%20font%20size%20different%20or%20a%20fixed%20value%20for%20print%20in%20case%20the%20screen%20%0A%20%20%20%20font%20size%20is%20making%20the%20print%20font%20too%20big%3A%20Making%20font%2Dsize%20different%20for%20%0A%20%20%20%20print%20than%20for%20screen%20causes%20horizontal%20lines%20to%20disappear%20in%20math%20when%20using%20%0A%20%20%20%20MathJax%20under%20Safari%2E%0A%2A%2F%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Front%20Matter%20%2D%2D%2D%2D%20%2A%2F%0A%20%0A%2F%2A%20Pandoc%20header%20DIV%2E%20Contains%20%2Etitle%2C%20%2Eauthor%20and%20%2Edate%2E%20Comes%20before%20div%23TOC%2E%20%0A%20%20%20Only%20appears%20if%20one%20of%20those%20three%20are%20in%20the%20document%2E%0A%2A%2F%0A%20%0Adiv%23header%2C%20header%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Put%20border%20on%20bottom%2E%20Separates%20it%20from%20TOC%20or%20body%20that%20comes%20after%20it%2E%20%2A%2F%0A%20%20%20%20border%2Dbottom%3A%201px%20solid%20%23aaa%3B%0A%20%20%20%20margin%2Dbottom%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0A%2Etitle%20%2F%2A%20Pandoc%20title%20header%20%28h1%2Etitle%29%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20%7D%0A%20%0A%2Eauthor%2C%20%2Edate%20%2F%2A%20Pandoc%20author%28s%29%20and%20date%20headers%20%28h2%2Eauthor%20and%20h3%2Edate%29%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20Pandoc%20table%20of%20contents%20DIV%20when%20using%20the%20%2D%2Dtoc%20option%2E%0A%20%20%20NOTE%3A%20this%20doesn%27t%20support%20Pandoc%27s%20%2D%2Did%2Dprefix%20option%20for%20%23TOC%20and%20%23header%2E%20%0A%20%20%20Probably%20would%20need%20to%20use%20div%5Bid%24%3D%27TOC%27%5D%20and%20div%5Bid%24%3D%27header%27%5D%20as%20selectors%2E%0A%2A%2F%0A%20%0Adiv%23TOC%2C%20nav%23TOC%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Put%20border%20on%20bottom%20to%20separate%20it%20from%20body%2E%20%2A%2F%0A%20%20%20%20border%2Dbottom%3A%201px%20solid%20%23aaa%3B%0A%20%20%20%20margin%2Dbottom%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20div%23TOC%2C%20nav%23TOC%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20Don%27t%20display%20TOC%20in%20print%20%2A%2F%0A%20%20%20%20%20%20%20%20display%3A%20none%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Headers%20and%20sections%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Ah1%2C%20h2%2C%20h3%2C%20h4%2C%20h5%2C%20h6%0A%7B%0A%20%20%20%20font%2Dfamily%3A%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20%22Liberation%20Sans%22%2C%20Calibri%2C%20Arial%2C%20sans%2Dserif%3B%20%2F%2A%20Sans%2Dserif%20headers%20%2A%2F%0A%20%0A%20%20%20%20%2F%2A%20font%2Dfamily%3A%20%22Liberation%20Serif%22%2C%20%22Georgia%22%2C%20%22Times%20New%20Roman%22%2C%20serif%3B%20%2F%2A%20Serif%20headers%20%2A%2F%0A%20%0A%20%20%20%20page%2Dbreak%2Dafter%3A%20avoid%3B%20%2F%2A%20Firefox%2C%20Chrome%2C%20and%20Safari%20do%20not%20support%20the%20property%20value%20%22avoid%22%20%2A%2F%0A%7D%0A%20%0A%2F%2A%20Pandoc%20with%20%2D%2Dsection%2Ddivs%20option%20%2A%2F%0A%20%0Adiv%20div%2C%20section%20section%20%2F%2A%20Nested%20sections%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20margin%2Dleft%3A%202em%3B%20%2F%2A%20This%20will%20increasingly%20indent%20nested%20header%20sections%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Ap%20%7B%7D%0A%20%0Ablockquote%0A%20%20%20%20%7B%20%0A%20%20%20%20font%2Dstyle%3A%20italic%3B%0A%20%20%20%20%7D%0A%20%0Ali%20%2F%2A%20All%20list%20items%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Ali%20%3E%20p%20%2F%2A%20Loosely%20spaced%20list%20item%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20margin%2Dtop%3A%201em%3B%20%2F%2A%20IE%3A%20lack%20of%20space%20above%20a%20%3Cli%3E%20when%20the%20item%20is%20inside%20a%20%3Cp%3E%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Aul%20%2F%2A%20Whole%20unordered%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Aul%20li%20%2F%2A%20Unordered%20list%20item%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Aol%20%2F%2A%20Whole%20ordered%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Aol%20li%20%2F%2A%20Ordered%20list%20item%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Ahr%20%7B%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Some%20span%20elements%20%2D%2D%2D%20%2A%2F%0A%20%0Asub%20%2F%2A%20Subscripts%2E%20Pandoc%3A%20H%7E2%7EO%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Asup%20%2F%2A%20Superscripts%2E%20Pandoc%3A%20The%202%5End%5E%20try%2E%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Aem%20%2F%2A%20Emphasis%2E%20Markdown%3A%20%2Aemphasis%2A%20or%20%5Femphasis%5F%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Aem%20%3E%20em%20%2F%2A%20Emphasis%20within%20emphasis%3A%20%2AThis%20is%20all%20%2Aemphasized%2A%20except%20that%2A%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20font%2Dstyle%3A%20normal%3B%0A%20%20%20%20%7D%0A%20%0Astrong%20%2F%2A%20Markdown%20%2A%2Astrong%2A%2A%20or%20%5F%5Fstrong%5F%5F%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Links%20%28anchors%29%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aa%20%2F%2A%20All%20links%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Keep%20links%20clean%2E%20On%20screen%2C%20they%20are%20colored%3B%20in%20print%2C%20they%20do%20nothing%20anyway%2E%20%2A%2F%0A%20%20%20%20text%2Ddecoration%3A%20none%3B%0A%20%20%20%20%7D%0A%20%0A%40media%20screen%0A%20%20%20%20%7B%0A%20%20%20%20a%3Ahover%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20On%20hover%2C%20we%20indicate%20a%20bit%20more%20that%20it%20is%20a%20link%2E%20%2A%2F%0A%20%20%20%20%20%20%20%20text%2Ddecoration%3A%20underline%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20a%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20In%20print%2C%20a%20colored%20link%20is%20useless%2C%20so%20un%2Dstyle%20it%2E%20%2A%2F%0A%20%20%20%20%20%20%20%20color%3A%20black%3B%0A%20%20%20%20%20%20%20%20background%3A%20transparent%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20a%5Bhref%5E%3D%22http%3A%2F%2F%22%5D%3Aafter%2C%20a%5Bhref%5E%3D%22https%3A%2F%2F%22%5D%3Aafter%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20However%2C%20links%20that%20go%20somewhere%20else%2C%20might%20be%20useful%20to%20the%20reader%2C%0A%20%20%20%20%20%20%20%20%20%20%20so%20for%20http%20and%20https%20links%2C%20print%20the%20URL%20after%20what%20was%20the%20link%20%0A%20%20%20%20%20%20%20%20%20%20%20text%20in%20parens%0A%20%20%20%20%20%20%20%20%2A%2F%0A%20%20%20%20%20%20%20%20content%3A%20%22%20%28%22%20attr%28href%29%20%22%29%20%22%3B%0A%20%20%20%20%20%20%20%20font%2Dsize%3A%2090%25%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Images%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aimg%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Let%20it%20be%20inline%20left%2Fright%20where%20it%20wants%20to%20be%2C%20but%20verticality%20make%20%0A%20%20%20%20%20%20%20it%20in%20the%20middle%20to%20look%20nicer%2C%20but%20opinions%20differ%2C%20and%20if%20in%20a%20multi%2Dline%20%0A%20%20%20%20%20%20%20paragraph%2C%20it%20might%20not%20be%20so%20great%2E%20%0A%20%20%20%20%2A%2F%0A%20%20%20%20vertical%2Dalign%3A%20middle%3B%0A%20%20%20%20%7D%0A%20%0Adiv%2Efigure%20%2F%2A%20Pandoc%20figure%2Dstyle%20image%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Center%20the%20image%20and%20caption%20%2A%2F%0A%20%20%20%20margin%2Dleft%3A%20auto%3B%0A%20%20%20%20margin%2Dright%3A%20auto%3B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20font%2Dstyle%3A%20italic%3B%0A%20%20%20%20%7D%0A%20%0Ap%2Ecaption%20%2F%2A%20Pandoc%20figure%2Dstyle%20caption%20within%20div%2Efigure%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Inherits%20div%2Efigure%20props%20by%20default%20%2A%2F%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Code%20blocks%20and%20spans%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Apre%2C%20code%20%0A%20%20%20%20%7B%0A%20%20%20%20background%2Dcolor%3A%20%23fdf7ee%3B%0A%20%20%20%20%2F%2A%20BEGIN%20word%20wrap%20%2A%2F%0A%20%20%20%20%2F%2A%20Need%20all%20the%20following%20to%20word%20wrap%20instead%20of%20scroll%20box%20%2A%2F%0A%20%20%20%20%2F%2A%20This%20will%20override%20the%20overflow%3Aauto%20if%20present%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20pre%2Dwrap%3B%20%2F%2A%20css%2D3%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20%2Dmoz%2Dpre%2Dwrap%20%21important%3B%20%2F%2A%20Mozilla%2C%20since%201999%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20%2Dpre%2Dwrap%3B%20%2F%2A%20Opera%204%2D6%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20%2Do%2Dpre%2Dwrap%3B%20%2F%2A%20Opera%207%20%2A%2F%0A%20%20%20%20word%2Dwrap%3A%20break%2Dword%3B%20%2F%2A%20Internet%20Explorer%205%2E5%2B%20%2A%2F%0A%20%20%20%20%2F%2A%20END%20word%20wrap%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Apre%20%2F%2A%20Code%20blocks%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Distinguish%20pre%20blocks%20from%20other%20text%20by%20more%20than%20the%20font%20with%20a%20background%20tint%2E%20%2A%2F%0A%20%20%20%20padding%3A%200%2E5em%3B%20%2F%2A%20Since%20we%20have%20a%20background%20color%20%2A%2F%0A%20%20%20%20border%2Dradius%3A%205px%3B%20%2F%2A%20Softens%20it%20%2A%2F%0A%20%20%20%20%2F%2A%20Give%20it%20a%20some%20definition%20%2A%2F%0A%20%20%20%20border%3A%201px%20solid%20%23aaa%3B%0A%20%20%20%20%2F%2A%20Set%20it%20off%20left%20and%20right%2C%20seems%20to%20look%20a%20bit%20nicer%20when%20we%20have%20a%20background%20%2A%2F%0A%20%20%20%20margin%2Dleft%3A%20%200%2E5em%3B%0A%20%20%20%20margin%2Dright%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0A%40media%20screen%0A%20%20%20%20%7B%0A%20%20%20%20pre%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20On%20screen%2C%20use%20an%20auto%20scroll%20box%20for%20long%20lines%2C%20unless%20word%2Dwrap%20is%20enabled%20%2A%2F%0A%20%20%20%20%20%20%20%20white%2Dspace%3A%20pre%3B%0A%20%20%20%20%20%20%20%20overflow%3A%20auto%3B%0A%20%20%20%20%20%20%20%20%2F%2A%20Dotted%20looks%20better%20on%20screen%20and%20solid%20seems%20to%20print%20better%2E%20%2A%2F%0A%20%20%20%20%20%20%20%20border%3A%201px%20dotted%20%23777%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0Acode%20%2F%2A%20All%20inline%20code%20spans%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%2F%2A%20Code%20spans%20in%20paragraphs%20and%20tight%20lists%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Pad%20a%20little%20from%20adjacent%20text%20%2A%2F%0A%20%20%20%20padding%2Dleft%3A%20%202px%3B%0A%20%20%20%20padding%2Dright%3A%202px%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0Ali%20%3E%20p%20code%20%2F%2A%20Code%20span%20in%20a%20loose%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20We%20have%20room%20for%20some%20more%20background%20color%20above%20and%20below%20%2A%2F%0A%20%20%20%20padding%3A%202px%3B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Math%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aspan%2Emath%20%2F%2A%20Pandoc%20inline%20math%20default%20and%20%2D%2Djsmath%20inline%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Tried%20font%2Dstyle%3Aitalic%20here%2C%20and%20it%20messed%20up%20MathJax%20rendering%20in%20some%20browsers%2E%20Maybe%20don%27t%20mess%20with%20at%20all%2E%20%2A%2F%0A%20%20%20%20%7D%0A%20%20%20%20%0Adiv%2Emath%20%2F%2A%20Pandoc%20%2D%2Djsmath%20display%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Aspan%2ELaTeX%20%2F%2A%20Pandoc%20%2D%2Dlatexmathml%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%20%0A%20%0Aeq%20%2F%2A%20Pandoc%20%2D%2Dgladtex%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%20%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Tables%20%2D%2D%2D%2D%20%2A%2F%0A%20%0A%2F%2A%20%20A%20clean%20textbook%2Dlike%20style%20with%20horizontal%20lines%20above%20and%20below%20and%20under%20%0A%20%20%20%20the%20header%2E%20Rows%20highlight%20on%20hover%20to%20help%20scanning%20the%20table%20on%20screen%2E%0A%2A%2F%0A%20%0Atable%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dcollapse%3A%20collapse%3B%0A%20%20%20%20border%2Dspacing%3A%200%3B%20%2F%2A%20IE%206%20%2A%2F%0A%20%0A%20%20%20%20border%2Dbottom%3A%202pt%20solid%20%23000%3B%0A%20%20%20%20border%2Dtop%3A%202pt%20solid%20%23000%3B%20%2F%2A%20The%20caption%20on%20top%20will%20not%20have%20a%20bottom%2Dborder%20%2A%2F%0A%20%0A%20%20%20%20%2F%2A%20Center%20%2A%2F%0A%20%20%20%20margin%2Dleft%3A%20auto%3B%0A%20%20%20%20margin%2Dright%3A%20auto%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0Athead%20%2F%2A%20Entire%20table%20header%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dbottom%3A%201pt%20solid%20%23000%3B%0A%20%20%20%20background%2Dcolor%3A%20%23eee%3B%20%2F%2A%20Does%20this%20BG%20print%20well%3F%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Atr%2Eheader%20%2F%2A%20Each%20header%20row%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%20%0A%20%0Atbody%20%2F%2A%20Entire%20table%20%20body%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20Table%20body%20rows%20%2A%2F%0A%20%0Atr%20%20%7B%0A%20%20%20%20%7D%0Atr%2Eodd%3Ahover%2C%20tr%2Eeven%3Ahover%20%2F%2A%20Use%20%2Eodd%20and%20%2Eeven%20classes%20to%20avoid%20styling%20rows%20in%20other%20tables%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20background%2Dcolor%3A%20%23eee%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%2F%2A%20Odd%20and%20even%20rows%20%2A%2F%0Atr%2Eodd%20%7B%7D%0Atr%2Eeven%20%7B%7D%0A%20%0Atd%2C%20th%20%2F%2A%20Table%20cells%20and%20table%20header%20cells%20%2A%2F%0A%20%20%20%20%7B%20%0A%20%20%20%20vertical%2Dalign%3A%20top%3B%20%2F%2A%20Word%20%2A%2F%0A%20%20%20%20vertical%2Dalign%3A%20baseline%3B%20%2F%2A%20Others%20%2A%2F%0A%20%20%20%20padding%2Dleft%3A%20%20%200%2E5em%3B%0A%20%20%20%20padding%2Dright%3A%20%200%2E5em%3B%0A%20%20%20%20padding%2Dtop%3A%20%20%20%200%2E2em%3B%0A%20%20%20%20padding%2Dbottom%3A%200%2E2em%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%2F%2A%20Removes%20padding%20on%20left%20and%20right%20of%20table%20for%20a%20tight%20look%2E%20Good%20if%20thead%20has%20no%20background%20color%2A%2F%0A%2F%2A%0Atr%20td%3Alast%2Dchild%2C%20tr%20th%3Alast%2Dchild%0A%20%20%20%20%7B%0A%20%20%20%20padding%2Dright%3A%200%3B%0A%20%20%20%20%7D%0Atr%20td%3Afirst%2Dchild%2C%20tr%20th%3Afirst%2Dchild%20%0A%20%20%20%20%7B%0A%20%20%20%20padding%2Dleft%3A%200%3B%0A%20%20%20%20%7D%0A%2A%2F%0A%20%0Ath%20%2F%2A%20Table%20header%20cells%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20font%2Dweight%3A%20bold%3B%20%0A%20%20%20%20%7D%0A%20%0Atfoot%20%2F%2A%20Table%20footer%20%28what%20appears%20here%20if%20caption%20is%20on%20top%3F%29%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Acaption%20%2F%2A%20This%20is%20for%20a%20table%20caption%20tag%2C%20not%20the%20p%2Ecaption%20Pandoc%20uses%20in%20a%20div%2Efigure%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20caption%2Dside%3A%20top%3B%0A%20%20%20%20border%3A%20none%3B%0A%20%20%20%20font%2Dsize%3A%200%2E9em%3B%0A%20%20%20%20font%2Dstyle%3A%20italic%3B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20margin%2Dbottom%3A%200%2E3em%3B%20%2F%2A%20Good%20for%20when%20on%20top%20%2A%2F%0A%20%20%20%20padding%2Dbottom%3A%200%2E2em%3B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Definition%20lists%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Adl%20%2F%2A%20The%20whole%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dtop%3A%202pt%20solid%20black%3B%0A%20%20%20%20padding%2Dtop%3A%200%2E5em%3B%0A%20%20%20%20border%2Dbottom%3A%202pt%20solid%20black%3B%0A%20%20%20%20%7D%0A%20%0Adt%20%2F%2A%20Definition%20term%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20font%2Dweight%3A%20bold%3B%0A%20%20%20%20%7D%0A%20%0Add%2Bdt%20%2F%2A%202nd%20or%20greater%20term%20in%20the%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dtop%3A%201pt%20solid%20black%3B%0A%20%20%20%20padding%2Dtop%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0Add%20%2F%2A%20A%20definition%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20margin%2Dbottom%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0Add%2Bdd%20%2F%2A%202nd%20or%20greater%20definition%20of%20a%20term%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dtop%3A%201px%20solid%20black%3B%20%2F%2A%20To%20separate%20multiple%20definitions%20%2A%2F%0A%20%20%20%20%7D%0A%20%20%20%20%0A%2F%2A%20%2D%2D%2D%2D%20Footnotes%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aa%2Efootnote%2C%20a%2EfootnoteRef%20%7B%20%2F%2A%20Pandoc%2C%20MultiMarkdown%20footnote%20links%20%2A%2F%0A%20%20%20%20font%2Dsize%3A%20small%3B%20%0A%20%20%20%20vertical%2Dalign%3A%20text%2Dtop%3B%0A%7D%0A%20%0Aa%5Bhref%5E%3D%22%23fnref%22%5D%2C%20a%2Ereversefootnote%20%2F%2A%20Pandoc%2C%20MultiMarkdown%2C%20%3F%3F%20footnote%20back%20links%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20a%5Bhref%5E%3D%22%23fnref%22%5D%2C%20a%2Ereversefootnote%20%2F%2A%20Pandoc%2C%20MultiMarkdown%20%2A%2F%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20Don%27t%20display%20these%20at%20all%20in%20print%20since%20the%20arrow%20is%20only%20something%20to%20click%20on%20%2A%2F%0A%20%20%20%20%20%20%20%20display%3A%20none%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20%0Adiv%2Efootnotes%20%2F%2A%20Pandoc%20footnotes%20div%20at%20end%20of%20the%20document%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Adiv%2Efootnotes%20li%5Bid%5E%3D%22fn%22%5D%20%2F%2A%20A%20footnote%20item%20within%20that%20div%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20You%20can%20class%20stuff%20as%20%22noprint%22%20to%20not%20print%2E%20%0A%20%20%20Useful%20since%20you%20can%27t%20set%20this%20media%20conditional%20inside%20an%20HTML%20element%27s%20%0A%20%20%20style%20attribute%20%28I%20think%29%2C%20and%20you%20don%27t%20want%20to%20make%20another%20stylesheet%20that%20%0A%20%20%20imports%20this%20one%20and%20adds%20a%20class%20just%20to%20do%20this%2E%0A%2A%2F%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20%2Enoprint%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20display%3Anone%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A" rel="stylesheet" type="text/css" /> |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | <div id="header"> |
---|
13 | <h1 class="title">PacketFence installation</h1> |
---|
14 | </div> |
---|
15 | <div id="TOC"> |
---|
16 | <ul> |
---|
17 | <li><a href="#overview"><span class="toc-section-number">1</span> Overview</a></li> |
---|
18 | <li><a href="#installation"><span class="toc-section-number">2</span> Installation</a><ul> |
---|
19 | <li><a href="#os-preparation"><span class="toc-section-number">2.1</span> OS preparation</a></li> |
---|
20 | <li><a href="#install"><span class="toc-section-number">2.2</span> Install</a></li> |
---|
21 | </ul></li> |
---|
22 | <li><a href="#configuration"><span class="toc-section-number">3</span> Configuration</a><ul> |
---|
23 | <li><a href="#step-1-enforcement-type"><span class="toc-section-number">3.1</span> Step 1: Enforcement type</a></li> |
---|
24 | <li><a href="#step-2-interfaces"><span class="toc-section-number">3.2</span> Step 2: Interfaces</a></li> |
---|
25 | <li><a href="#step-3-mysql"><span class="toc-section-number">3.3</span> Step 3: mysql</a></li> |
---|
26 | <li><a href="#step-4-packetfence-config"><span class="toc-section-number">3.4</span> Step 4: PacketFence config</a></li> |
---|
27 | <li><a href="#step-5-administration"><span class="toc-section-number">3.5</span> Step 5: Administration</a></li> |
---|
28 | <li><a href="#step-6-start-the-services"><span class="toc-section-number">3.6</span> Step 6: Start the services</a></li> |
---|
29 | </ul></li> |
---|
30 | <li><a href="#verify-configuration"><span class="toc-section-number">4</span> Verify configuration</a><ul> |
---|
31 | <li><a href="#files"><span class="toc-section-number">4.1</span> Files</a></li> |
---|
32 | <li><a href="#interfaces"><span class="toc-section-number">4.2</span> Interfaces</a></li> |
---|
33 | <li><a href="#logs"><span class="toc-section-number">4.3</span> Logs</a></li> |
---|
34 | </ul></li> |
---|
35 | <li><a href="#administration-interface"><span class="toc-section-number">5</span> Administration interface</a><ul> |
---|
36 | <li><a href="#web-interface"><span class="toc-section-number">5.1</span> Web interface</a></li> |
---|
37 | <li><a href="#command-line"><span class="toc-section-number">5.2</span> Command line</a></li> |
---|
38 | </ul></li> |
---|
39 | <li><a href="#configuration-reference"><span class="toc-section-number">6</span> Configuration reference</a><ul> |
---|
40 | <li><a href="#etcnetworkinterfaces"><span class="toc-section-number">6.1</span> /etc/network/interfaces</a></li> |
---|
41 | <li><a href="#usrlocalpfconfpf.conf"><span class="toc-section-number">6.2</span> /usr/local/pf/conf/pf.conf</a></li> |
---|
42 | <li><a href="#usrlocalpfconfnetworks.conf"><span class="toc-section-number">6.3</span> /usr/local/pf/conf/networks.conf</a></li> |
---|
43 | </ul></li> |
---|
44 | </ul> |
---|
45 | </div> |
---|
46 | <h1 id="overview"><a href="#overview"><span class="header-section-number">1</span> Overview</a></h1> |
---|
47 | <p>You will install PacketFence and perform some basic configuration.</p> |
---|
48 | <p>You will be working in groups; each group has a VM onto which PacketFence will be installed.</p> |
---|
49 | <ul> |
---|
50 | <li>Group 1 has vm1.ws.nsrc.org</li> |
---|
51 | <li>Group 2 has vm2.ws.nsrc.org</li> |
---|
52 | <li>...etc</li> |
---|
53 | </ul> |
---|
54 | <h1 id="installation"><a href="#installation"><span class="header-section-number">2</span> Installation</a></h1> |
---|
55 | <p>PacketFence used to be supported only under RHEL/CentOS. It is now supported under CentOS 6, Ubuntu 12.04 LTS, and Debian 7 (Wheezy). We'll use Ubuntu.</p> |
---|
56 | <p>The full instructions are in the <a href="http://www.packetfence.org/downloads/PacketFence/doc/PacketFence_Administration_Guide-4.1.0.pdf">PacketFence Adminstration Guide</a></p> |
---|
57 | <h2 id="os-preparation"><a href="#os-preparation"><span class="header-section-number">2.1</span> OS preparation</a></h2> |
---|
58 | <p>You should start with a minimal distribution of Ubuntu 12.04 LTS. If you've installed a full server or desktop edition, there may be some packages you need to remove:</p> |
---|
59 | <pre><code># apt-get remove ufw |
---|
60 | # apt-get remove apparmor |
---|
61 | # apt-get remove resolvconf</code></pre> |
---|
62 | <p>After uninstalling resolvconf, you should edit <code>/etc/resolv.conf</code> to ensure it contains sensible settings:</p> |
---|
63 | <pre><code>search ws.nsrc.org |
---|
64 | nameserver 10.10.0.241</code></pre> |
---|
65 | <p>Ensure your system is fully up to date:</p> |
---|
66 | <pre><code># apt-get update |
---|
67 | # apt-get dist-upgrade</code></pre> |
---|
68 | <p>If a new kernel version was installed by this step then reboot.</p> |
---|
69 | <h2 id="install"><a href="#install"><span class="header-section-number">2.2</span> Install</a></h2> |
---|
70 | <p>Add the repository and package signing key, then install.</p> |
---|
71 | <pre><code># echo "deb http://inverse.ca/downloads/PacketFence/ubuntu precise precise" >/etc/apt/sources.list.d/packetfence.list |
---|
72 | # apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4 |
---|
73 | # apt-get update |
---|
74 | # apt-get install packetfence</code></pre> |
---|
75 | <p>This will install a large number of packages. Be patient!</p> |
---|
76 | <p>When installing mysql, it will ask you to set a password for the mysql administrative "root" user. Enter the class password.</p> |
---|
77 | <p>It will also set up the simple "nullmailer" mail system. It will ask for the system's mail name and the SMTP server name for sending outgoing mail. Accept the defaults.</p> |
---|
78 | <p>A number of services are started automatically from the Debian packages. You can disable them because packetfence starts its own instances.</p> |
---|
79 | <pre><code># service memcached stop |
---|
80 | # update-rc.d memcached disable |
---|
81 | # service apache2 stop |
---|
82 | # update-rc.d apache2 disable</code></pre> |
---|
83 | <p>If you intend to use inline enforcement mode, then you also need to install and build some dependencies:</p> |
---|
84 | <pre><code># apt-get install xtables-addons-source xtables-addons-common |
---|
85 | # module-assistant auto-install xtables-addons</code></pre> |
---|
86 | <p>For inline enforcement you also need to enable IP forwarding:</p> |
---|
87 | <pre><code># editor /etc/sysctl.conf |
---|
88 | ### Uncomment this line ### |
---|
89 | net.ipv4.ip_forward=1 |
---|
90 | |
---|
91 | # sysctl -p</code></pre> |
---|
92 | <p>Note: PacketFence <a href="http://www.packetfence.org/bugs/view.php?id=1145">doesn't support IPv6 yet</a> so don't enable IPv6 forwarding on inline enforcement.</p> |
---|
93 | <h1 id="configuration"><a href="#configuration"><span class="header-section-number">3</span> Configuration</a></h1> |
---|
94 | <p>Initial configuration is via a web interface. Go to <a href="https://vmX.ws.nsrc.org:1443/configurator">https://vmX.ws.nsrc.org:1443/configurator</a></p> |
---|
95 | <p>This has a self-signed certificate, so you'll have to tell your browser to accept this untrusted certificate.</p> |
---|
96 | <h2 id="step-1-enforcement-type"><a href="#step-1-enforcement-type"><span class="header-section-number">3.1</span> Step 1: Enforcement type</a></h2> |
---|
97 | <p>You now need to choose the enforcement type.</p> |
---|
98 | <ul> |
---|
99 | <li>"Inline" means that all traffic flows <em>through</em> the PacketFence box. This works with dumb network switches, but obviously the PacketFence box becomes both a bottleneck and a point of failure.</li> |
---|
100 | <li>"VLAN" means that PacketFence will control each switch port to drop it into the appropriate VLAN. When users have authenticated, they are put into a data VLAN which will give them direct access to the Internet. This mode requires fully managed edge switches.</li> |
---|
101 | </ul> |
---|
102 | <p>For this exercise, we will enable them both; ensure both boxes are ticked, then click Continue.</p> |
---|
103 | <p>(This would be useful if your network has a mixture of managed and dumb switches, although is more tricky to keep track of all the VLANs)</p> |
---|
104 | <h2 id="step-2-interfaces"><a href="#step-2-interfaces"><span class="header-section-number">3.2</span> Step 2: Interfaces</a></h2> |
---|
105 | <p>You now need to define interfaces.</p> |
---|
106 | <p>In Inline mode, you need at least a Management interface and an Inline interface. The Management interface is where you connect to the PacketFence box to manage it, over SSH or HTTPS; and the Inline interface is the one which acts as default gateway for your internal network.</p> |
---|
107 | <p>In VLAN mode, you need Management, Isolation and Registration interfaces.</p> |
---|
108 | <p>Since we have enabled both, we will need Management, Inline, Isolation and Registration interfaces.</p> |
---|
109 | <p>Since our PacketFence VM has only one interface (eth0), we will create some VLAN subinterfaces.</p> |
---|
110 | <ul> |
---|
111 | <li>Click on eth0. Set the type to "Management". Click Save.</li> |
---|
112 | <li>At the end of eth0, click Add VLAN |
---|
113 | <ul> |
---|
114 | <li>Vlan ID: X5 (where X is your group number, e.g. group 2 => vlan 25)</li> |
---|
115 | <li>IP address: 10.X.5.1 (where X is your group number)</li> |
---|
116 | <li>Netmask: leave at 255.255.255.0</li> |
---|
117 | <li>Type: Registration</li> |
---|
118 | <li>Save</li> |
---|
119 | </ul></li> |
---|
120 | <li>At the end of eth0, click Add VLAN |
---|
121 | <ul> |
---|
122 | <li>Vlan ID: X6</li> |
---|
123 | <li>IP address: 10.X.6.1</li> |
---|
124 | <li>Netmask: leave at 255.255.255.0</li> |
---|
125 | <li>Type: Isolation</li> |
---|
126 | <li>Save</li> |
---|
127 | </ul></li> |
---|
128 | <li>If your machine has an eth1 interface, then click on eth1, set the type to "Inline", DNS 10.10.0.241, and click Save.</li> |
---|
129 | <li>Otherwise, if your machine does not have an eth1 interface, then click Add VLAN next to eth0 again, and set the following: |
---|
130 | <ul> |
---|
131 | <li>Vlan ID: X1</li> |
---|
132 | <li>IP address: 10.X.1.254</li> |
---|
133 | <li>Netmask: leave at 255.255.255.0</li> |
---|
134 | <li>Type: Inline</li> |
---|
135 | <li>DNS: 10.10.0.241 (the IP address of the production DNS server)</li> |
---|
136 | <li>Save</li> |
---|
137 | </ul></li> |
---|
138 | </ul> |
---|
139 | <p>We won't have any client devices on vlans X5 and X6. However these interfaces will receive forwarded DHCP and DNS queries from the VLANs which are being managed, when using VLAN enforcement.</p> |
---|
140 | <h2 id="step-3-mysql"><a href="#step-3-mysql"><span class="header-section-number">3.3</span> Step 3: mysql</a></h2> |
---|
141 | <p>Now you need to give the credentials for Mysql.</p> |
---|
142 | <p>Under <strong>Enter the MySQL root account credentials</strong>, type the root password you gave before.</p> |
---|
143 | <p>If you are not sure what the root password is, enter the password you think it might be and click the "Test" button.</p> |
---|
144 | <p>Under <strong>Create the database</strong>, leave the name as "pf" and then click `Create database and tables"</p> |
---|
145 | <p>Under <strong>Create a PacketFence account</strong>, leave the username as 'pf' and enter the class password twice, and click "Create user"</p> |
---|
146 | <p>Then click Continue.</p> |
---|
147 | <h2 id="step-4-packetfence-config"><a href="#step-4-packetfence-config"><span class="header-section-number">3.4</span> Step 4: PacketFence config</a></h2> |
---|
148 | <p>Domain: ws.nsrc.org</p> |
---|
149 | <p>Hostname: enter your hostname (vmX) without the domain</p> |
---|
150 | <p>DHCP servers: 10.10.0.241</p> |
---|
151 | <p>Alerting: enter your E-mail address</p> |
---|
152 | <h2 id="step-5-administration"><a href="#step-5-administration"><span class="header-section-number">3.5</span> Step 5: Administration</a></h2> |
---|
153 | <p>Enter the class password twice, then click "Modify the password". This sets up the default admin account for accessing the web interface.</p> |
---|
154 | <p>Then click Continue.</p> |
---|
155 | <h2 id="step-6-start-the-services"><a href="#step-6-start-the-services"><span class="header-section-number">3.6</span> Step 6: Start the services</a></h2> |
---|
156 | <p>Click "Start PacketFence" at the bottom of the screen. All services will change to orange and say "Starting".</p> |
---|
157 | <p>If they don't update after a minute, click "Start PacketFence" again to refresh. When everything is working, you will get a "Congratulations!" message, with a button "Visit Administration Interface Now!" which you should click.</p> |
---|
158 | <p>If not all daemons start successfully, the next section shows you where to find the log files.</p> |
---|
159 | <h1 id="verify-configuration"><a href="#verify-configuration"><span class="header-section-number">4</span> Verify configuration</a></h1> |
---|
160 | <h2 id="files"><a href="#files"><span class="header-section-number">4.1</span> Files</a></h2> |
---|
161 | <p>All PacketFence's files are stored under <code>/usr/local/pf</code>. The configuration files are under <code>/usr/local/pf/conf/</code>, and the top-level one is <code>/usr/local/pf/conf/pf.conf</code></p> |
---|
162 | <p>Look in this file (e.g. using <code>less</code> or <code>cat</code>) and you'll see the interfaces you defined in the web interface.</p> |
---|
163 | <p>Some temporary configuration files are written out for the daemons from templates. For example, to see the active dhcpd config file:</p> |
---|
164 | <pre><code># cd /usr/local/pf |
---|
165 | # cat var/conf/dhcpd.conf</code></pre> |
---|
166 | <h2 id="interfaces"><a href="#interfaces"><span class="header-section-number">4.2</span> Interfaces</a></h2> |
---|
167 | <p>At a shell prompt, type</p> |
---|
168 | <pre><code># ifconfig -a</code></pre> |
---|
169 | <p>You should see that PacketFence has created the VLAN interfaces eth0.X1, eth0.X5 and eth0.X6 that you defined in the web interface (and which are also defined in <code>pf.conf</code>)</p> |
---|
170 | <p>Note also that it has updated <code>/etc/network/interfaces</code></p> |
---|
171 | <h2 id="logs"><a href="#logs"><span class="header-section-number">4.3</span> Logs</a></h2> |
---|
172 | <p>Have a look at the log files (<code>-t</code> shows ordered by modification time, and <code>-r</code> reverses the order so that the newest files are at the end)</p> |
---|
173 | <pre><code># cd /usr/local/pf/logs |
---|
174 | # ls -lrt</code></pre> |
---|
175 | <p>These are the places to look for errors. For errors in the admin interface, try:</p> |
---|
176 | <pre><code># tail admin_error_log</code></pre> |
---|
177 | <p>For example, an error like this shows that you don't have enough RAM allocated to your VM:</p> |
---|
178 | <pre><code>[Mon Mar 24 18:03:45 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process</code></pre> |
---|
179 | <p>(The PacketFence documentation says you should have at least 4GB; for demo purposes a VM with 3GB may be sufficient)</p> |
---|
180 | <h1 id="administration-interface"><a href="#administration-interface"><span class="header-section-number">5</span> Administration interface</a></h1> |
---|
181 | <h2 id="web-interface"><a href="#web-interface"><span class="header-section-number">5.1</span> Web interface</a></h2> |
---|
182 | <p>The administration interface can be reached at <a href="https://vmX.ws.nsrc.org:1443/">https://vmX.ws.nsrc.org:1443/</a></p> |
---|
183 | <p>Login using "admin" and the class password.</p> |
---|
184 | <p>In the "network" section you can see the configuration options for "interfaces" (i.e. the local interfaces on the PacketFence server you already configured) and "switches" where you will enter the details of the managed switches you will use for VLAN enforcement.</p> |
---|
185 | <h2 id="command-line"><a href="#command-line"><span class="header-section-number">5.2</span> Command line</a></h2> |
---|
186 | <p>Administration can also be done using command-line tools. For example, here is how to list all the services which might be running, and to check the status of one of them:</p> |
---|
187 | <pre><code># cd /usr/local/pf |
---|
188 | # bin/pfcmd service |
---|
189 | # bin/pfcmd service pfsetvlan status</code></pre> |
---|
190 | <h1 id="configuration-reference"><a href="#configuration-reference"><span class="header-section-number">6</span> Configuration reference</a></h1> |
---|
191 | <p>After configuration, you should have config files like this (where X is your group number)</p> |
---|
192 | <h2 id="etcnetworkinterfaces"><a href="#etcnetworkinterfaces"><span class="header-section-number">6.1</span> /etc/network/interfaces</a></h2> |
---|
193 | <pre><code>auto lo |
---|
194 | iface lo inet loopback |
---|
195 | |
---|
196 | auto eth0 |
---|
197 | iface eth0 inet static |
---|
198 | address 10.10.0.X |
---|
199 | netmask 255.255.255.0 |
---|
200 | gateway 10.10.0.254 |
---|
201 | #post-up ethtool --offload eth0 tx off |
---|
202 | |
---|
203 | auto eth0.X5 |
---|
204 | iface eth0.X5 inet static |
---|
205 | address 10.X.5.1 |
---|
206 | netmask 255.255.255.0 |
---|
207 | |
---|
208 | auto eth0.X6 |
---|
209 | iface eth0.X6 inet static |
---|
210 | address 10.X.6.1 |
---|
211 | netmask 255.255.255.0</code></pre> |
---|
212 | <h2 id="usrlocalpfconfpf.conf"><a href="#usrlocalpfconfpf.conf"><span class="header-section-number">6.2</span> /usr/local/pf/conf/pf.conf</a></h2> |
---|
213 | <pre><code>[general] |
---|
214 | # |
---|
215 | # general.domain |
---|
216 | # |
---|
217 | # Domain name of PacketFence system. |
---|
218 | domain=ws.nsrc.org |
---|
219 | # |
---|
220 | # general.hostname |
---|
221 | # |
---|
222 | # Hostname of PacketFence system. This is concatenated with the domain in Apache rewriting rules and therefore must be resolvable by clients. |
---|
223 | hostname=vmX |
---|
224 | # |
---|
225 | # general.dhcpservers |
---|
226 | # |
---|
227 | # Comma-delimited list of DHCP servers. Passthroughs are created to allow DHCP transactions from even "trapped" nodes. |
---|
228 | dhcpservers=10.10.0.241 |
---|
229 | |
---|
230 | [alerting] |
---|
231 | # |
---|
232 | # alerting.emailaddr |
---|
233 | # |
---|
234 | # Email address to which notifications of rogue DHCP servers, violations with an action of "email", or any other |
---|
235 | # PacketFence-related message goes to. |
---|
236 | emailaddr=yourname@example.com |
---|
237 | |
---|
238 | [database] |
---|
239 | # |
---|
240 | # database.pass |
---|
241 | # |
---|
242 | # Password for the mysql database used by PacketFence. |
---|
243 | pass=<class password> |
---|
244 | |
---|
245 | [interface eth0.X5] |
---|
246 | enforcement=vlan |
---|
247 | ip=10.X.5.1 |
---|
248 | type=internal |
---|
249 | mask=255.255.255.0 |
---|
250 | |
---|
251 | [interface eth0.X6] |
---|
252 | enforcement=vlan |
---|
253 | ip=10.X.6.1 |
---|
254 | type=internal |
---|
255 | mask=255.255.255.0 |
---|
256 | |
---|
257 | [interface eth0] |
---|
258 | ip=10.10.0.10 |
---|
259 | type=management |
---|
260 | mask=255.255.255.0</code></pre> |
---|
261 | <h2 id="usrlocalpfconfnetworks.conf"><a href="#usrlocalpfconfnetworks.conf"><span class="header-section-number">6.3</span> /usr/local/pf/conf/networks.conf</a></h2> |
---|
262 | <pre><code>[10.X.5.0] |
---|
263 | dns=10.X.5.1 |
---|
264 | dhcp_start=10.X.5.10 |
---|
265 | gateway=10.X.5.254 |
---|
266 | domain-name=vlan-registration.ws.nsrc.org |
---|
267 | named=enabled |
---|
268 | dhcp_max_lease_time=30 |
---|
269 | dhcpd=enabled |
---|
270 | type=vlan-registration |
---|
271 | netmask=255.255.255.0 |
---|
272 | dhcp_end=10.X.5.246 |
---|
273 | dhcp_default_lease_time=30 |
---|
274 | |
---|
275 | [10.X.6.0] |
---|
276 | dns=10.X.6.1 |
---|
277 | dhcp_start=10.X.6.10 |
---|
278 | gateway=10.X.6.254 |
---|
279 | domain-name=vlan-isolation.ws.nsrc.org |
---|
280 | named=enabled |
---|
281 | dhcp_max_lease_time=30 |
---|
282 | dhcpd=enabled |
---|
283 | type=vlan-isolation |
---|
284 | netmask=255.255.255.0 |
---|
285 | dhcp_end=10.X.6.246 |
---|
286 | dhcp_default_lease_time=30</code></pre> |
---|
287 | </body> |
---|
288 | </html> |
---|