Instan firewall yang mudah cara instalasinya.
Supaya saya tidak lupa dan bermanfaat buat yang lain, maka saya dokumentasikan saja :D.
Untuk trustix, dan “mungkin” distro lain yang tidak spesifik, sebaiknya ambil paketan “noarch”.
Bisa juga pakai versi tgz. Tapi saya lebih memilih yang rpm, biar ndak mumet. Namanya juga mau instant
Contoh kasus, shorewall akan dipasang di mesin mail dengan 1 interface, dan versi terbarunya 4.0.11
Read more »
Tags: ACCEPT, default, distro, drop, firewall, icmp, interface, mail, noarch, port, rpm, shorewall, smtp, source destination, ssh, tcp, trustix, vi
Filed in Linux | admin | May 27, 2008 10:40 am |
Comments (2)
Diambil dari http://forum.mikrotik.com/viewtopic.php?f=9&t=19389
tested on 3.7
# WarnAt needs to be at what percentage you want to be warned you are running out of IP addresses.
:local WarnAt 10
#Name of DHCP Pool you want to monitor
:local DHCPPoolName dhcp_pool1
#Your Email to notify you when running out of available ip's
:local Email my@email.com
#Your mail server ip address
:local EmailServer 0.0.0.0
#Declare Variable
:local Total
:foreach i in=[/ip pool get $DHCPPoolName ranges] do={
#Get the DHCP pool range and put into a string.
:local range [:tostr $i]
#Get the Start address of the range
:local Start [:pick $range 0 [:find $range "-"]]
#Get the End address of the range
:local Stop [:pick $range ([:find $range "-"] + 1) 31]
#Calculate how many IP's are in the Pool by subtracting the end address and the start address and add one.
:local ip ($Stop - $Start +1 )
#Save the size of the pool to Total
:set Total ($ip + $Total)
}
#Get the name of the Server that is using the Pool
:local Server [/ip dhcp-server get [/ip dhcp-server find address-pool="$DHCPPoolName"] name]
#Get the number of IP address's used in the pool
:local Used [/ip dhcp-server lease print count-only where server=[/ip dhcp-server get [/ip dhcp-server find address-pool=$DHCPPoolName] name]]
#Subtract used from total to get available
:local Available ($Total - $Used)
#Calculate percentage IP's available
:local Perc (($Available * 100) / $Total)
#Setup e-mail
:local Subject ([/system identity get name] . " DHCP pool is at $Perc")
:local Body ("Out of $Total addresses you have $Available available")
#Send out Email when available ip's percentage is below or equal to warnat
:if ($Perc <= $WarnAt) do={
/tool e-mail send to=$Email subject=$Subject body=$Body server=$EmailServer
}
:log info $Body
Tags: address pool, DHCP, ip addresses, lease, mail, mail server, mikrotik, php, pool, server lease, tos, vi
Filed in Mikrotik | admin | May 5, 2008 4:20 pm |
Comments (0)
Dari milist linux.or.id
:%s/^/./ menyisipkan titik (.) diawal setiap baris
:%s/$/./ menyisipkan titik (.) diakhir setiap baris
Diambil dari forum.mikrotik.com
Script ini hanya berjalan di versi 3.x, di versi 2.9.x tidak berjalan, apalagi versi 2.9.27
Pastikan anda sudah mengisi server dan from di konfigurasi mikrotik.
/system script add name="LogDump" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source="
:local body
:foreach int in=[/log find ] do={
:set body ("$body\r\n" . [/log get $int])
}
/tool e-mail send to="YOU@DOMAIN.COM" subject=([/system identity get name] . " Log " . [/system clock get date]) body=$body
/system logging action set memory memory-lines=1
/system logging action set memory memory-lines=100"
Read more »
Kasus ini ditanyakan ke saya oleh mas Ronny Susetyo aka ballacksave, admin (ngaku-nya newbie) stiki.ac.id via YM

Nah pertanyaan saya pada dasarx sama seperti dasep yaitu bgm client yg di bawah mikrotik
(dosen, sabarnet,hotspot) klo buka jaringan yg diatas mikrotik seperti webserver, mail dan webhosting (203.134.237.0/29) bisa nggak ke limit, tapi klo browsing ke internet tetep ke limit.
nb:
di mikrotikx saya pake /ip hotspot, untuk bagi2 bandwidthx……
mohon pencerahan…
Read more »
Tags: check, default, firewall, host, hotspot, interface, intranet, limit, mail, mikrotik, php, proxy, queue, rx, simple, stiki.ac.id, user, vi
Filed in Mikrotik | admin | February 6, 2008 10:25 am |
Comments (27)
Gara gara IOS swith di salah procedure-kan oleh oknum mamung-jaya jadi tambah pengalaman lagi :D
Terdelete dengan sempurna :))
Jadi inget waktu didulu waktu masih ijo, mau update malah salah timpa IOS dengan IOS yang beda versi.
Bingung tidak tahu keyword yang mesti ditulis di google.
Akhir-nya tanya pak Anda sesepuh Teknikal di Inixindo.
Sebelum memulai load/inject pastikan hyperterminal sudah terkonfigure dengan baik.
Read more »