0

Can you explain me. How I can block this address from firewall on MikroTik.

I just try to add the rules with only "poolbinance.com" and other rule with "ethash.poolbinance.com"

But it is not working.

Thank you for help.

full address looks like tcp://ethash.poolbinance.com:1800

3
  • found a nice tutorial via google: monovm.com/blog/block-url-on-mikrotik
    – djdomi
    Jul 21, 2021 at 7:16
  • @djdomi Thank you for answer. I know this method. But problem is about to block connection from/to this address or ip. I try to block other sites like fb.. etc.. And it's work well.
    – turtle
    Jul 21, 2021 at 7:44
  • i would just do a workaround, set up a dns zone locate it to 127.0.0.1 and force poolbinance.com to it, however since it is cloufflare behind, you may need to block cloudflare entirly to get rid off (Address: 172.65.8.243, Aliases: ethash.poolbinance.com, eth.poolabc.org.cdn.cloudflare.net) or as a second work around block port 1800 outbound
    – djdomi
    Jul 21, 2021 at 7:51

1 Answer 1

0

If your router is a DNS server for your clients, you can poll regularly DNS cache for poolbinance and block the corresponding IP:

Schedule this script every 10 seconds or so:

:global addIP do={
  :if ([:len [/ip firewall address-list find address="$nouvelleIP" and list="blockedIPs"]] = 0) do={
    /ip firewall address-list add list="blockedIPs" address=$nouvelleIP timeout=02:00:00
  }
}

:local myServers { "poolbinance" }
/ip dns cache all {
  :foreach i in=$myServers do={
    :foreach j in=[find where (name~$i)] do={
      :local myName [get $j name]
      :local myType [get $j type]
      :local myData [get $j data]
      :if ($myType = "A") do={
        $addIP nouvelleIP=$myData
       }

      :if ($myType = "CNAME") do={
        :local ipResolue [:resolve "$myData"];
         $ajouteIP nouvelleIP=$ipResolue
      }
    }
  }
}

And then add a firewall rule to block all traffic from blockedIPs list:

/ip firewall filter add action=drop src-address-list=blockedIPs

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .