SlideShare a Scribd company logo
1 of 3
Download to read offline
FreeBSD Wireless Captive Portal
                                     Written by: Justin Wilde

Every IS and CS major should have their own server that they maintain and administrate.
The problem comes in choosing a platform that will have both a practical application and yet
still allow the administrator to continue learning. A UNIX based router is one such solution.
It is a piece of hardware you can interact and learn with daily. A variety of useful tools will
be at your finger tips from web caching to firewall rule creation.

Here are a few other advantages of building your own BSD router:
        Upgradeable and repairable
        More robust and adaptable
        Hands on experience with a Unix based system
        Added Security

What the future holds for a Unix/Linux based system is in large part only limited by the
user’s skill and imagination. In this tutorial we will be using pfSense, a distribution based on
FreeBSD 6.2.

The server will act primarily as a captive portal, wireless router, and firewall. For those not
familiar with the terminology, a captive portal reroutes all internet access requests to an
authentication page. Once the user has authenticated, they can browse the web freely until
their session ends, or they logout. This is just one of several different roles the system will
be capable of taking.

Many of the components have been removed to allow use with embedded devices, and to
increase the overall performance. Despite this, the FreeBSD package system (pkg_add) is
still available which keeps your possibilities open.

Recommended Hardware Items to have on hand:
Pentium 3 or equivalent AMD Processor
256 MB RAM
10 GB Hard Drive
1 Intel or 3com Network Card
1 Atheros based wireless NIC (Check compatibility at http://madwifi.org/wiki/Compatibility)
1 CD-ROM
1 PFSense Live CD
(Download at: http://pfsense.untouchable.net/downloads/pfSense-1.2-BETA-1-LiveCD-
Installer.iso.gz or visit www.pfsense.com)

You can check any piece of hardware you aren’t sure about using this resource:
http://www.freebsd.org/releases/6.1R/hardware-i386.html

Instructions
Installation
1. Start by entering you computer Bios and set your CD-Rom as the first boot device. Most
    bios will indicate which key to press to enter setup.
2. Allow approximately 1 minute for the system to load to the interface assignment screen.
3. When prompted if you want setup VLANs press the letter n and then enter on the
    keyboard.
4. Choose your LAN interface by putting in its three letter abbreviation and pressing enter.
    The abbreviations are shown above with their corresponding MAC addresses. Note that
    if you are building a wireless router, you should select the Ethernet interface here.
5. Type the abbreviated name for the interface you want to be the WAN and press enter.
6. Mark y and press enter to proceed afterwards.
7. Wait for the menu to load, and type 99 and press enter to start the install.
8. Press enter on Accept the video settings and then again on Install pfSsense
9. Select the hard drive you want to install pfSense on.
10. Press enter on Format this Disk, Use this geometry, Format (Disk name)
11. Press enter again on the Partition the Disk, Accept and create, Yes partition, and OK.
12. Now select accept and install the bootblocks, select OK, select the primary partition
    (usually the top partition), select OK, and select OK again.
13. Select Accept and create using the default swap setting unless you have a reason to make
    them larger.
14. The install process should start at this point. If for some reason it fails jump down to
    install troubleshooting.
15. After it finishes, select reboot, and make sure to take the CD out of the system.

Troubleshooting
1. Enter the bios and change your hard drive access mode to LBA.
2. When you are presented with different boot options, select the boot option with ACPI
    disabled.
Also see the pfSense wiki:
http://wiki.pfsense.com/wikka.php?wakka=BootTroubleShooting

Configuring the router
1. Wait for the router to full reboot, you should get the same menu, if you had to boot with
   ACPI disabled. You can turn it off permanently by selecting option number 8 from the
   menu and executing the following command:
         echo "hint.acpi.0.disabled=1" >> /boot/loader.conf
2. Connect your computer to the LAN interface of the router, note that most computers will
   require a crossover cable to do so. You may also use standard network cables with a
   switch or a hub to connect to the system. You should receive an address on the
   192.168.1.0/24 network.
3. Open your web browser and point it to http://192.168.1.1. The default username and
   password is admin/pfsense.
4. Using the mouse, select system, setup wizard. The system will then guide you through a
   basic setup process.

Configuring the Wireless Card:
1. As the web interface is somewhat limited, get into the pfSense terminal and execute the
   following commands:
       cd /usr/local/etc/rc.d
       vi wireless.sh
       put in the following lines:
               sysctl dev.ath.0.txantenna=1
               sysctl dev.ath.0.txantenna=1
               sysctl dev.ath.0.diversity=0
       Save the file, and use chmod to make it readable and executable. This file will be
       executed each time the system starts. It will indicate that you only have one antenna
       and you want to transmit and receive on both. You may also add this to the main
       config.xml file, but that is beyond the scope of this document. For more information
       on wireless settings visit:
       http://doc.pfsense.org/index.php/Wireless_networking_with_pfSense
2. Using the web interface again, go to WAN, Interfaces. Enter the desired setting as
   instructed.
3. Go to Interface, (assign), and swap cards making the LAN > WAN and vice versa.
4. Connect to the access point with the SSID that you indicated on the setup page.
5. To check your wireless performance, use the Status > Interfaces > LAN page. Each card
   will vary in the required configuration, work with the configuration until you aren’t
   receiving In/Out errors.

Setting up the captive portal
1. In the administration interface, go to services, then captive portal and check enable.
2. Create a login page using the form variables provided in the upload instructions within
    the web interface. This is found further down the captive portal page.
3. Upload your page to the captive portal, and enable the local user manager.
4. Add the users through the “users” tab.
5. Make sure your computer’s DNS is set to the firewall IP address.
6. Open a web browser; and you should be redirected to the page you created.
7. Try and login using the username and password you made on the portal page.
8. If all went well you will be passed through to the redirect page you specified or your
    browsers homepage.

Download the latest updates for the system at the following address:
http://snapshots.pfsense.org/FreeBSD6/RELENG_1_2/updates/

For an opportunity to help in the development of this project, the web forum is a great place
to start. It presents the opportunity to apply some of what you have learned, extend that
knowledge, and allow others to benefit from it. Visit www.pfsense.com and take a shot at
giving something back to the open source community.

More Related Content

What's hot

Netxms install guide
Netxms install guideNetxms install guide
Netxms install guideNaga Raju N
 
setting up v ms
 setting up v ms setting up v ms
setting up v mschigio
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting Aleksey Korzun
 
How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?İbrahim UÇAR
 
Run mac os x on pc
Run mac os x on pcRun mac os x on pc
Run mac os x on pcsketchout
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vmRon Morgan
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answersvivaankumar
 
Gluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGlusterFS
 
Oracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgradeOracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgradeRavi Kumar Lanke
 
Installing R H E L 5
Installing  R H E L 5Installing  R H E L 5
Installing R H E L 5monywa
 
Mac osx snow leopard 10
Mac osx snow leopard 10Mac osx snow leopard 10
Mac osx snow leopard 10sketchout
 
02.12.2012 ubuntu 12.1 server guide
02.12.2012 ubuntu 12.1 server guide02.12.2012 ubuntu 12.1 server guide
02.12.2012 ubuntu 12.1 server guideEl Alex Andrade
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installationfranbow
 

What's hot (20)

How to publish your NAS on the Internet?
How to publish your NAS on the Internet?How to publish your NAS on the Internet?
How to publish your NAS on the Internet?
 
Installing and Setup Web Server
Installing and Setup Web ServerInstalling and Setup Web Server
Installing and Setup Web Server
 
Elastix installation
Elastix installationElastix installation
Elastix installation
 
Netxms install guide
Netxms install guideNetxms install guide
Netxms install guide
 
66_pfSenseTutorial
66_pfSenseTutorial66_pfSenseTutorial
66_pfSenseTutorial
 
setting up v ms
 setting up v ms setting up v ms
setting up v ms
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
 
How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?
 
Run mac os x on pc
Run mac os x on pcRun mac os x on pc
Run mac os x on pc
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vm
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answers
 
Gluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGluster Storage Platform Installation Guide
Gluster Storage Platform Installation Guide
 
How To Install Windows 11
How To Install Windows 11How To Install Windows 11
How To Install Windows 11
 
Oracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgradeOracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgrade
 
Installing R H E L 5
Installing  R H E L 5Installing  R H E L 5
Installing R H E L 5
 
Mac osx snow leopard 10
Mac osx snow leopard 10Mac osx snow leopard 10
Mac osx snow leopard 10
 
RAC 12c
RAC 12cRAC 12c
RAC 12c
 
02.12.2012 ubuntu 12.1 server guide
02.12.2012 ubuntu 12.1 server guide02.12.2012 ubuntu 12.1 server guide
02.12.2012 ubuntu 12.1 server guide
 
Aix install via nim
Aix install via nimAix install via nim
Aix install via nim
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 

Viewers also liked

Viewers also liked (17)

Modul 0-pengantar
Modul 0-pengantarModul 0-pengantar
Modul 0-pengantar
 
Topology
TopologyTopology
Topology
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guide
 
66 pf sensetutorial
66 pf sensetutorial66 pf sensetutorial
66 pf sensetutorial
 
Nicholaus ufoakses
Nicholaus ufoaksesNicholaus ufoakses
Nicholaus ufoakses
 
11 mac address table characteristic configuration
11 mac address table characteristic configuration11 mac address table characteristic configuration
11 mac address table characteristic configuration
 
05 interface appended characteristic configuration
05 interface appended characteristic configuration05 interface appended characteristic configuration
05 interface appended characteristic configuration
 
Modul 1-instalasi
Modul 1-instalasiModul 1-instalasi
Modul 1-instalasi
 
Firewall ip filter
Firewall ip filterFirewall ip filter
Firewall ip filter
 
Megis mpls
Megis mplsMegis mpls
Megis mpls
 
Pfsense%20%20note
Pfsense%20%20notePfsense%20%20note
Pfsense%20%20note
 
Mikrotik%20 most%20wanted
Mikrotik%20 most%20wantedMikrotik%20 most%20wanted
Mikrotik%20 most%20wanted
 
Modul 1-instalasi
Modul 1-instalasiModul 1-instalasi
Modul 1-instalasi
 
9210 commissioning manual
9210 commissioning manual9210 commissioning manual
9210 commissioning manual
 
Mplsvpn seminar
Mplsvpn seminarMplsvpn seminar
Mplsvpn seminar
 
Modul 0-pengantar
Modul 0-pengantarModul 0-pengantar
Modul 0-pengantar
 
Berryman ip addressing_guide
Berryman ip addressing_guideBerryman ip addressing_guide
Berryman ip addressing_guide
 

Similar to Bsd routers

Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guidejasembo
 
18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]
18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]
18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]Krisman Tarigan
 
Motorola air defense mobile 6.1 install guide
Motorola air defense mobile 6.1 install guideMotorola air defense mobile 6.1 install guide
Motorola air defense mobile 6.1 install guideAdvantec Distribution
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy serverGreen Jb
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Dru lavigne servers-tutorial
Dru lavigne servers-tutorialDru lavigne servers-tutorial
Dru lavigne servers-tutorialDru Lavigne
 
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage ServiceQuick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage ServiceCloudian
 
It04 roshan basnet
It04 roshan basnetIt04 roshan basnet
It04 roshan basnetrosu555
 
Mikrotik
MikrotikMikrotik
Mikrotikhzcom
 
User manual of n280
User manual of n280User manual of n280
User manual of n280yogesh010
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _YvesYves Mukusa
 
Ubuntu And Parental Controls
Ubuntu And Parental ControlsUbuntu And Parental Controls
Ubuntu And Parental Controlsjasonholtzapple
 
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrhTransparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrhHichem Chehida
 

Similar to Bsd routers (20)

Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guide
 
18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]
18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]
18587936 squid-proxy-configuration-guide - [the-xp.blogspot.com]
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
Motorola air defense mobile 6.1 install guide
Motorola air defense mobile 6.1 install guideMotorola air defense mobile 6.1 install guide
Motorola air defense mobile 6.1 install guide
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy server
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Dru lavigne servers-tutorial
Dru lavigne servers-tutorialDru lavigne servers-tutorial
Dru lavigne servers-tutorial
 
Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
 
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage ServiceQuick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
 
It04 roshan basnet
It04 roshan basnetIt04 roshan basnet
It04 roshan basnet
 
Mikrotik
MikrotikMikrotik
Mikrotik
 
User manual of n280
User manual of n280User manual of n280
User manual of n280
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
 
Ubuntu And Parental Controls
Ubuntu And Parental ControlsUbuntu And Parental Controls
Ubuntu And Parental Controls
 
Project Pt1
Project Pt1Project Pt1
Project Pt1
 
snortinstallguide
snortinstallguidesnortinstallguide
snortinstallguide
 
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrhTransparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
 

More from HARRY CHAN PUTRA

More from HARRY CHAN PUTRA (18)

07 VLAN Principle and Configuration.pdf
07 VLAN Principle and Configuration.pdf07 VLAN Principle and Configuration.pdf
07 VLAN Principle and Configuration.pdf
 
12 link aggregation configuration
12 link aggregation configuration12 link aggregation configuration
12 link aggregation configuration
 
Bdcom s2508 b hardware installation manual
Bdcom s2508 b hardware installation manualBdcom s2508 b hardware installation manual
Bdcom s2508 b hardware installation manual
 
Zxdsl 9210 guide
Zxdsl 9210 guideZxdsl 9210 guide
Zxdsl 9210 guide
 
Slimsinserver2go
Slimsinserver2goSlimsinserver2go
Slimsinserver2go
 
Olivevme110usermanualid
Olivevme110usermanualidOlivevme110usermanualid
Olivevme110usermanualid
 
Modul 10 vicon
Modul 10 viconModul 10 vicon
Modul 10 vicon
 
Modul 9 pengelolaan_infra
Modul 9 pengelolaan_infraModul 9 pengelolaan_infra
Modul 9 pengelolaan_infra
 
Modul 8 vo_ip
Modul 8 vo_ipModul 8 vo_ip
Modul 8 vo_ip
 
Modul 7 infrastruktur
Modul 7 infrastrukturModul 7 infrastruktur
Modul 7 infrastruktur
 
Wireless
WirelessWireless
Wireless
 
W2k router
W2k routerW2k router
W2k router
 
Vpn gw2gw
Vpn gw2gwVpn gw2gw
Vpn gw2gw
 
Vo ip rt-rw-net
Vo ip rt-rw-netVo ip rt-rw-net
Vo ip rt-rw-net
 
Virtual host examples_-_apache_http_server
Virtual host examples_-_apache_http_serverVirtual host examples_-_apache_http_server
Virtual host examples_-_apache_http_server
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-server
 
Using linux as_a_router
Using linux as_a_routerUsing linux as_a_router
Using linux as_a_router
 
Tutorial step by_step_setting_mikrotik
Tutorial step by_step_setting_mikrotikTutorial step by_step_setting_mikrotik
Tutorial step by_step_setting_mikrotik
 

Recently uploaded

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Bsd routers

  • 1. FreeBSD Wireless Captive Portal Written by: Justin Wilde Every IS and CS major should have their own server that they maintain and administrate. The problem comes in choosing a platform that will have both a practical application and yet still allow the administrator to continue learning. A UNIX based router is one such solution. It is a piece of hardware you can interact and learn with daily. A variety of useful tools will be at your finger tips from web caching to firewall rule creation. Here are a few other advantages of building your own BSD router:  Upgradeable and repairable  More robust and adaptable  Hands on experience with a Unix based system  Added Security What the future holds for a Unix/Linux based system is in large part only limited by the user’s skill and imagination. In this tutorial we will be using pfSense, a distribution based on FreeBSD 6.2. The server will act primarily as a captive portal, wireless router, and firewall. For those not familiar with the terminology, a captive portal reroutes all internet access requests to an authentication page. Once the user has authenticated, they can browse the web freely until their session ends, or they logout. This is just one of several different roles the system will be capable of taking. Many of the components have been removed to allow use with embedded devices, and to increase the overall performance. Despite this, the FreeBSD package system (pkg_add) is still available which keeps your possibilities open. Recommended Hardware Items to have on hand: Pentium 3 or equivalent AMD Processor 256 MB RAM 10 GB Hard Drive 1 Intel or 3com Network Card 1 Atheros based wireless NIC (Check compatibility at http://madwifi.org/wiki/Compatibility) 1 CD-ROM 1 PFSense Live CD (Download at: http://pfsense.untouchable.net/downloads/pfSense-1.2-BETA-1-LiveCD- Installer.iso.gz or visit www.pfsense.com) You can check any piece of hardware you aren’t sure about using this resource: http://www.freebsd.org/releases/6.1R/hardware-i386.html Instructions
  • 2. Installation 1. Start by entering you computer Bios and set your CD-Rom as the first boot device. Most bios will indicate which key to press to enter setup. 2. Allow approximately 1 minute for the system to load to the interface assignment screen. 3. When prompted if you want setup VLANs press the letter n and then enter on the keyboard. 4. Choose your LAN interface by putting in its three letter abbreviation and pressing enter. The abbreviations are shown above with their corresponding MAC addresses. Note that if you are building a wireless router, you should select the Ethernet interface here. 5. Type the abbreviated name for the interface you want to be the WAN and press enter. 6. Mark y and press enter to proceed afterwards. 7. Wait for the menu to load, and type 99 and press enter to start the install. 8. Press enter on Accept the video settings and then again on Install pfSsense 9. Select the hard drive you want to install pfSense on. 10. Press enter on Format this Disk, Use this geometry, Format (Disk name) 11. Press enter again on the Partition the Disk, Accept and create, Yes partition, and OK. 12. Now select accept and install the bootblocks, select OK, select the primary partition (usually the top partition), select OK, and select OK again. 13. Select Accept and create using the default swap setting unless you have a reason to make them larger. 14. The install process should start at this point. If for some reason it fails jump down to install troubleshooting. 15. After it finishes, select reboot, and make sure to take the CD out of the system. Troubleshooting 1. Enter the bios and change your hard drive access mode to LBA. 2. When you are presented with different boot options, select the boot option with ACPI disabled. Also see the pfSense wiki: http://wiki.pfsense.com/wikka.php?wakka=BootTroubleShooting Configuring the router 1. Wait for the router to full reboot, you should get the same menu, if you had to boot with ACPI disabled. You can turn it off permanently by selecting option number 8 from the menu and executing the following command: echo "hint.acpi.0.disabled=1" >> /boot/loader.conf 2. Connect your computer to the LAN interface of the router, note that most computers will require a crossover cable to do so. You may also use standard network cables with a switch or a hub to connect to the system. You should receive an address on the 192.168.1.0/24 network. 3. Open your web browser and point it to http://192.168.1.1. The default username and password is admin/pfsense. 4. Using the mouse, select system, setup wizard. The system will then guide you through a basic setup process. Configuring the Wireless Card:
  • 3. 1. As the web interface is somewhat limited, get into the pfSense terminal and execute the following commands: cd /usr/local/etc/rc.d vi wireless.sh put in the following lines: sysctl dev.ath.0.txantenna=1 sysctl dev.ath.0.txantenna=1 sysctl dev.ath.0.diversity=0 Save the file, and use chmod to make it readable and executable. This file will be executed each time the system starts. It will indicate that you only have one antenna and you want to transmit and receive on both. You may also add this to the main config.xml file, but that is beyond the scope of this document. For more information on wireless settings visit: http://doc.pfsense.org/index.php/Wireless_networking_with_pfSense 2. Using the web interface again, go to WAN, Interfaces. Enter the desired setting as instructed. 3. Go to Interface, (assign), and swap cards making the LAN > WAN and vice versa. 4. Connect to the access point with the SSID that you indicated on the setup page. 5. To check your wireless performance, use the Status > Interfaces > LAN page. Each card will vary in the required configuration, work with the configuration until you aren’t receiving In/Out errors. Setting up the captive portal 1. In the administration interface, go to services, then captive portal and check enable. 2. Create a login page using the form variables provided in the upload instructions within the web interface. This is found further down the captive portal page. 3. Upload your page to the captive portal, and enable the local user manager. 4. Add the users through the “users” tab. 5. Make sure your computer’s DNS is set to the firewall IP address. 6. Open a web browser; and you should be redirected to the page you created. 7. Try and login using the username and password you made on the portal page. 8. If all went well you will be passed through to the redirect page you specified or your browsers homepage. Download the latest updates for the system at the following address: http://snapshots.pfsense.org/FreeBSD6/RELENG_1_2/updates/ For an opportunity to help in the development of this project, the web forum is a great place to start. It presents the opportunity to apply some of what you have learned, extend that knowledge, and allow others to benefit from it. Visit www.pfsense.com and take a shot at giving something back to the open source community.