From: jdegraeve Date: Wed, 14 Jun 2006 08:11:15 +0000 (+0000) Subject: - add PfSense ideas (slighty different implemented): X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57dbb677fe11aa167321d2195b020cb9e3e8569c;p=m0n0chwall.git - add PfSense ideas (slighty different implemented): * Import CP SSL idea from PfSense: Redirect both HTTP and HTTPS to the Captive Portal keeping in mind a SSL error (cert mismatch) * Add preliminary support for CP WPA and PPPoE pass-through git-svn-id: https://svn.m0n0.ch/wall/trunk@145 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- diff --git a/CHANGELOG b/CHANGELOG index 65651eb..c150cb7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,14 @@ $Id$ *** Note: Please add new entries to the top of this file. *** ------------------------------------------------------------------------------- +1.23b2 +------ + +- changes in Captive portal (jdegraeve): + - add PfSense ideas (slighty different implemented): + * Import CP SSL idea from PfSense: Redirect both HTTP and HTTPS to the Captive Portal keeping in mind a SSL error (cert mismatch) + * Add preliminary support for WPA and PPPoE pass-through + 1.23b1 ------ diff --git a/phpconf/inc/captiveportal.inc b/phpconf/inc/captiveportal.inc index c08693c..d1bfa67 100644 --- a/phpconf/inc/captiveportal.inc +++ b/phpconf/inc/captiveportal.inc @@ -339,6 +339,31 @@ EOD; add 1304 set 1 pass tcp from any to $cpip 8001 in add 1305 set 1 pass tcp from $cpip 8001 to any out +## REDIR SSL +# redirect non-authenticated clients to captive portal on ssl +add 19900 set 1 fwd 127.0.0.1,8001 tcp from any to any 443 in + +# let the responses from the captive portal webserver back out +add 19901 set 1 pass tcp from any 443 to any out + +EOD; + } + + if (isset($config['captiveportal']['pppoeaccess'])) { + $cprules .= << "autoselect", "100full" => "100BASE-TX full-duplex", "100half" => "100BASE-TX half-duplex", "10full" => "10BASE-T full-duplex", - "10half" => "10BASE-T half-duplex"); + "10half" => "10BASE-T half-duplex", "1000full" => "1000BASE-TX full-duplex"); /* platforms that support firmware updating */ $fwupplatforms = array('net45xx', 'net48xx', 'generic-pc', 'wrap');