- tool fetch url="http://www.mikrotik.com/download/l7-protos.rsc" mode=http
- import l7-protos.rsc
- ip firewall filter add chain=forward in-interface=ether2-lokal layer7-protocol=bittorrent action=add-src-to-address-list address-list=user-torrent address-list-timeout=1h
- ip firewall filter add chain=forward protocol=udp in-interface=ether2-lokal dst-port=!53 src-address-list=user-torrent action=drop
- Done
Sunday, 11 January 2015
Cara Block Torrent di Mikrotik
Thursday, 1 January 2015
monitoring interface ip for change
halo sobat locomit semua, sedikit script di mikrotik untuk memberitahukan network admin jika terjadi perubahan ip pada satu interface di mikrotik
/system script add name="ether1monitorIPchange" source={
:global actualIP;
:local newIP [/ip address get [find interface="ether1"] address];
:if ($newIP != $actualIP) do={
:put "ip address $actualIP changed to $newIP";
:set actualIP $newIP;
/tool e-mail send to="mypersonalemail@gmail.com" \
subject="IP change detected by Mikrotik Script"\
body=$actualIP server=312.55.355.1 \
from="admin@locomit.com";
}
}
sesuaikan dengan keadaan di tempat anda
/system script add name="ether1monitorIPchange" source={
:global actualIP;
:local newIP [/ip address get [find interface="ether1"] address];
:if ($newIP != $actualIP) do={
:put "ip address $actualIP changed to $newIP";
:set actualIP $newIP;
/tool e-mail send to="mypersonalemail@gmail.com" \
subject="IP change detected by Mikrotik Script"\
body=$actualIP server=312.55.355.1 \
from="admin@locomit.com";
}
}
sesuaikan dengan keadaan di tempat anda
Subscribe to:
Posts (Atom)