Where the ip given in this command are saved. How can I take a backup of the rejected IPs means I have been using the command since long. In case any time I want to move to other server or reinstall everything I want to include these IPs in the blocked list. Regards
Please help. I am using this command regularly to block suspicious ips from logs. I wanted to know where these blocked ips are stored/saved. so that I can take a backup of that file.
When you run the "route" command without any options, it should list all routes that have been set on your server.
Does it get reset, if the server is rebooted, as I didn't find any ips listed, which I have added in the past. also can I use etc/hosts.deny for blocking ips and this way the ips I have blocked will remain there even on reboot of server.
Yes, it gets reset on reboot. Yes. But this requires that the applications have to read the hosts.deny file as this is not a block on network level as far as I know.