0

I use nginx as web server and I have use minio port is 9000

location = / {
     allow ip_1; 
     allow ip_2; 
     deny  all;
}

all coming ip to port 443/80 is allow. but I want to deny all and allow 2 IP for this port (9000) only ,

Is this possible with nginx?

  • Please show your full configuration like `nginx -T` shows. – Tero Kilkanen Aug 22 '22 at 15:55
  • please consider to read [the manual](https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-tcp/) – djdomi Aug 22 '22 at 17:10
  • I would rather use iptables, but certainly you can use GeoIP or restrict access with nginx https://docs.rackspace.com/support/how-to/nginx-whitelisting-certain-ips/ You can also do it on the server section if you just want to block access to the certain port from specific IPs – Dmitriy Kupch Aug 22 '22 at 21:11

0 Answers0