Rabu, 16 Februari 2011

WinMTR


MTR untuk windows :) . boleh didapati di portable apps plak tu .. senang tak payah install :D .

download di sini

Selasa, 15 Februari 2011

Sate Ikan

ingat weekend ni nak try resepi baru. ada brani ?

Bahan:
500 gr daging ikan tenggiri, cincang halus
10 lbr daun jeruk, iris halus
25 btg serai, ambil bagian putihnya

spices Haluskan:
6 bh cabai merah
4 siung bawang putih
10 bh bawang merah
4 cm ginger
3 cm kunyit
1 sdt ketumbar
2 btr hazelnut
1/2 sdt terasi shrimp paste
2 btg serai bagian putih, iris halus
1 sdt garam

Cara membuat:
1. Campur daging ikan dengan spices dengan rata dan halus, daun jeruk, adun rata.
2. Bentuk menjadi sebesar telur ayam, tusuk masing- masing dengan bonggol batang serai.
3. Bakarhingga matang dan harum.

monitor custom TCP port dalam nagios

Harini ada sorang kawan tanya cam mane nak monitor custom port di nagios. tujuan dia nak monitor custom port sebab ssh port dia dah di "listen" pada port lain ( port 2020). So caranya mudah je.

depend pada cara korang setup nagios, korang kene carik nagis commands.cfg file. mcm aku nyer terletak di /etc/nagis/commands.cfg . ( ade gak orang yg setup di /usr/local/nagios/etc/objects)

gunakan command berikut

vi /etc/commands.cfg

paste seperti di bawah :-

define command{
command_name check_tcp_2020
command_line $USER1$/check_tcp -h $HOSTADDRESS$ -p 2020 -4
}
pastu korang kene create service baru untuk host yang nak dimonitor.

vi /etc/nagios/hosts.cfg

kemudian paste bende ni
define host{
use generic-host ;type generic server kalau linux guna linux-host
host_name matahari ; nama server kawan aku
alias server ssh ; diskripsi server
address 192,168,1,1 ; server IP
}

pastu paste bawah ni kat services.cfg

define service{
use generic-service
host_name matahari
service_description 'check ssh port2020/tcp'
check_command check_tcp_2020
}

Verify config betul ke idak

# nagios3 -v /etc/nagios3/nagios.cfg

mcm kawan aku dia kene guna cmd ni

# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


pastu korang akan dapat cam ni

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config file '/etc/nagios/hosts.cfg'...
Processing object config file '/etc/nagios/services.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 13 services.
Checking hosts...
Checked 4 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 26 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0


Kalau semua nya ok, boleh la restart nagios.


# /etc/init.d/nagios restart

settle.

Selasa, 8 Februari 2011

cool website

hari ni selesai sudah mengsetup netbook rufleen :D . terjumpa website menarik http://ninite.com/
secara am, website ni membolehkan kebanyakkan software yang diperlukan selepas kita selesai "clean install". menariknya kita tidak perlu download program2 tersebut secara individu. melalui website ini, segalanya boleh di download sekali gus. memang best :D

Isnin, 11 Oktober 2010

Null Route

In computer networking, a null route (blackhole route) is a network route (routing table entry) that goes nowhere. Matching packets are dropped (ignored) rather than forwarded, acting as a kind of very limited firewall. The act of using null routes is often called blackhole filtering. The rest of this article deals with null routing in the Internet Protocol (IP).

Null routes are typically configured with a special route flag, but can also be implemented by forwarding packets to an illegal IP address such as 0.0.0.0, or the loopback address.

Null routing has an advantage over classical firewalls since it is available on every potential network router (including all modern operating systems), and adds virtually no performance impact. Due to the nature of high-bandwidth routers, null routing can often sustain higher throughput than conventional firewalls. For this reason, null routes are often used on high-performance core routers to mitigate large-scale denial-of-service attacks before the packets reach a bottleneck, thus avoiding collateral damage from DDoS attacks — although the target of the attack will be inaccessible to anyone. Blackhole filtering can also be abused by malicious attackers on compromised routers to filter out traffic destined to a certain address.

However, routing typically only works on the Internet Protocol layer and is very limited in packet classification. It is bound to be stateless due to the nature of IP routers. Typically, classification is limited to the destination IP address prefix, source IP address and incoming network interface.

Nullrouting with iproute2 on Linux:

$ ip route add blackhole 192.168.32.128/32[1]

Nullrouting with 'route' on Solaris and BSD:

$ route add -host 10.10.0.1 127.0.0.1 -blackhole
$ route add -net 10.10.64.0/18 127.0.0.1 -blackhole


Routing to the Null0 interface on Cisco IOS:

ip route 192.168.0.0 255.255.0.0 Null0[2]

Windows XP/Vista does not support reject or blackhole arguments via route, thus an unused IP address (e.g. 192.168.32.254) must be used as the target gateway:

route -p ADD 192.168.32.128 MASK 255.255.255.255 192.168.32.254

source: wiki

Jumaat, 1 Oktober 2010

USB flash drive write protect error ?




Harini aku kene error write protect kat USB flash drive aku. bila nak delete file takleh. nak copy file takleh. bila masa plak flash drive aku ni write protected ? Maybe security policy sebelum ni menyebabkan semua removable drive takde write permission kot. ntah la aku pun tak ingat. aku disable write protect check kat registry :-

WARNING: Backup dulu registry

STEP 1 - Backup the registry
1. Unplug the USB flash drive.
2. Click Start > Run, type in regedit then click OK.
3. From the registry menu, click File, select Export.
4. Under Export range select All.
5. Name the file SNDK.reg and save it to the desktop.

STEP 2 - Disable the "Write Protect" permission in the Registry
1. On the left pane, click the "+" beside HKEY_LOCAL_MACHINE
2. Navigate to SYSTEM > CurrentControlSet > Control > StorageDevicePolicies.
3. On the right pane, right-click on WriteProtect and select Modify.
4. In the Value data field, type the number 0 (decimal value yer tuan2 & puan2)
5. Click OK.

settle.