If apf is installed on the server then if the port is not listed in IG_TCP_CPORTS then it is blocked. and to block a particular IP, command is apf -d IP ( apf -d 211.147.147.147)
If apf is not installed on the server then you can use iptables for the same purpose.
To block port,
iptables -A INPUT -p tcp -s port -j REJECT
(iptables -A INPUT -p tcp -s 3987 -j REJECT)
To block IP
iptables -A INPUT -p tcp -s IP -j REJECT
(iptables -A INPUT -p tcp -s 211.147.147.147 -j REJECT)
|