SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Downloaden Sie, um offline zu lesen
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.

Weitere Àhnliche Inhalte

Was ist angesagt?

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?
Thecus Technology Corp.,
 
Netxms install guide
Netxms install guideNetxms install guide
Netxms install guide
Naga Raju N
 
66_pfSenseTutorial
66_pfSenseTutorial66_pfSenseTutorial
66_pfSenseTutorial
tutorialsruby
 
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
Ron Morgan
 
Installing R H E L 5
Installing  R H E L 5Installing  R H E L 5
Installing R H E L 5
monywa
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
franbow
 

Was ist angesagt? (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
 

Andere mochten auch

Andere mochten auch (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
 

Ähnlich wie Bsd routers

Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guide
jasembo
 
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 guide
Advantec Distribution
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy server
Green Jb
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
badamisri
 
Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
openstackcisco
 
It04 roshan basnet
It04 roshan basnetIt04 roshan basnet
It04 roshan basnet
rosu555
 
Mikrotik
MikrotikMikrotik
Mikrotik
hzcom
 
User manual of n280
User manual of n280User manual of n280
User manual of n280
yogesh010
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
Yves Mukusa
 
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
Hichem Chehida
 

Ähnlich wie 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
 

Mehr von 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
 

KĂŒrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

KĂŒrzlich hochgeladen (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

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.