OK.
So in this video, I'm going to teach you how to enable a captive portal login page on your access point.
So first off, I will open the DNS mask config file using nano and the name of the file.
And here on the last line, I have added the IP address for the login page.
Basically, this will redirect any request from the web browser to this IP address when clients connects
to the access point.
So I'll close this and open the host APD config fired using nano and would host a dot com.
And here I will only change the wireless network name to free Wi-Fi and save the fire.
OK, now I would start DNS mask using DNS must see and put the location for the configuration file and
then start host APD by typing host APD and put the configuration file fire.
And I would also add Dash B to run the command in the background.
This is useful if you don't want to open a new terminal.
And no, I need to add the IP address for the double n0 interface by typing ifconfig w and zero and
put one nine two one six eight Dot 1.1, Slash 24 and press enter.
Now the next thing is to set up the login page for the access point, and in my case, I have saved
the files in the home directory.
So to find the fires, I will click on the file manager.
And here I have a folder called Basic Portal, so I open the folder.
And here are the files for the login page.
Now let's see how the page looks like by clicking the index dot each HTML file.
And here you can see a basic HDMI login page, which will be used to appear when clients try to connect
to the access point or key.
Now let's close this, and the next step is to copy the files to the web server directly by going to
other location computer VAR, W W H HTML and page the files here.
All key.
Now, the last thing you need to do is to modify the configuration file for the Apache Web server and
add the rewrite rules.
So already set the rules in a file here in the home directory.
And if I use, as you can see, the Apache Rewrite file, which I will open using nano and the name
of the file.
No, here I'm not going to cover too deep about these rules.
Basically, these rules will make the redirection for a captive portal to work properly, so you need
to copy these and type nine or slash ETSI slash apache2 sites enabled zero zero default dot com and
under virtual host base the code.
And don't forget to save the file was done with that start the web server using service Apache to Two-Star
all key known as to the Windows machine and take the free Wi-Fi network, so I'll click Connect.
And you can see I've been automatically redirected to the login page, so thanks for watching.
And what's your next line?