How to restrict access to server management to everyone except me?
*Advanced Linux Knowledge and only for FreeBSD
Keep in mind that the careless use of the firewall can cause the server to be unavailable for an indefinite period of time. Therefore, if you are not sure of your actions - ask someone who is expert. So limit access to FTP, SSH, control panel. To do this, run the following commands (replacing YOUR_IP to IP to allow access):
ipfw add 500 pass tcp from "table (1)" to me 21,22,10000,2222
ipfw table 1 add YOUR_IP1
ipfw table 1 add YOUR_IP2
ipfw table 1 add staff.vpspro.net
ipfw add 600 deny tcp from any to me 21,22,10000,2222
From this moment it is necessary to carefully check whether the access to the server works, if the access is enabled by registering the specified command in the file /etc/rs.firewall. If the command is entered in the specified file, the limit will be active even after restarting.
To add a new IP to the allowed list, run the command:
IP = 1.2.3.4; ipfw table 1 add $ IP; echo '$ {fwcmd} table 1 add' $ IP >> /etc/rc.firewall
Also Read