User Tools

Site Tools


using_iptables_and_php_to_create_a_captive_portal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
using_iptables_and_php_to_create_a_captive_portal [2020/05/29 09:49]
abeverley
using_iptables_and_php_to_create_a_captive_portal [2020/05/29 09:49] (current)
abeverley
Line 1: Line 1:
 =====Using iptables and PHP to create a captive portal===== =====Using iptables and PHP to create a captive portal=====
  
-|Please note: this page is very out of date, having been originally created several years ago. That said, the principle of the methods should still work.|+|Please note: this page is very out of date, having been originally created several years ago. That said, the principle of the methods should still work, so would provide the basis for a similar system.|
  
 There are various captive portal software packages available (both free and open source) that will allow you to setup an internet access facility that people have to logon to first. None of the packages I tried did what I wanted and they were not particularly customisable. Therefore I created my own, using a few iptables rules and PHP (along with a handful of other standard packages). This page details the steps that were taken. The key to this method as opposed to other iptables based solutions is that tracking information is removed after the user has signed up. Failure to do this will sometimes cause the user to still be redirected to your logon page even after they have signed up. There are various captive portal software packages available (both free and open source) that will allow you to setup an internet access facility that people have to logon to first. None of the packages I tried did what I wanted and they were not particularly customisable. Therefore I created my own, using a few iptables rules and PHP (along with a handful of other standard packages). This page details the steps that were taken. The key to this method as opposed to other iptables based solutions is that tracking information is removed after the user has signed up. Failure to do this will sometimes cause the user to still be redirected to your logon page even after they have signed up.
using_iptables_and_php_to_create_a_captive_portal.txt ยท Last modified: 2020/05/29 09:49 by abeverley