Skip to content

ALLOW IN or DENY IN - NGINX Proxy Manager Admin Panel

Notifications You must be signed in to change notification settings

ryhkml/npm-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ALLOW IN or DENY IN - Nginx Proxy Manager Admin Panel

First of all

You need to fix the Docker and UFW security flaw without disabling iptables. Follow this steps and backup your ufw after.rules config

sudo cp /etc/ufw/after.rules /etc/ufw/after.rules-COPY
sudo curl -s -o /usr/local/bin/ufw-docker https://raw.githubusercontent.com/chaifeng/ufw-docker/master/ufw-docker && \
  sudo chmod +x /usr/local/bin/ufw-docker && \
  sudo ufw-docker install && \
  sudo systemctl restart ufw

More information, visit: https://github.com/chaifeng/ufw-docker

Usage

Allow NPM admin panel

Attention, if http and https are listed in the UFW state, delete them. UFW http and https are no longer needed

sudo ufw allow delete http && \
  sudo ufw allow delete https

then

sudo curl -o /usr/local/bin/npm-admin https://raw.githubusercontent.com/ryhkml/npm-admin/main/npm-admin && \
  sudo chmod +x /usr/local/bin/npm-admin && \
  sudo npm-admin init && \
  sudo npm-admin allow

or you can specific allow from your subnet/cidr or any

sudo npm-admin allow <SUBNET_CIDR|any>

Default is your public IP. any or 0.0.0.0/0 means, the NPM admin panel can be access from anywhere

Delete rule NPM admin panel

sudo npm-admin delete

How to update

sudo rm -f /usr/local/bin/npm-admin && \
  sudo curl -s -o /usr/local/bin/npm-admin https://raw.githubusercontent.com/ryhkml/npm-admin/main/npm-admin && \
  sudo chmod +x /usr/local/bin/npm-admin

About

ALLOW IN or DENY IN - NGINX Proxy Manager Admin Panel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages