├── .gitignore
├── README.txt
├── about.php
├── autherror.html
├── bg-blank.jpg
├── bg.jpg
├── included
├── icon
│ └── idea.png
└── psd
│ ├── help.psd
│ ├── lock.psd
│ ├── login-bg.psd
│ └── main-login.psd
├── login-icon.png
├── login.php
├── portal.php
├── register
├── SMTPclass.php
├── SMTPconfig.php
└── wifi-register.php
├── screenshots
├── about.png
├── agree.png
├── login.png
├── registered.png
└── signup.png
├── signup-icon.png
├── signup.php
├── style.css
├── success.php
└── wifi.png
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .gitignore
--------------------------------------------------------------------------------
/README.txt:
--------------------------------------------------------------------------------
1 | What is this?
2 | - This is my captive portal implementation for free internet, users can sign in as a guest user within certain times of the day or they can register an account to get on a WPA-EAP vlan that bypasses portal entirely.
3 | - Registration is very simple, users provide email and desired username. We only check to see if the user already exists, if not we generate a password for the user thats easy to remember and email it to them and the WiFi Admin.
4 |
5 | - While not horribly robust this would make a fine framework to start off on a specific user signup needs.
6 |
7 | - It uses a very simple template, new pages can be added by creating a new pagename.php file and uploading it.
8 |
9 | Requires: pfSense 2.x, Working Radius Server w/mySQL Backend & PHP (I am running externally),
10 | - Guest user account with Password attribute instead of Cleartext Password.. this wont allow it access to 802.11x
11 | - WiFi AP Capable of VLAN Tagging SSID's
12 |
13 | Very Dirty Instructions below, just read the code its well documented.
14 |
15 | pfSense Install Instructions:
16 | - Upload all .php, .png and style.css through the pfSense Captive Portal GUI
17 | - Edit portal.php to your liking and upload it as the main portal page
18 | - Upload autherror.html as your authentication error page
19 | - Allow passthrough access to registration server.
20 |
21 | Remote LAMP Server w/Radius:
22 | - Configure SSL if Needed
23 | - Upload contents of register folder somewhere WiFi users can access
24 | - Edit wifi-register.php to include mysql login info and smtp server info
25 |
26 | by: Ryan Hunt
27 | license: CC-BY-SA
28 |
--------------------------------------------------------------------------------
/about.php:
--------------------------------------------------------------------------------
1 | if ($register_token === NULL) { die("Permission denied!"); } /* Disable Direct Access */ ?>
2 |
3 |
4 |
Free Public WiFi
5 |
Fast & Free Wireless Internet, avilable for the Eastridge Community and its visitors
6 |
Guests | Users |
7 |
8 |
9 | - Sunday-Thursday Offline @ 11:30PM
10 | - Friday & Saturday All Day access
11 | - No Signup Required
12 | - Unencrypted WiFi
13 | - Web/Mail/VPN & Chat Services
14 | - 375KB/s Download - 75KB/s Upload
15 | - Relogin every 2h
16 | |
17 |
18 |
19 | - Free & Instant Signup
20 | - Encrypted WiFi
21 | - Online 24/7/365
22 | - No Client Restrictions
23 | - Dynamic Port Forwarding (uPnP)
24 | - 1.5MB/s Download - 150KB/s Upload
25 | - Login once, bypass portal
26 |
27 | |
28 |
29 |
User accounts are free and setup in an instant; you can then reconnect to the Secure Public WiFi network using the same login credentials you setup. Remember that login as it'll let you bypass this portal and access the internet with less restrictions.
30 |
No Signup is Required, feel free to use the Open Public Wifi Network, however your access will be limited
31 |
We are always eager to expand our coverage; if your a local home owner and would like to run a small outdoor access point please contact me.
32 |
33 |
34 |
--------------------------------------------------------------------------------
/autherror.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
3 |
4 |
13 |
14 |
15 | Please Carefully read these terms and condition before accessing this wifi hotspot. If you continue to use this free service to access the Internet, it confers that you have read and agree to the terms of usage
16 | outlined
17 |
18 |
WARNING: This Wireless Connection may not be encrypted, it is up to you to employ encryption if nessicary.. We urge you to signup for a user account and join the Secure Public Wifi network where your connection is secure from local eavesdroping.
19 |
20 | Terms of Service:
21 | The terms and conditions of this Agreement shall govern the relationship between you ("user") and |nayr|NETworks| (A privately run independent, non-commercial, non-profit project not in any way affiliated with the
22 | Eastridge Community, its Board, its members, or other unit owners).
23 |
24 |
25 | |nayr|NETworks| public wifi is a freely accessible Internet Hotspot. By connecting to the |nayr|NETworks| Public WiFI to access wireless internet, you agree to be bound by this Agreement and to use the hotspot in compliance with
26 | this Agreement. This page may be periodicly revised, edited, or updated and you are bound by any changes made.
27 |
28 |
29 | Access speeds to the Internet are not guaranteed by the owner of this HotSpot. Several factors,including, but not limited to, environmental conditions, type of wireless network card used, distance from the HotSpot and type of
30 | antenna used, number of users accessing this service at any given time, and overall Internet traffic will effect your actual access speed.
31 |
32 |
33 |
34 | Disclaimer Of Limitation Of Liability
35 |
36 |
37 | A CONTENT FILTER HAS BEEN USED TO PROHIBIT USERS FROM ACCESSING OFFENSIVE AND ILLEGAL MATERIAL. YOU ASSUME FULL RESPONSIBILITY AND RISK FOR USE OF THIS HOTSPOT AND THE INTERNET. ATTEMPTS TO BYPASS THE FILTER TO ACCESS ILLEGAL
38 | OR OFFENSIVE SITES CONTRAVINES THIS AGREEMENT. THE OWNER OF THIS HOTSPOT DOES NOT WARRANT THAT THE SERVICES WILL BE UNINTERRUPTED, ERROR-FREE, OR FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. YOU AS THE USER EXPRESSLY
39 | ACKNOWLEDGE THAT THERE ARE AND ASSUMES ALL RESPONSIBILITY RELATED TO THE SECURITY, PRIVACY AND CONFIDENTIALITY RISKS INHERENT IN WIRELESS COMMUNICATIONS AND TECHNOLOGY AND THE HOTSPOT OWNER DOES NOT MAKE ANY ASSURANCES RELATING
40 | TO SUCH RISKS. THE HOTSPOT OWNER IS NOT LIABLE FOR ANY COSTS OR DAMAGES ARISING DIRECTLY OR INDIRECTLY FROM YOUR USE OF THIS HOTSPOT OR THE INTERNET INCLUDING ANY INDIRECT, INCIDENTAL, EXEMPLARY, MULTIPLE, SPECIAL, PUNITIVE OR
41 | CONSEQUENTIAL DAMAGES.
42 |
43 |
44 |
45 | Acceptable Use Policy
46 |
47 |
48 | The owner of this HotSpot will fully cooperate with legal authorities and/or third parties where there is suspicion or investigation in this HotSpot's involvement in any alleged crime or civil wrong doing.
49 |
50 |
51 | The following are specific examples of violations of this Acceptable Use Policy.
52 |
53 |
54 | - uploading or posting material in any fashion including E-Mail that is illegal, threatens anyone or any entity(agencies), is abusive, threatening, harassing, defamatory, obcene, violates another's privacy, libelous, or is
55 | obejectional racially or ethnically. Using this HotSpot to access Porn, and uploading or downloading porn is strictly prohibited
56 |
57 |
58 | - using this service to stalk anyone or access chatrooms or forums for the purpose of deceiving a minor for sexual exploitation.
59 |
60 |
61 | - using this service to committ fraud and forgery in any form.
62 |
63 |
64 | - using this service for illegal hacking activities which include, but are not limited to: distibution of trojans, viruses, or worms, using the HotSpot for DDOS attacks(distributed denial of service attacks), scanning ports,
65 | and hacking into or monitoring another's system or internet connection without their consent or authorization.
66 |
67 |
68 | - using this service to send spam in any form to anyone.
69 |
70 |
71 | If you do not agree with the terms of usage, you are asked to disconnect from this Hotspot as continued use of this Hotspot confers that you have read and fully agree to the terms of usage. Since free access of this HotSpot
72 | does not justify illegal use of the HotSpot by law, you will be held fully responsible and legally liable should you choose to violate the terms of usage and illegally use this Hotspot.
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/portal.php:
--------------------------------------------------------------------------------
1 |
2 | // Captive Portal Pages
3 | // By: Ryan Hunt