Answer the question
In order to leave comments, you need to log in
How to organize access to phpmyadmin only from the local network?
Now I have a web server on my local network, port 80 is forwarded to it on the gateway.
Made a DMZ zone on the gateway. I deployed a new web server in it, where I will move the site from the internal server. It will be open to the Internet only on port 80, from the local network I will make access from certain IPs via SSH, FTP, and WEB. So here's a question. I want to put phpmyadmin on it for ease of administration, but I want it to be possible to connect to its (phpmyadmin) interface only from the local network. How to do this? So that from the outside it was impossible to get into the phpmyadmin interface in any way.
PS: nginx server
PPS: Don't kick too hard, okay :)
Answer the question
In order to leave comments, you need to log in
location / {
deny 192.168.1.1;
allow 192.168.1.0/24;
allow 10.1.1.0/16;
allow 2001:0db8::/32;
deny all;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question