*** 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
------
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 .= <<<EOD
+#PPPoE Discovery Stage
+add 1100 set 1 pass layer2 mac-type 0x8863
+#PPPoE Session Stage
+add 1100 set 1 pass layer2 mac-type 0x8864
+
+EOD;
+ }
+
+ if (isset($config['captiveportal']['wpaaccess'])) {
+ $cprules .= <<<EOD
+# Allow WPA
+add 1100 set 1 pass layer2 mac-type 0x888e
+
EOD;
}
# ... 10000-19899: rules per authenticated client go here...
# redirect non-authenticated clients to captive portal
-add 19900 set 1 fwd 127.0.0.1,8000 tcp from any to any 80 in
+add 19902 set 1 fwd 127.0.0.1,8000 tcp from any to any 80 in
# let the responses from the captive portal web server back out
-add 19901 set 1 pass tcp from any 80 to any out
+add 19903 set 1 pass tcp from any 80 to any out
# block everything else
-add 19902 set 1 deny all from any to any
+add 19904 set 1 deny all from any to any
# ... 20000-29899: layer2 block rules per authenticated client go here...
$medias = array("auto" => "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');