M
M
Mikhail Sokolov2015-08-28 20:53:01
PHP
Mikhail Sokolov, 2015-08-28 20:53:01

How to set up Iptables + DB and restrict access?

I 'm interested in the ability to restrict access to the Internet by MAC taken from the database (mysql, mariadb, etc.).
Probably, it is possible to write MAC to a file from the database and read from there. Can eat more humane methods?
Docks, good advice, anything :)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
maiskiykot, 2019-03-12
@maiskiykot

As usual, he got out himself. I spat on this option and made a call to the func.php file with a timeout curl. Everything starts spinning! Thank you all for participating!

I
ipokos, 2019-03-12
@ipokos

Then the $_SESSION['ip'] array is reset, the ip.txt file is overwritten and everything stops

And what should continue if the loop has finished iterating over the array?
what does main loop mean? Are you calling this function in a loop somewhere else?
If so, how is it supposed to work if you nullify all data from SESSION['ip'] and then check if it exists?
Why break after return ?
what exactly would the iterations not go further? if so, then it's better to put some break; break; break;
And again, what is this mystical "main cycle"?

Руслан Федосеев, 2015-08-28
@loodev

мсье изобретает hotspot + radius ? ;)

Михаил Соколов, 2015-08-28
@loodev Автор вопроса

Нет, всё проще.. без radius )) но примерно такая же задача, - зареганным пользователям давать доступ :)
Или это намёк куда копать?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question