Skip to content

Multilingual responsive captive portal template for OPNSense firewall and routing platform

License

Notifications You must be signed in to change notification settings

mixmint/opnsense-captive-portal-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Captive Portal allows you to force authentication, or redirection to a click through page for network access. This is commonly used on hotspot networks, but is also widely used in corporate networks for an additional layer of security on wireless or Internet access.

OPNsense’s unique template manager makes setting up your own login page an easy task. At the same time it offers additional functionalities, such as:

  • URL redirection
  • Option for your own Pop-up
  • Custom Splash page

To read more about the captive portal, I suggest you have a look here: https://docs.opnsense.org/manual/captiveportal.html?highlight=captive%20portal meanwhile, I will focus on the template.

The captive portal templates that I have seen so far most often lack multilingual support. I've always wondered why it should only be in English or only in one language at all? Well, let's look below. This template supports multilingualism, checks your preferred browser language, saves a cookie with information about which language was read or which language you chose using the selector. Uses language translations saved in the xx.json file. So, according to the layout, you can prepare your own translation, which you later have to declare in the settings.json file in the config directory.

"langs": {
"pl":"Polski",
"en":"English"
};

Based on the keys of the langs variable object, the template will automatically determine whether it should display the LTR or RTL content.

The base64 logo is set in the settings.json file. Due to the universal application, the frame of the image of the logo must keep the proportions of a square.

About

Multilingual responsive captive portal template for OPNSense firewall and routing platform

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published