sudo apt-get install whois
lalu bikin file bash
sudo nano facebook_address-list.sh
copy kode dibawah ini:
#!/bin/bash for ip in `whois -h whois.radb.net '!gAS32934' | grep / | sort -n | uniq` do echo "ip firewall address-list add address=$ip list=ip-facebook" done
sudo chmod 755 facebook_address-list.sh
sudo ./facebook_address-list.sh
nanti akan keluar hasilnya kurang lebih seperti ini.
ip firewall address-list add address=204.15.20.0/22 list=ip-facebook ip firewall address-list add address=69.63.176.0/20 list=ip-faceook ip firewall address-list add address=66.220.144.0/20 list=ip-facebook |
setelah itu bisa kamu tambahkan di address-list mikrotik.
sumber: https://itservice-bg.net/drop-facebook-networks-mikrotik-firewall-address-lis/