Skip to content

Cpanel Plugin allows users to add IP to hosts.allow and locks ssh down

License

Notifications You must be signed in to change notification settings

djfordz/cpanel_ssh_whitelist

Repository files navigation

Simple cpanel plugin to allow cpanel users to whitelist IP's in /etc/hosts.allow file.

to install:

note: must have root privileges to install cpanel plugins

copy nemj_whitelist.tar.gz to cpanel server.

wget https://github.com/TransgressInc/cpanel_ssh_whitelist/archive/ssh_whitelist-1.1.tar.gz 
tar -xvf nemj_whitelist-1.0.tar.gz && cd cpanel_ssh_whitelist-ssh_whitelist-1.1/ 
chmod +x install.sh
./install.sh

To uninstall:

use the uninstall script.

chmod +x uninstall.sh
./uninstall.sh

If plugin is already installed and you just want to update to the latest release, use update sript to preserve all User IP's

chmod +x update.sh
./update.sh

To add admin IP's or IP's that you do not want user to see or alter. add to /etc/hosts.allow where it is commented to add admin IP's

Submit issues for bugs.

Future features: add support for subnets

About

Cpanel Plugin allows users to add IP to hosts.allow and locks ssh down

Resources

License

Stars

Watchers

Forks

Packages

No packages published