via terminal
/ip firewall filter add chain=forward src-address=0.0.0.0/0 protocol=tcp content="facebook" action=drop comment="Block Facebook";
Via Winbox :
Jika di Firewall-nya udah jadi, sekarang tinggal mainin dia aktif-ngak nya peraturan yg di Firewall itu dengan menggunakan System Script Mikrotik.
Script buat Allow atau mengijinkan pengguna melakukan akses ke Facebook
via terminal
/system script add name="fb-allow" policy=write,read,policy,test,reboot, source={/ip firewall filter set [/ip firewall filter find content="facebook"] disabled=”yes”}
via winbox
script untuk deny atau tidak mengijinkan pengguna melakukan access ke Facebook
Via terminal
/system script add name="fb-deny" policy=write,read,policy,test,sniff source={/ip firewall filter set [/ip firewall filter find content="facebook"] disabled="no"}
Via Winbox
Sekarang saatnya kita buat Scheduler atau jadwal jam kerjanya…
Misal saya buatkan schedule seperti berikut :
Jam 08.00 s/d Jam 11.30 access ke Facebook di tolak "Block"
Jam 11.31 s/d Jam 13.00 access ke Facebook di ijinkan "Allow"
Jam 13.01 s/d Jam 16.00 access ke Facebook di tolak "Block"
Jam 16.00 s/d Jam 07.49 access ke Facebook di ijinkan "Allow"
Berikut rancangannya:
Jam 08.00 access ke Facebook mulai di tolak "Block"
Via Terminal
/system scheduler add name="fb-08:00" start-date=Oct/08/2009 start-time=08:00:00 interval=1d on-event="fb-deny"
Via Winbox
Jam 11.30 access ke Facebook mulai di ijinkan "Allow"
Via Terminal
/system scheduler add name="fb-12:00" start-date=jan/01/1970 start-time=12:00:00 interval=1d on-event="fb-allow"
Via Winbox
Via Terminal
/system scheduler add name="fb-12:00" start-date=jan/01/1970 start-time=12:00:00 interval=1d on-event="fb-allow"
Via Winbox
Jam 13.00 access ke Facebook mulai di tolak "Block"
Via Terminal
/system scheduler add name="fb-13:00" start-date=jan/01/1970 start-time=13:00:00 interval=1d on-event="fb-deny"
Via Winbox
Via Terminal
/system scheduler add name="fb-13:00" start-date=jan/01/1970 start-time=13:00:00 interval=1d on-event="fb-deny"
Via Winbox
Jam 16.00 access ke Facebook mulai di ijinkan sampe pagi "Allow"…
Via Terminal
/system scheduler add name="fb-17:00" start-date=jan/01/1970 start-time=17:00:00 interval=1d on-event="fb-allow"
Via Winbox
Via Terminal
/system scheduler add name="fb-17:00" start-date=jan/01/1970 start-time=17:00:00 interval=1d on-event="fb-allow"
Via Winbox
Sekian.
Semoga membantu & bermanfaat.
Salam
Merah Putih Segoroasat
Thanks
Terima Kasih Info nya.....!
BalasHapusOk. Sama-sama ^_^
Hapusthanks bang jelas banget materinya..
BalasHapus