2. VNET-AD method of using no authentication server
Fill Redir-URL(Redirect page address);
Don’t Advert Server Addr; see the drawing below:
The redirect page must contain a POST form with VNET-Advert protocol, for the details,
please check VNET-Advert protocol;
No authentication server is used, after users finish visiting the redirect page, and submit
post form, users can access the internet;
3. The using method of enable authentication server:
Fill Redir-URL;
Fill Advert Server Addr(Protocol authentication server address);
Fill Advert Server Port (Protocol authentication service port); please see the drawing
below:
After enabling authentication server, users must follow the VNET-Advert protocol when
accessing the internet;
After enabling authentication server, if you want to use this machine as a HTTP server,
the redirection page must contain a POST form that is in compliance with the
VNET-Advert protocol, and the form's submit address is the authentication server, not
the machine.
4. The use method of enabling redirection to this machine HTTP service
Fill Redir-URL (Redirect page address) as this machine IP or this machine domain
name;
Don’t fill Advert Server Addr, see the drawing below:
I’m a grain of sand on the beach, but I can be found in public
HTTP://WWW.VONETS.COM
Page 4
We belong to China, we also belong to the world......HouTian
Under this configuration, there are two cases, the analysis is as follows
1.internet is offline, all DNS requests are are intercepted by the kernel (all packets sent
to the machine), and resolved to 101.12.30.56,
1. Internet offline state, all DNS requests are intercepted by the kernel (all packets sent
to the machine), and resolved 101.12.30.56, then all get HTTP requests sent to the IP
are redirected to the address of the machine (Redir-URL), this redirection by advert -
portal in the IP provides Visual HTTP service, then provided by this machine IP ngnix
HTTP service;
2. Internet connection state, all DNS normal analysis, kernel block forwarding packet
(not all packets sent to this machine), to all GET request of HTTP, reply redirection
response, all GET requests are also being redirected to this machine (Redir-URL),
then HTTP services of this machine provided by ngnix;
In this case, the Advert server will automatically invalid, all requests are pointing to the
HTTP service, users can not access the Internet.
5. The use method of stopping the function of VNET-AD advertising
Don’t fill the contents of redir_url column, will automatically disable the VNET-AD
function
After SSH log in, use the stop #advert command to disable the VNET-AD function;
Annex 1:VONETS_VNET-AD Serial Configuration parameters
Annex 2:vonets_openwrt software function description
I’m a grain of sand on the beach, but I can be found in public
HTTP://WWW.VONETS.COM
Page 5
We belong to China, we also belong to the world......HouTian