View Single Post
Old 12-06-2017, 04:27 PM  
porn-update
Confirmed User
 
porn-update's Avatar
 
Industry Role:
Join Date: Apr 2014
Posts: 380
So... these days I studied a little iptables (very little).

I took a little courage...
I launched sudo ufw reset and deleted all the rules of the server firewall.
Then I re-applied the basic rules both on UFW and on Iptables.

I found out how to block an IP and a list of IP with this script: Aggiungere regole a iptables da lista IP e renderla persistente and added all the IPs that I want to block (regional, Baidu, Yandex, bad spider etc).

I installed iptables-persistent saved and restarted the server...

Aaaand I made a mess...

The sites seem to be online and work well, but initially I did not receive mail from the server (eg those of the cronjob) and I did not see the stats of Nixstat.

With some adjustment nixstat now works and some mail has arrived, but I'm afraid I have done some other mess because the statistics of the server with Ubuntu 14.04 in particular (my other server is 16.04) have fallen drastically these days, or at least so they say statistics services...
but maybe I blocked the access of Yandex metrics and analytics to the server? I don't know...

Today after some modification and reboot when I opened the rules.v4 file I found it empty...

Did I miss something?

I don't really know what I'm doing...

This is my current rules. V4, something missing? Is there anything too much?

http://porn-update.com/temp/rules.v4
porn-update is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote