Hello,
I wanted to make ddos protection for my router by detecting ip of ddoser and block that ip from sending any type of connection and traffic to router.
I tried to block all connections from it with this simple filter and raw rules:
IP>Firewall>Raw rule:
/ip firewall raw add chain=prerouting src-address-list=ddoser action=drop
IP>Firewall>Filter rule:
[code]/ip firewall filter add chain=forward src-address-list=ddoser action=drop
IP>Firewall>NAT rule:
/ip firewall nat add action=dst-nat chain=dstnat dst-port=22 to-addresses=192.168.88.20 to-ports=22
I have all service ports blocked so I wouldn’t say that is a problem.
I asked my friend to start test ddos attack, router blocked the connection, and there was no conencted ip in connections list, but my ether1 and pppoe-out1 interfaces were completely loaded due to the ddos attack. I tried torching my pppoe-out1 interface (I get internet access and public ip from it) with collect boxes all checked. I saw that everyconnection it sends gets accepted. I don’t know how is this possible, but I will be grateful for any type of tip. Please sorry for my bad English, I used google translate… Also I’m begginer and don’t know much about mikrotik. Thanks in advice.