Cpanel Plugin allows users to add IP to hosts.allow and locks ssh down
Clone or download
Pull request Compare This branch is even with TransgressInc:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Cpanel/API
bin/admin/Nemanja
plugins/paper_lantern
LICENSE
README.md
Whitelist.php
index.live.php
install.sh
uninstall.sh
update.sh
whitelist.css

README.md

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