--------------------------------------------------------------------------------------------------------
Step 1)--
first check which IP is hitting your site number of times by :-
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
-------------------------------------------------------------------------------------------------------
Step 2)--
Step 2)--
Then you can insert this IP into firewall by :-
apf - d ip
to allow an ip ;
foist remove the entry from deny_hosts.rules using pico command & then execute.
apf -a ip
apf - d ip
to allow an ip ;
foist remove the entry from deny_hosts.rules using pico command & then execute.
apf -a ip
-------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment