@Q_Q Я использую образ Docker с Podman (альтернатива Docker), и, похоже, есть какая-то ошибка в том, что Podman Desktop на Windows принимает соединения только с "localhost" (или с "::1" для IPv6), но не с "127.0.0.1" при использовании аргумента "net=host".
Но теперь я перенастроил контейнер и использую режим "net=bridge".
Таким образом, образ контейнера, обеспечивающий прокси, по-прежнему работает, и к нему можно получить доступ через "127.0.0.1", а значит, он также работает в BAS.
How to create double check ip/duplicate ip used?
-
I use for this a MySQL database where the IP (and other related) data is stored, including the date/time when it was last used. So I can easily check if the IP was already used and if yes how long it's ago.
-
@morpheus93 using what sir? can you give example? please..
-
Here are 2 links for getting ideas about the database schema: https://dba.stackexchange.com/questions/36446/ip-address-lookup-star-schema-design
and https://www.sqlservercentral.com/forums/topic/database-structure-to-manage-ip-addressesThose 2 are about MS SQL server, but the same approach as said works also with other RDBMS like MySQL (we use) and PostgreSQL e.g.
For connecting BAS to the MySQL db we use the mysql2 node.js module. Works very well but you can also use the built in SQL functionality.