I
I
Igor Nistakov2014-11-30 15:18:12
linux
Igor Nistakov, 2014-11-30 15:18:12

How to make a welcome page when connected to wi-fi?

Hello!
It is necessary to make sure that when connecting to wi-fi, clients automatically open the browser to see our page with advertising and other information,
the peculiarity is that it will be just a local network without an Internet connection and the packet interception option is not suitable. That is, you need an instant transition to our page when you open the browser, is this possible?
Googled a thousand times, so I ask for a clean how-to from start to finish.
Hardware:
-Server with Ubuntu Server
-Wi-Fi router.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2014-11-30
@belloni

This can be done using SQUID
You will also need a web server where you will host the greeting.

# mind the wrap. this is one line:
external_acl_type splash_page ttl=60 concurrency=100 %SRC /usr/sbin/squid/squid_session -t 7200 -b /var/lib/squid/session.db

acl existing_users external splash_page

deny_info http://example.com/splash.html existing_users

http_access deny !existing_users

this must be entered in /etc/squid/squid.conf, there is a pseudo-graphic banner indicating the right place:
#                                                                                                                                                                                                                                            
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS                                                                                                                                                                             
#

http://example.com/splash.html- instead, you need to write down the address of your welcome page

V
Vlad Zhivotnev, 2014-11-30
@inkvizitor68sl

You search for "ubuntu hotspot".
In principle, they say correctly about squid, only you need to remember to configure it in transparent mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question