Matiin port switch manageable Cisco WS-C2924-XL (Telnet)

Sesuai dengan judul, kita langsung mulai…

Pertama masuk ke switch menggunakan telnet

C:\>telnet 192.168.0.12 ==> isikan ip address switch

User Access Verification

Password: ===> isikan password

rcisco>enable ===> untuk mengaktifkan switch

Password: ===> isikan password

rcisco#config t ===> perintah konfigurasi

Enter configuration commands, one per line.  End with CNTL/Z.

rcisco(config)#interface fa0/17 ===> port yang dituju merupakan port 17

rcisco(config-if)#shutdown ===> perintah untuk mematikan port (untuk mengaktifkan kembali menggunakan no shutdown)

rcisco(config-if)#exit ===> keluar dari konfigurasi port

rcisco(config)#exit ===> keluar dari konfigurasi switch

rcisco#show interfaces fa0/17 ===> melihat status pada port 17

FastEthernet0/17 is administratively down, line protocol is down
Hardware is Fast Ethernet, address is 0004.4d6e.b3d1 (bia 0004.4d6e.b3d1)
MTU 1500 bytes, BW 0 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not set
Auto-duplex , Auto Speed , 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of “show interface” counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1 packets input, 64 bytes
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast
0 input packets with dribble condition detected
1 packets output, 64 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

Selesai

Advertisements

Install Clamav di CentOS

Ada sebuah program antivirus di linux yang sangat dikenal yaitu ClamAV yang dapat diperoleh info lengkapnya di www.clamav.net

adapun tahapan instalasinya yaitu :

1.     Download source aplikasi dari website clamav, dan saat ini versi stable yang terakhir yaitu dapat didownload melalui  http://sourceforge.net/projects/clamav/

# wget http://downloads.sourceforge.net/clamav/clamav-0.95.3.tar.gz
# tar -xvzf clamav-0.95.3.tar.gz

2.     Buat user untuk menjalankan clamav dahulu

# groupadd clamav
# useradd clamav -g clamav -c “Clam Antivirus” -s /nonexistent

3.     Lakukan konfigurasi

# cd clamav-0.95.3
# ./configure
# make
# make install

4.     cek hasil instalasi
Setelah install selesai di point 3, maka dapat dilakukan pengecekan clamav, yaitu dengan cara :

# cd ..
# clamscan -r -l scan.log clamav-95.3

dimana akan melakukan scaning atas folder source clamav secara recursive dan hasilnya di tulis di file     scan.log

——————————————————————————-

clamav-0.95.3/libclamav/version.h: Empty file
clamav-0.95.3/libclamav/version.h.tmp: Empty file
clamav-0.95.3/test/clam.tnef: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe.mbox.uu: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-v2.rar: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe.html: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-upack.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-fsg.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe.szdd: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.zip: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-wwpack.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.sis: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-upx.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-aspack.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe.binhex: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe.rtf: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.mail: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.arj: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.ea06.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-v3.rar: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-pespin.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.d64.zip: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.cab: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.ea05.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.chm: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-petite.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.exe.mbox.base64: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-nsis.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.ole.doc: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.ppt: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam-mew.exe: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.tar.gz: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.pdf: ClamAV-Test-File FOUND
clamav-0.95.3/test/clam.impl.zip: ClamAV-Test-File FOUND

———– SCAN SUMMARY ———–
Known viruses: 572031
Engine version: 0.95.3
Scanned directories: 61
Scanned files: 1317
Infected files: 33
Data scanned: 52.38 MB
Data read: 44.60 MB (ratio 1.17:1)
Time: 12.786 sec (0 m 12 s)

dari hasil diatas dapat dilihat bahwa clamav berjalan dengan baik dan menemukan virus demo di folder         test.

5.     Testing program clamav daemon

lakukan konfigurasi file “/usr/local/etc/clamav.conf”
# vi /usr/local/etc/clamav.conf
hapus baris “example” pada file tersebut dan jalankan perintah scan

# clamdscan -l scan.log clamav-0.95.3
dimana hasilnya akan sama dengan point 4, hanya beda sedit tentang summarynya saja.

6.     Update data antivirusnya

buat tempat logfile

# touch /var/log/clam-update.log
# chmod 600 /var/log/clam-update.log
# chown clamav /var/log/clam-update.log

Jalankan perintah update

# freshclam -d -c 6 -1 /var/log/clam-update.log
dimana artinya yaitu menjalankan update database antivirusnya yang dilakukan setiap hari sebanyak 6         kali.

apabila dijalankan di belakang firewall :

ClamAV update process started at Wed Sep  9 21:11:45 2009
WARNING: Can’t query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): WARNING: Can’t get information about database.clamav.net: Temporary         failure in name resolution
WARNING: Can’t read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs…
ClamAV update process started at Wed Sep  9 21:11:50 2009
WARNING: Can’t query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): WARNING: Can’t get information about database.clamav.net: Temporary         failure in name resolution
WARNING: Can’t read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs…
ClamAV update process started at Wed Sep  9 21:11:55 2009
WARNING: Can’t query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): ERROR: Can’t get information about database.clamav.net: Temporary         failure in name resolution
WARNING: Can’t read main.cvd header from database.clamav.net (IP: )
Giving up on database.clamav.net…
Update failed. Your network may be down or none of the mirrors listed in /usr/local/etc/freshclam.conf     is working. Check http://www.clamav.net/support/mirror-problem for possible reasons.

agar bisa jalan walaupun dibelakang firewall, maka perlu diseting HTTPproxynya yaitu di file             “/usr/local/etc/freshclam.conf”

# Proxy settings
# Default: disabled
HTTPProxyServer proxyserver
HTTPProxyPort proxyport
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass

kalau dilihat di log file “/var/log/clam-update.log”, maka isinya dapat seperti ini :

————————————–
freshclam daemon 0.95.3 (OS: linux-gnu, ARCH: i386, CPU: i686)
ClamAV update process started at Wed Sep  9 21:17:54 2009
WARNING: Can’t query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Connecting via proxyserver
Reading CVD header (main.cvd): OK (IMS)
main.cvd is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
Connecting via proxyserver
Reading CVD header (daily.cvd): OK (IMS)
daily.cvd is up to date (version: 9788, sigs: 77535, f-level: 43, builder: ccordes)
————————————–

7.     Jalankan scrip update data antivirus setiap centos startup

# vi /etc/rc.local

tambahkan baris berikut (sesuai point 6)

freshclam -d -c 6 -1 /var/log/clam-update.log

8.     Lakukan scaning virus secara otomatis setiap jam 6 pagi dengan crantab

# vi /etc/cron.d/clamav.cron

isikan dengan baris berikut :

0 6 * * * root /usr/local/bin/clamscan -r /home/

yang artinya , dengan cron dilakukan scan virus setiap jam 6 pagi di folder /home/ secara recursive

selesai

Windows XP Registry Tricks

Berhubung tadi ada yang bertanya tentang registry di win XP jadi sekarang saya kopas aja dari website sebelah..

selamat menikmati :mrgreen:

Modifying the Disk Check Autochk.exe Time-out (Scandisk Delay) Value from 10 seconds to 3 Seconds
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]
“AutoChkTimeOut”=dword:00000003

Disable Automatic Restart in the event of a System Crash / BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
“AutoReboot”=dword:00000000

Disable The Windows XP Desktop Cleanup Wizard (Unused Desktop Shortcuts)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
“NoRun”=dword:00000001

Speed up Network Browsing by Removing Network Scheduled Tasks
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

Disables Windows Take A Tour Bubble Popup
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
“RunCount”=dword:00000000

Disable Remote Registry Service (Remote users to modify registry settings on your computer. Now registry can be modified only by users on your computer)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
“Start”=dword:00000004

Removes the Recent Documents from the Start menu. The system saves a shortcut to each of the non-program files the user opened most recently, and it displays the shortcuts on the Recent Documents.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“NoRecentDocsMenu”=dword:00000001

Classic Search, Full Path In Title Bar And Address Bar. This allows you to disable the new Search Assistant Dog and use the traditional search interface in Windows Explorer
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]
“FullPath”=dword:00000000
“FullPathAddress”=dword:00000001
“Use Search Asst”=”no”
“Settings”=hex:0c,00,02,00,1b,01,e7,77,60,00,00,00

Have you ever wanted to Rename Recycle Bin ? This Tweak Allows Renaming of Recycle Bin
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
“Attributes”=hex:50,01,00,20
“CallForAttributes”=dword:00000000

Are you getting ‘Low Disk Space Notification’ ? This Disables Low Diskspace Warnings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“NoLowDiskSpaceChecks”=dword:00000001

Do you want to Speedup the Windows XP Start Menu?
[HKEY_CURRENT_USER\Control Panel\Desktop]
“MenuShowDelay”=”2”

Maximize Your Internet Explorer’s Simultaneous Downloads From 2 to 10 Connections
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
“MaxConnectionsPer1_0Server”=dword:0000000a
“MaxConnectionsPerServer”=dword:0000000a

Remove the Queue-it-up, Burn to CD right click options on Windows Media Player files.
[-HKEY_CLASSES_ROOT\CLSID\{CE3FB1D1-02AE-4a5f-A6E9-D9F1B4073E6C}]
[-HKEY_CLASSES_ROOT\CLSID\{F1B9284F-E9DC-4e68-9D7E-42362A59F0FD}]
[-HKEY_CLASSES_ROOT\CLSID\{8DD448E6-C188-4aed-AF92-44956194EB1F}]

Removes Sign up with Passport Wizard when trying to sign in MSN Messenger First time
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Passport]
“RegistrationCompleted”=dword:00000001

Disables Preview (Thumbnails) of Movie File Formats (Allowing You To Move/Rename/Delete without Errors)
[-HKEY_CLASSES_ROOT\.avi\ShellEx]
[-HKEY_CLASSES_ROOT\.mpg\ShellEx]
[-HKEY_CLASSES_ROOT\.mpe\ShellEx]
[-HKEY_CLASSES_ROOT\.mpeg\ShellEx]
[-HKEY_CLASSES_ROOT\.mov\ShellEx]

Open Explorer From My Computer or Any Folder (Power users love this)
[HKEY_CLASSES_ROOT\Folder\shell]
@=”explore”

Remove ‘Shortcut To …’ Prefix when you create new Shortcut
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
“link”=hex:00,00,00,00

This adds ‘Command Prompt here’ on Right Click Menu (When you right click on a Drive/Folder)
[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@=”Command &Prompt Here”
[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@=”cmd.exe /k cd %1 ”
[HKEY_CLASSES_ROOT\Drive\shell\Command Prompt Here]
@=”Command &Prompt Here”
[HKEY_CLASSES_ROOT\Drive\shell\Command Prompt Here\command]
@=”cmd.exe /k cd %1 ”
[HKEY_CLASSES_ROOT\*\shell\Command Prompt Here]
@=”Command &Prompt Here”
[HKEY_CLASSES_ROOT\*\shell\Command Prompt Here\command]
@=”cmd.exe \\\”%1\\\””

Remove Shared Documents folders from My Computer System Folder
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]

Disable the Unread Mail Message on the Welcome Screen
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail\]
“MessageExpiryDays”=dword:00000000

Disable Compress Old Files (This is useful when Disk Cleanup Tool Stops Responding While Compressing Old Files)
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files]

Windows Explorer Crashes When Opening Folder Containing avi/video files
[-HKEY_CLASSES_ROOT\CLSID\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\.avi\shellex\PropertyHandler]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}\InProcServer32]

Disabling the File Association Web Service (when you click on unknon file it displays ‘Windows can not open this file, … Use the web service to find the appropriate program / Select from the Program list’)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
“NoInternetOpenWith”=dword:00000001

Remove Arrow Overlay from Desktop Shortcuts
[HKEY_CLASSES_ROOT\lnkfile]
“IsShortcut”=-

Empty Temporary Internet Files Folder When Browser Is Closed
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache]
“Persistent”=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache]
“Persistent”=dword:00000000

Remove “Links” Folder From Favorites
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]
“Locked”=dword:00000001
“LinksFolderName”=””

Disable Automatic Image Re-Size in Internet Explorer
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
“Enable AutoImageResize”=”no”

Disable Media Player EULA
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer]
“GroupPrivacyAcceptance”=dword:00000001

Remove Shared Documents
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“NoSharedDocuments”=dword:00000001

Add ‘Disk Cleanup’ on Right Click of a Drive
[HKEY_CLASSES_ROOT\Drive\shell\Disk Cleanup\command]
@=”cleanmgr.exe /d %1”

Disable Automatic Restart in the event of a Blue Screen of Death (BSOD)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
“AutoReboot”=dword:00000000

Disable Shutdown Event Tracker (Shutdown Speedup)
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability]
“ShutdownReasonOn”=dword:00000000
“ShutdownReasonUI”=dword:00000000

Disable the NTFS Last Access Time Stamp update
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
“NtfsDisableLastAccessUpdate”=dword:00000001

Clear ‘Recent Documents’ on Log off
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“ClearRecentDocsOnExit”=dword:00000001

Display Drive Letters first in ‘My Computer’
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
“ShowDriveLettersFirst”=dword:00000004

Change Drive Icon (You have to change the \C\ below to the drive you want to change)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultIcon]
“”=”c:\somefolder\icon.ico”

Don’t Group Similar Taskbar Buttons
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
“TaskbarGlomming”=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
“TaskbarGlomming”=dword:00000000

Launch Windows Desktop in a Separate Process (Internet Explorer and Windows Explorer don’t crash together)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
“DesktopProcess”=dword:00000001

Disable Recent Documents History
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“NoRecentDocsHistory”=dword:00000001

Disable Tracking of Broken Shortcut Links
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“NoResolveTrack”=dword:00000001

Prevents Internet Explorer windows from being reused
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
“AllowWindowReuse”=dword:00000000

Show Detailed Information in Device Manager (can display old/removed hardware drivers)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
“DEVMGR_SHOW_DETAILS”=dword:00000001
“DEVMGR_SHOW_NONPRESENT_DEVICES”=”1″

Remove More Themes Online… from Themes Dropdown Box
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\DownloadSites]

Remove Language Bar from Taskbar
[-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}]
@=”Language bar”
“MenuTextPUI”=”@%SystemRoot%\\System32\\msutb.dll,-325”

Allow Internet Explorer 7 to open direct links to swf files
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_LMZ_SCRIPT]
“iexplore.exe”=dword:00000000

Disable USB Autorun to Save PC from USB Viruses
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@=”@SYS:DoesNotExist”

Source: http://www.hiren.info