Need pfSense captive portal tutorial—not sure, where to put HTML code
-
I am a bit perplexed as to where and how to configure my captive portal with HTML code. Is there a tutorial on how to set one up somewhere?
-
As far as the logon, failed logon and logout pages go, you set those in the captive portal itself:
- Navigate to Services/Captive Portal/ "select a portal and click the edit pencil icon"
- Scroll down and check the "Use custom captive portal page" option
- You can start by downloading the Portal Page Contents (login page) by clicking the download button. That will provide you with a place and example from which to start.
- Any images or other files you want to link in your HTML can be uploaded under the "File Manager" tab at the top of the specific Captive Portal you are editing.
- Look under var/etc for some of the custom captive portal files.
- I use usr/local/captiveportal for my other custom files. This is also where you will find the index.php and logout.php files that teh portal uses. Leave this code alone until you understand it.
-
@EDaleH: Thank you very much! The key for me was to check “Enable to use a custom captive portal login page.” Without that, I could not get a captive portal to appear. Now, I don’t know, why, but I won’t have time to investigate that.
-
@DominikHoffmann said in Need pfSense captive portal tutorial—not sure, where to put HTML code:
The key for me was to check “Enable to use a custom captive portal login page.” Without that, I could not get a captive portal to appear.
This :
option doesn't have to be check.
If it isn't, the default login, build-in, page will be sued.