<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>eventlog &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/eventlog/</link>
	<description>Feed of posts on WordPress.com tagged "eventlog"</description>
	<pubDate>Fri, 25 Dec 2009 16:28:38 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Create a Windows Service for Java using WinRun4J]]></title>
<link>http://borisinc.wordpress.com/2009/05/31/create-a-windows-service-for-java-using-winrun4j/</link>
<pubDate>Sun, 31 May 2009 08:46:08 +0000</pubDate>
<dc:creator>poidasmith</dc:creator>
<guid>http://borisinc.wordpress.com/2009/05/31/create-a-windows-service-for-java-using-winrun4j/</guid>
<description><![CDATA[The following is a quick tutorial on a creating a windows service in Java using WinRun4J. The first ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The following is a quick tutorial on a creating a windows service in Java using WinRun4J.</p>
<p>The first step is to <a href="http://winrun4j.sourceforge.net">download WinRun4J</a>.</p>
<p>Now unzip it into any folder, create a new directory called service and copy over the following files from the download:</p>
<ul>
<li>WinRun4Jc.exe</li>
<li>service.ini</li>
<li>WinRun4J.jar</li>
<li>WinRun4jTest.jar</li>
</ul>
<p>Now rename WinRun4Jc.exe to service.exe and you should have a folder that looks like this:</p>
<p><img src="http://i578.photobucket.com/albums/ss228/poidasmith/service1.gif"></p>
<p>Now we need a command prompt with Administrator priveleges. This can be created in Vista/Windows7 by going Start-&#62;All Programs-&#62;Accessories, right-click on Command Prompt and select Run as Administrator:</p>
<p><img src="http://i578.photobucket.com/albums/ss228/poidasmith/service2.gif"></p>
<p>Now change into the service directory you created above:</p>
<p><img src="http://i578.photobucket.com/albums/ss228/poidasmith/service3.gif"></p>
<p>To register the service with the Windows Service Control Manager (SCM), run the following command:</p>
<pre style="font-size:14px;background-color:#EEE;border-color:#888;border-style:solid;border-width:1px;padding:5px;">
C:\downloads\service&#62;service.exe --WinRun4J:RegisterService
</pre>
<p>Now if you start up the Windows service viewer you should see the WinRun4J test service:</p>
<p><img src="http://i578.photobucket.com/albums/ss228/poidasmith/service4.gif"></p>
<p>You can start/stop the service using the service viewer.</p>
<p>The code listing for the service implementation is as follows:</p>
<pre style="font-size:14px;background-color:#EEE;border-color:#888;border-style:solid;border-width:1px;padding:5px;">
package org.boris.winrun4j.test;

import org.boris.winrun4j.EventLog;
import org.boris.winrun4j.Service;
import org.boris.winrun4j.ServiceException;

/**
 * A basic service.
 */
public class ServiceTest implements Service {
    private int returnCode = 0;
    private volatile boolean shutdown = false;

    public int doRequest(int request) throws ServiceException {
        switch (request) {
        case SERVICE_CONTROL_STOP:
        case SERVICE_CONTROL_SHUTDOWN:
            shutdown = true;
            break;
        }
        return 0;
    }

    public int getControlsAccepted() {
        return SERVICE_ACCEPT_STOP &#124; SERVICE_ACCEPT_SHUTDOWN;
    }

    public String getName() {
        return "WinRun4J Test Service";
    }

    public String getDescription() {
        return "An example service using WinRun4J.";
    }

    public int main(String[] args) throws ServiceException {
        int count = 0;
        while (!shutdown) {
            try {
                Thread.sleep(6000);
            } catch (InterruptedException e) {
            }

            if (++count % 10 == 0)
                EventLog.report("WinRun4J Test Service", EventLog.INFORMATION,
                        "Ping");
        }

        return returnCode;
    }
}
</pre>
<p>The main method is called from the WinRun4J launcher when the service is required to run. This method should not return until the service is shutdown. </p>
<p>The doRequest method is called by the WinRun4J launcher on a separate thread (i.e. the service control thread). This method should modify the state of the application based on the request type passed in. In the example we just modify the shutdown flag.</p>
<p>The getName and getDescription methods are called when the service is registered. These values appear in the service viewer.</p>
<p>The example service simply logs to the windows event log every minute. </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Windows 2000 güvenliği]]></title>
<link>http://fentanyl.wordpress.com/2009/01/23/windows-2000-guvenligi/</link>
<pubDate>Fri, 23 Jan 2009 11:51:21 +0000</pubDate>
<dc:creator>fentanyl</dc:creator>
<guid>http://fentanyl.wordpress.com/2009/01/23/windows-2000-guvenligi/</guid>
<description><![CDATA[Bu metinde genelinde win2000’nın ilk kurulumundan sonra sisteminizi daha güvenli hale getirmek için ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Bu metinde genelinde win2000’nın ilk kurulumundan sonra sisteminizi daha güvenli hale getirmek için yapabileceğiniz işlemlerden bahsedeceğim. Öncelikle herhangi bir işletim sistemi üstünde güvenlikle ilgili çalışmalara başlamadan bilgisayarınıza yapmanız gereken ufak düzenlemelerden bahsedip, ardından win2000 sisteminizi daha güvenli hale getirmek için gerekli olan işlemleri anlatıcağım. Bunlar arasında gereksiz servislerin kapatılması, “system policy”nin ayarlanması, TCP/IP bağlantılarını filitrelendirmesi, hotfix ve SP’lerin önemi, korunması gerekli önemli dosyalar ve bunlara ek olabilecek ufak tefek bir kaç konu daha var. Başlıklar halinde sıralamak gerekirse:</p>
<ul>
<li> Fiziksel güvenlik</li>
<li> Gerekli servisler</li>
<li> Hotfix ve SP’lerin(Service Pack) önemi</li>
<li> System policy ayarları</li>
<li> Gereksiz altsistemlerin kaldırılması</li>
<li> Önemli dosyaların korunması</li>
<li> TCP/IP süzgeçlenmesi</li>
<li> Ufak tefek işler</li>
</ul>
<h3>Fiziksel güvenlik:</h3>
<p>Bilgisayarına kurlu olan herhangi bir işletim sistemin güvende olmasını ve dosyalarının kendisi ve izin verdiği kişiler dışınızdaki birileri tarafından değiştirilmemesi veya silinmemesini istemek her kulanıcının hakkıdır. Ama bunu gerçekleştrimek için bilgisayarı işletim sistemini aktif hale geçirmeden önce ve işletim sistemine giriş yaparken yapması gereken bazı işlemler var.<br />
Bilgisayarınız açılırken eğer sizin dışınızda birileri BIOS’unuza kolayca girebiliyorsa ve burada yaptığı değişiklikleri aktif hale getirebiliyorsa bazı sorunlarla karşılaşma olasılığınız artıyor. Her ne kadar yeni bilgisayarların çoğunda BIOS’a nasıl girileceği başlangıçta gözükmese de bilen bir insan rahatlıkla BIOS içinde yapıcağı değişikliklerle ister bilgilerinizi çalma (öğrencilerin notlerını çalınması), ister biligilerinizi yok etme (tezinizin veya projenizin bulunduğu sabit diskin silnmesi) başarılı olabilir. Bu tür bir riski engellemek için BIOS’a girip sadece sizin aklınızda kalıcak biraz karmaşık bir şifre koyun (bu işlemi adım adım anlatamıyorum çünkü bir çok çeşit BIOS ekranı var ama hepsinde bir “password” seçeneği var.). Ama şifrenizi “sevdiğiniz bir arkadaşınızın adı, doğum tarihiniz, kedinizin adı, vb” gibi kolay tahmin edilicek kelimeler arasından atamayın. Biraz harf ve sayılar birlikte olsun.</p>
<p><!--more--><br />
İkinci adım olarak win2000 şifrenizden bahsetmek gerek. Yukarda anlattığım mantık çerçevesinde bilgisayarınız işletim sistemini çalışır hale getirdikten sonraki kısımla ilgili bir kaç uyarı daha yapıcağım. Win2000’ninizin şifresi de kolay bulunur (veya tahmin edilir) bir kelime veya kelime grubuysa biligilerinize sizin ve izin verdiğiniz kişiler dışında birilerinin ulaşması ve zarar vermesi kolaylaşıcaktı. Bunun için de yine biraz karmaşık bir şifre şeçmenizi öneririz.<br />
Burada ufak bir note yazmak ihtiyacı duydum bu şifrelerin şifre olarak kalablimesi için de tanıdıklarınıza veya ofisteki diğre arkadaşlarınıza çok gerekmedikçe söylenmemesi gerekiyor.</p>
<h3>Gerekli servisler:</h3>
<p>Sisteminizi güvenli hale getirmenin en önemli adımı belki de gerekli servislerle, gereksiz servisleri bilmek ve gereksiz olanları kapatmak veya silmektir. TCP/IP’nini basitçe çalışması için verilicek servisler çok da karmaşık değildir. Asteriksli (*) olanlar gerekli olan minimum servisleri göstermektedir. (bu noktadan sonra İngilizce terimleri kulanıyorum ki bilgisayar ekranında burada yazılı Türkçe terimle karşınıza gelicek İngilizcesi terimi karıştırmamanız için)</p>
<ul>
<li> DNS client*</li>
<li>EventLog*</li>
<li> IPSec policy Agent</li>
<li> Local Disk Maneger*</li>
<li> Network Connection Manager</li>
<li> Plug &#38; Play*</li>
<li> Protected Storage*</li>
<li> Remote Procedure Cell</li>
<li> Remote Registery Service</li>
<li> RunAs Service</li>
<li> Security Account Manager*</li>
</ul>
<p>Servisleri iyi güzel söyledik de bunları nasıl kapatıcağımızı da anlatmamız gerekli. Servislere gidiş yolu; Start &#124; Setting &#124; Control Panel &#124; Administartive Tolls &#124; Services. Bundan sonra istenilen servisin üstüne gelip çift tıklandığında o servisin özelliklerini gösteren bir pencere açılacak (örnek: Resim 1). Servisi bundan sonraki açılışlara aktif hale gelmesini istemiyorsanız “Start type” alanından “disable” seçeneğini seçin ama unutmayın ki bu servis hala açık olan makinenizde kulanılmaktadır. Bunu durdurmak içinde yine aynı pencerede gözüken “Stop” düğmesine basarsanız artık o servis çalışır durumdaki win2000’inizde de çalışmıyordur.</p>
<h3>Hotfixler ve SP(Service Pack)’ler:</h3>
<p>Tavsiyemiz win2000’nızı kurdunuz ve servislerin bir kısmnı kapatını, sonra yapılacak en öneli iş “windos update” sitesine bağlanıp, gerekli kritik güncelemeleri yapmanız ve SP’leri de bilgisayarınıza yüklemeniz. Burada dikkat edilecek bir notka var; kulanmadığınız servislerle ilgili yamaları uygulamanın bir anlamı yok. Taii bını anlamak için kulnabileceğiniz bazı araçlar var. Hangi hotfixlerin eksik olduğunu anlamak için “Hfnetcheck.exe” doysasını microsoft’un sitesinden biligisayarınıza çekip kontrol edebilirsiniz. İlgi çekici bir örenk olduğ u için burada belirtme ihtiyacı duydum; Nimda virüsü yayılırken yaması yapılmamış IIS’ler (microsoft tarafından dizayn edilmiş bir web sunucusu) biligisayarlara ve ağ iletişimine zarar verdi.</p>
<h3>System policy’in ayarlanması:</h3>
<p>Biraz da “system policy”den bahsediyim (veya bahsetmiş olan amcalardan derleme yapıyım). Bunun için izlenicek yol; Start &#124; Setting &#124; Control Panel &#124; Administrative Tolls &#124; Local Security Setting. Açılan pencerede bir miktar oynama yapacağınız “Account Policies, Local Policies” var.<br />
Burada yazan değerlerin hepsini yerine getirdiğinizde sizin bulunduğunuz şartlara uymayan bir durum ortaya çıkabilir. Bunu önlemek için önce kendi şartlarınızı gözden geçirin. Ondan sonra bu işlemleri yapın.</p>
<h3>Password Policies</h3>
<p>Enforce Password History                                            Enabled (önerilen değer 5)<br />
Maximum Password Age                                              Enabled (önerilen değer 60)<br />
Minimum Password Age                                               Enabled (önerilen değer 5)<br />
Password Must Meet Copmlexity Requirment               Enabled<br />
Store Password Using Reverse Encription                     Disabled</p>
<h3>Account Lockout Policies</h3>
<p>Account Lockout Treshold                                           Enabled (önerilen değer 5)<br />
Account Lockout Duration                                            Enabled (önerilen değer 30)<br />
Reset Account Locout Treshold After                           Disabled  (önerilen “manual reset of account”)</p>
<h3>Audit Policy</h3>
<p>Aşağıdaki değerleri minimal düzeyde tutarmanızı önerilir (unutmayın ki kendi koşullarınıza göre).</p>
<p>Audit Account Logon Events<br />
Audit Account Manegmen<br />
Audit Logon Events<br />
Audit Policy Change<br />
Audit System Events</p>
<h3>User Rights</h3>
<p>Klasik kural: administrator her türlü hakka sahiptir, gerisini de “durum” göre belirler. Burada genel bir yapıdan bahsetmek yanlış olucaktır. Yine de “everyone” bulunan seçenekleri bir daha gözden geçirmenizi tavsiye ederiz.</p>
<h3>Security Options</h3>
<p>Aşağıdaki liste içinde, “Microsoft Networking” kulanarak dosya alışverişi ve paylaşımı yapıyorsanız, “SBM encryption” ve “Secure Channel” önem kazanıyor. Buiki seçeneğn değerlerini belierlerken dikkatli davranıp kendi koşularınıza uygun olanını seçmelisiniz.</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td class="bgdark" valign="top">
<table border="0" cellspacing="1" cellpadding="2" width="100%">
<tbody>
<tr>
<td valign="top" bgcolor="#ffffff">Additional Restriction for Anonymos Connections</td>
<td valign="top" bgcolor="#ffffff">No access without explicit anonymous permision</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Allow System to Be Shut Down Without Having to Log  On</td>
<td valign="top" bgcolor="#ffffff">Disabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Audit Use of Backup and Restore Privilege</td>
<td valign="top" bgcolor="#ffffff">Enabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Clear Virtual Memory Pagefile When System Shuts Down</td>
<td valign="top" bgcolor="#ffffff">Enabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Digitaly Sign Client Communication (Always)</td>
<td valign="top" bgcolor="#ffffff">Enabled (yüksek düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Digitaly Sign Client Communication (When possible)</td>
<td valign="top" bgcolor="#ffffff">Enabled (orta düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Digitaly Sign Server Communication (Always)</td>
<td valign="top" bgcolor="#ffffff">Enabled (yüksek düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Digitaly Sign Server Communication (When possible)</td>
<td valign="top" bgcolor="#ffffff">Enabled (orta düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Disable CTRL-ALT-DEL Requirement for Logon</td>
<td valign="top" bgcolor="#ffffff">Disabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Do Not Display Last User Name in Log On</td>
<td valign="top" bgcolor="#ffffff">Enabled (çok kulanıcılı sistemlerde)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">LAN Manager Authentication Level</td>
<td valign="top" bgcolor="#ffffff">Send NTLMv2 responses only/refuse LM &#38; NTLM</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Number of Previous Logon to Cache ( In case Domain Controler Is Not Available)</td>
<td valign="top" bgcolor="#ffffff">0</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Prevent User From Installing Printer Drives</td>
<td valign="top" bgcolor="#ffffff">Enabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Recovery Console: Allow Automatic Administrative Logon</td>
<td valign="top" bgcolor="#ffffff">Disabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Rename Administrator Account</td>
<td valign="top" bgcolor="#ffffff">“admin” veya “administrator” yapmayın</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Restrict CD-ROM Access to Locally Logged-On User Only</td>
<td valign="top" bgcolor="#ffffff">Enabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Restrict Flopy Access to Locally Logged-On User Only</td>
<td valign="top" bgcolor="#ffffff">Enabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Secure Channel: Digitally Encrypt or Sign Secure Channel Data (Always)</td>
<td valign="top" bgcolor="#ffffff">Enabled  (yüksek düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Secure Channel: Digitally Encrypt Secure Channel Data (When Posible)</td>
<td valign="top" bgcolor="#ffffff">Enabled  (orta-yüksek düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Secure Channel: Digitally  Sign Secure Channel Data (When Possible)</td>
<td valign="top" bgcolor="#ffffff">Enabled  (orta düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Secure Channel: require Strong (Windows 2000 or Later) Session Key</td>
<td valign="top" bgcolor="#ffffff">Enabled  (çok yüksek düzey güvenlik)</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Send Unencrypted Password to Connect to Third-Party SMB Servers</td>
<td valign="top" bgcolor="#ffffff">Disabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Strengten Default Permissions of Global System Objects (e.g. Symbolic Links)</td>
<td valign="top" bgcolor="#ffffff">Enabled</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Unsigned Driver Installation Behavior</td>
<td valign="top" bgcolor="#ffffff">Do not allow</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Unsigned Non-Driver Installation Behavior</td>
<td valign="top" bgcolor="#ffffff">Do not allow</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<h3>Gereksiz altsistemlerin kaldırılması:</h3>
<p>Gereksiz altsistemlerin kapatılması diye bir konumuz daha var. OS2 ve Posix yazmaç (registry) değerlerini HKLM\ System\ CurremtControlSet\ Control\ Session\ Maneger\ Subsystem içinden kaldırabilirsiniz. İlgili dosyaları (os2*,posix* dosyaları) buradan silebilirsiniz. Bu sistemler artık genel kulanımda yoklar ama açıkları sayesinde bilgisayarınıza istemediğiniz kişiler tarafından bağlantı kurulabilme olanağı veriyor.</p>
<h3>Önemli dosyaların korunması:</h3>
<p>Bazı araçaların herkes tarafından kulanılmasını istemiyorsanız yeni bir admin grubu yaratın (örneğin AdminTools). Hangi kulanıcıların bu araçları kulanabilmelerini istiyorsanız onları bu grubun altına koyun. Bu doysalar üstündeki ACL’leri “LocalSytem” ve “Administrative Group”tan kaldırın ve “AdminTools”a bu dosyaların sahipliğini ve “Read” ve “Execute” hakkını verin. Bu dosyalar arasında ilk aklımıza gelenler;</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td class="bgdark" valign="top">
<table border="0" cellspacing="1" cellpadding="2" width="100%">
<tbody>
<tr>
<td valign="top" bgcolor="#ffffff">Arp.exe</td>
<td valign="top" bgcolor="#ffffff">Ipconfig.exe</td>
<td valign="top" bgcolor="#ffffff">Nbtstat.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">At.exe</td>
<td valign="top" bgcolor="#ffffff">Net.exe</td>
<td valign="top" bgcolor="#ffffff">Netstat.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Atsvc.exe</td>
<td valign="top" bgcolor="#ffffff">Nslookup.exe</td>
<td valign="top" bgcolor="#ffffff">Qbasic.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Calcs.exe</td>
<td valign="top" bgcolor="#ffffff">Posix.exe</td>
<td valign="top" bgcolor="#ffffff">Rdisk.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Cmd.exe</td>
<td valign="top" bgcolor="#ffffff">Rpc.exe</td>
<td valign="top" bgcolor="#ffffff">Regedt32.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Debug.exe</td>
<td valign="top" bgcolor="#ffffff">regedit.exe</td>
<td valign="top" bgcolor="#ffffff">Route.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Edit.com</td>
<td valign="top" bgcolor="#ffffff">Rexec.exe</td>
<td valign="top" bgcolor="#ffffff">Runonce.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Edlin.exe</td>
<td valign="top" bgcolor="#ffffff">Rsh.exe</td>
<td valign="top" bgcolor="#ffffff">Syskey.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Finger.exe</td>
<td valign="top" bgcolor="#ffffff">Secfixup.exe</td>
<td valign="top" bgcolor="#ffffff">Tracert.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">ftp.exe</td>
<td valign="top" bgcolor="#ffffff">telnet.exe</td>
<td valign="top" bgcolor="#ffffff">Command.com</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Xcopy.exe</td>
<td valign="top" bgcolor="#ffffff">Tftp.exe</td>
<td valign="top" bgcolor="#ffffff">Hypertrm.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Clipsrv.exe</td>
<td valign="top" bgcolor="#ffffff">Dialer.exe</td>
<td valign="top" bgcolor="#ffffff">Sysedit.exe</td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Attrib.exe</td>
<td valign="top" bgcolor="#ffffff">Ping.exe</td>
<td valign="top" bgcolor="#ffffff"></td>
</tr>
<tr>
<td valign="top" bgcolor="#ffffff">Wscript.exe</td>
<td valign="top" bgcolor="#ffffff">Cscript.exe</td>
<td valign="top" bgcolor="#ffffff"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<h3>TCP/IP süzgeçlenmesi</h3>
<p>TCP/IP filitrelendirmesi diye bir konudan bahsediceğimizi söylemiştik. Burada Win2000 iki çeşit sunuyor. TCP/IP filitrelendirmesi ve IPSec. TCP/IP filitrelendirmesi tek bir bilgisayarlar için kulanılırken, IPSec ise “Group Policy” olarak atanabilinir.</p>
<h3>TCP/IP filitrelendirmesi;</h3>
<p>Bir örnekle anlatmak en uygunu olucaktır. Diyelim ki bilgisayarınız FTP ve Web bır servis veriyor (ki bunları da vermesine genelde gerek yok). “Network and Dial-Up Connection” kulanılarak filitreleme yapabilirsiniz. Start &#124; Settings &#124; Network and Dial-Up Connection &#124; Properties &#124; General &#124; Internet Protocol (TCP/IP) &#124; Properties &#124; Advenced &#124; Options &#124; TCP/IP Filtering &#124; Properties. Biraz uzun gibi gözükse de azim her şeye çare. Aşağıdaki örnekte gözüktüğü üzere TCP bağlantılarını 21 (FTP), 80 (http) ve 443 (https) portlarıyla sınırlamış durumda. Hatta UDP portlarına hiç bir şekilde izin verilmemiş. Bu kısmı kulandığınız programlara verdiğiniz servislere göre ayarlıyabilirsiniz.</p>
<p><a href="http://fentanyl.files.wordpress.com/2009/01/22.gif"><img class="alignleft size-full wp-image-1202" title="22" src="http://fentanyl.wordpress.com/files/2009/01/22.gif" alt="22" width="480" height="444" /></a></p>
<h3>IPSec filitrelendirmesi;</h3>
<p>Bu seçenek bir grup için kulanlıldığında daha etkilidir. IPSec’in özelliklerinde “enable” işaretledikten sonra yapmanız gerekenler bitmiyecektir. “Local Security Setting” içine girip kendi “policy”inizi girmeniz gerekecek. Üç tane kolunlu bir tabloyu dolduracaksınız. Kolonlarda;</p>
<ul>
<li> IPSec filter lists</li>
<li> IPSec filter action</li>
<li> IPSec policy rules</li>
</ul>
<p>olucaktır. Bu ağ içinde sisteminize gelen ve sisteminizden giden trafiğin filitrelendirmesi sırasında uygulanıcak politikayı(policy), hangilerinin filitlendirileceği listesini (list), ve yapılacak işlemi (action) içermektedir. bu işlemlerden sonra “Local Machine”de “IP Security Policies” i kulnamaya baslıyabilirsiniz. Bunu için üstüne gelip sağ-tıkdan sonra “assign”ı seçin. Bilgisayarınızı tekrar başalamanıza gerek kalmadan hemen uygulamaya girecektir.</p>
<h3>Ufak tefek işler:</h3>
<ul>
<li> Uygulama dosyaların kulanım izinlerlini belirleyin</li>
<li> Sistemi önyüklemesinin(boot) hemen OS olmasını ayarlayın. Bu işlemı yapmak için My Computer &#124; Properties &#124; Advanced &#124; Startup and Recovery &#124; System Startup içindeki önyükleme değerini (boot time) “0” olarak belirleyin.</li>
</ul>
<h3>Sonuç:</h3>
<p>Buraya kadar yaptıklarınız arasında önyükleme (boot) esnasında yapıcağımız şifrelemeden, sistem süzgeçleme kadar pek çok şeyden bahsettik fakat bunların bir kısmı sizin bulunduğunuz ortam şartlarına uymayabilir. Daha önce de belittiğimiz gibi öncelikle kendi durumunuzu ortaya tüm hatlarıyla ortaya koyun ki yapıcağınız ayarlar bilgisayarınızı güvenli hale getirirken aynı zamanda da çalışmaz hale getirmesin. Sizlere sadece win2000 kurulumundan sonra yapılacak ilk işlemnleri anlatım ama daah yapılabilicek çok şey olduğunu unutmayım EK1’de alıntı yaptığim ve faydalı bulduğum sayfaların bağlantıları var.</p>
<p>Kolay gelsin.</p>
<h3>EK1:</h3>
<p>Burada anlatıklarım aşağıdaki sitelerden çıkrarılmış özet ve derlemelerdir. Daha fazla biligi ve ayrıntı için win2000 güvenlik sitelerini ziyarat etmenizi öneririm.</p>
<p>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/tools/w2kprocl.asp</p>
<p>http://www.systemexperts.com/tutors/HardenW2K101.pdf</p>
<p>http://nsa2.www.conxion.com/win2000/download.htm</p>
<p>http://www.yale.edu/its/security/new-index.html?http://www.yale.edu/its/security/Procedures/Securing/NT/w2k/</p>
<p>http://www.labmice.net/articles/securingwin2000.htm</p>
<p>http://arstechnica.com/tweak/win2000/security/begin-1.html</p>
<p>http://www.sans.org/infosecFAQ/win2000/win2000_list.htm</p>
<h3>İbrahim Çalışır</h3>
<p>BİLGİ İŞLEM DAİRESİ BAŞKANLIĞI<br />
İNTERNET TEKNOLOJİLERİ GÜVENLİĞİ<br />
( <a rel="nofollow" href="mailto:%73%65%63%75%72%69%74%79%40%6D%65%74%75%2E%65%64%75%2E%74%72?subject=%5BOLYMPOS-MAKALE%5D">security at metu.edu.tr</a> 11/02/2002)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[EventWriter]]></title>
<link>http://msdynamicsax.wordpress.com/2009/01/09/eventwriter/</link>
<pubDate>Fri, 09 Jan 2009 20:10:32 +0000</pubDate>
<dc:creator>erlenddalen</dc:creator>
<guid>http://msdynamicsax.wordpress.com/2009/01/09/eventwriter/</guid>
<description><![CDATA[Many of you have probably seen this blog entry on how to setup a batch-job in Ax as a windows servic]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Many of you have probably seen this blog entry on how to setup a batch-job in Ax as a windows service in Ax 4.0: <a href="http://axaptabuilder.blogspot.com/2006/04/how-to-setup-axapta-batch-server.html">http://axaptabuilder.blogspot.com/2006/04/how-to-setup-axapta-batch-server.html</a></p>
<p>When using this solution, remember to use the nssm.exe instead of the srvany.exe so that the windows service also stop if the aos stops.</p>
<p>Anyway, setting up a batch-job as a windows service is off cource nice and neat, since they can be set up to start automatically and you don&#8217;t have the need for a batch-client running at all times.<br />
An issue occures with logging though. How do you find out what has happened if something goes wrong? Well, you could look in the batch history for anything suspicious, but wouldn&#8217;t it be nicer to have errors, warnings and maybe even info&#8217;s logged in the windows event log?</p>
<p>I have made a neat little solution for Dynamics Ax 4.0 that does this that I have called EventWriter that is available upon request.</p>
<div id="attachment_111" class="wp-caption alignnone" style="width: 310px"><a href="http://msdynamicsax.wordpress.com/files/2009/01/eventwriter.jpg"><img class="size-medium wp-image-111  " title="eventwriter" src="http://msdynamicsax.wordpress.com/files/2009/01/eventwriter.jpg?w=300" alt="eventwriter" width="300" height="187" /></a><p class="wp-caption-text">eventwriter</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[When EventLog.WriteEntry fails on Windows Vista]]></title>
<link>http://zproxy.wordpress.com/2008/11/04/when-eventlogwriteentry-fails-on-windows-vista/</link>
<pubDate>Tue, 04 Nov 2008 13:18:11 +0000</pubDate>
<dc:creator>zproxy</dc:creator>
<guid>http://zproxy.wordpress.com/2008/11/04/when-eventlogwriteentry-fails-on-windows-vista/</guid>
<description><![CDATA[The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Secu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.</p>
<p>A project that worked before now throws the System.Security.SecurityException. Why is that?</p>
<p>It looks like we need to explicitly create a log source now.</p>
<p>How to detect that a source has not been created on vista?</p>
<blockquote><p><span><span><span style="color:#0000ff;font-size:x-small;">try<br />
</span><span style="font-size:x-small;">{<br />
</span><span style="color:#0000ff;font-size:x-small;"> </span><span style="font-size:x-small;"><span style="color:#0000ff;">return</span><span style="font-size:x-small;"> </span></span><span style="color:#2b91af;font-size:x-small;">EventLog</span><span style="font-size:x-small;">.SourceExists(Source, Server);<br />
</span><span style="font-size:x-small;">}<br />
</span><span style="color:#0000ff;font-size:x-small;">catch</span><span style="font-size:x-small;"> (</span><span style="color:#2b91af;font-size:x-small;">SecurityException</span><span style="font-size:x-small;">)<br />
{<br />
</span><span style="color:#008000;font-size:x-small;"> //Vista goes here if log doesn&#8217;t exists!<br />
</span><span style="color:#0000ff;font-size:x-small;"> return</span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;">false</span><span style="font-size:x-small;">;<br />
}</span></span></span></p></blockquote>
<p>At this point you will know if the source does not exist and yet you will be unable to <a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=293617">create it unless you run as administrator</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[VS : Writing to the event log FAILED .. Requested registry access is not allowed.]]></title>
<link>http://zeetalks.wordpress.com/2008/08/16/vs-writing-to-the-event-log-failed-requested-registry-access-is-not-allowed/</link>
<pubDate>Sat, 16 Aug 2008 04:36:54 +0000</pubDate>
<dc:creator>Zeeshan</dc:creator>
<guid>http://zeetalks.wordpress.com/2008/08/16/vs-writing-to-the-event-log-failed-requested-registry-access-is-not-allowed/</guid>
<description><![CDATA[This is one of the most frequent errors you&#8217;d see when logging with the Event Log. Error: Writ]]></description>
<content:encoded><![CDATA[This is one of the most frequent errors you&#8217;d see when logging with the Event Log. Error: Writ]]></content:encoded>
</item>
<item>
<title><![CDATA[Отправка eventlog по почте]]></title>
<link>http://zorion.wordpress.com/2008/05/12/eventlog-to-e-mail/</link>
<pubDate>Mon, 12 May 2008 01:28:17 +0000</pubDate>
<dc:creator>zorion</dc:creator>
<guid>http://zorion.wordpress.com/2008/05/12/eventlog-to-e-mail/</guid>
<description><![CDATA[Отправка последних пяти сообщений eventlog system по почте. Можно делать вложением файла, а можно и ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Отправка последних пяти сообщений eventlog system по <a href="http://forums.microsoft.com/TechNet-RU/ShowPost.aspx?PostID=3309321&#38;SiteID=40" target="_blank">почте</a>.</p>
<p>Можно делать вложением файла, а можно и сразу в тело сообщения.</p>
<p>Я опишу в тело.</p>
<p><!--more-->Способ первый (приходит практически мгновенно).</p>
<blockquote><p>$body = <strong>Get-EventLog</strong> system <em>-Newest</em> 5 &#124; <strong>Format-List</strong> &#124;</p>
<div><strong>Out-String </strong></div>
<p><strong> </p>
<p></strong>[Reflection.Assembly]::LoadWithPartialName(&#8220;System.Web&#8221;)</p>
<p>$smtpServer = &#8220;exchange&#8221;</p>
<p>$msg = <strong>New-Object</strong> system.web.mail.mailmessage</p>
<p>$msg.fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2</p>
<p>$msg.fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"] = $smtpServer</p>
<p>$msg.fields["http://schemas.microsoft.com/cdo/configuration/smtpserverpor"] = 25</p>
<p>$msg.to = &#8220;user@company.com&#8221;</p>
<p>$msg.from = &#8220;admin@company.com&#8221;</p>
<p>$msg.subject = &#8220;eventlog&#8221;</p>
<p>$msg.body = $body</p>
<p>[System.Web.Mail.SmtpMail]::smtpserver = $smtpServer</p>
<p>[System.Web.Mail.SmtpMail]::send($msg)</p></blockquote>
<p>Способ второй (приходит с задержкой, если кто объяснит почему, буду премного благодарен).</p>
<p>Тут используется библиотека <a href="http://www.codeplex.com/PowerShellCX">PowerShellCX</a></p>
<blockquote><p>$body = <strong>Get-EventLog</strong> system <em>-Newest</em> 5 &#124; <strong>Format-List</strong> &#124; <strong>Out-String</strong></p>
<p><strong>Send-SmtpMail</strong> <em>-SmtpHost</em> exchange.company.com <em>-From</em> admin@company.com <em>-To</em> user@company.com <em>-Subject</em> &#8220;eventlog&#8221; <em>-Body</em> $body</p></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Log path informations to eventlog, Even better.]]></title>
<link>http://weseetips.com/2008/03/23/log-path-informations-to-eventlog-even-better/</link>
<pubDate>Sun, 23 Mar 2008 19:10:41 +0000</pubDate>
<dc:creator>Jijo.Raj</dc:creator>
<guid>http://weseetips.com/2008/03/23/log-path-informations-to-eventlog-even-better/</guid>
<description><![CDATA[In most of our projects, when some error occurs, it’s being logged to the evenlog with line number a]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://weseetips.wordpress.com/files/2008/03/icon_description.jpg" alt="Icon Description" /><br />
In most of our projects, when some error occurs, it’s being logged to the evenlog with line number and filename. Its done by using __FILE__ and __LINE__ macro.</p>
<p>But the file macros expands to the fullpath. for e.g. If i am building the delivery in my personal folder &#8211; &#8220;C:\Jijo\Build\MyProduct&#8221;, the __FILE__ macro will include this full path and finally in eventlog will contain funny paths which the end-user might see. You can see some 3ed party eventlogs in event viewer which contains authors name in path. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://weseetips.wordpress.com/files/2008/03/icon_howcanidoit.jpg" alt="Icon How Can I Do It?" /><br />
You can use #line directive to modify <span style="color:#0000ff;">__LINE__</span> and <span style="color:#0000ff;">__FILENAME__</span>. The syntax is as follows,<br />
<span style="color:#0000ff;">#line lineno &#8220;FileName&#8221;</span></p>
<p>Please see an example below.</p>
<pre><span style="color:#000000;">#line __LINE__ "MyProduct\Sources\JobDll\Job.cpp"</span></pre>
<p><span style="color:#0000ff;"><img src="http://weseetips.wordpress.com/files/2008/03/icon_note.jpg" alt="Icon Note" /><span style="color:#0000ff;"><br />
</span></span>While experimenting I’ve found that – Its safe to use #line after all #includes. If its used at the top of file, It can be reinitialized by the include files. At first it was not working for me. Latter works. Anyway take care.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Errori: Eventid 18 Serial]]></title>
<link>http://appuntixpe.wordpress.com/2007/12/20/errori-eventid-18-serial/</link>
<pubDate>Thu, 20 Dec 2007 13:01:27 +0000</pubDate>
<dc:creator>manzamanna</dc:creator>
<guid>http://appuntixpe.wordpress.com/2007/12/20/errori-eventid-18-serial/</guid>
<description><![CDATA[aggiungere questa chiave al registro tramite TD, con Extra Registry Data: [HKEY_LOCAL_MACHINE\SYSTEM]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>aggiungere questa chiave al registro tramite TD, con Extra Registry Data:<br />
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Serial\Parameters</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Errori: Eventid 1041 Userenv]]></title>
<link>http://appuntixpe.wordpress.com/2007/12/20/errori-eventid-1041-userenv/</link>
<pubDate>Thu, 20 Dec 2007 13:01:02 +0000</pubDate>
<dc:creator>manzamanna</dc:creator>
<guid>http://appuntixpe.wordpress.com/2007/12/20/errori-eventid-1041-userenv/</guid>
<description><![CDATA[inserire: &#8220;Software Installation Group Policy Extension&#8221; poi &#8220;Software Installatio]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>inserire: &#8220;Software Installation Group Policy Extension&#8221;<br />
poi &#8220;Software Installation Group Policy MMC Snap-In&#8221;<br />
infine &#8220;Group Policy Core Administration MMC Snap-In&#8221;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mulai Kerja]]></title>
<link>http://tanpashell.wordpress.com/2007/11/12/mulai-kerja/</link>
<pubDate>Sun, 11 Nov 2007 19:20:30 +0000</pubDate>
<dc:creator>niefadja</dc:creator>
<guid>http://tanpashell.wordpress.com/2007/11/12/mulai-kerja/</guid>
<description><![CDATA[Beberapa hari yang lalu.. Hari apa ya? Kamis (8/11) kayaknya, gua udah mulai mempekerjakan diri seba]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Beberapa hari yang lalu.. Hari apa ya? Kamis (8/11) kayaknya, gua udah mulai mempekerjakan diri sebagai admin di jurusan.. Kerjaannya? Hmm.. Langsung banyak komputer rusak yang musti dipulihkan kembali. Masalah pertama yang gua sentuh itu komputer di ruang S2. Trobelnya, ada dua komputer kembar, di salah satu komputer tersebut ada data yang diperlukan dengan segera, dan keduanya ga bisa hidup. Komputer pertama punya harddisk yang dibutuhin datanya. Nah yang ini punya sindrom aneh, kalo ditekan tombol powernya, kipas cuma bergerak sebentar (kayak nggak niat gitu) kemudian berhenti. Kecurigaan pertama, power supply jebol.. Tapi koq lampu LAN dan LED di motherboard masih nyala ya?! Gua jadi berpikir dua kali, &#8216;waduh, nih komputer belon apa-apa dah minta dimanja aja..&#8217;<!--more--></p>
<p>Komputer kedua bisa nyala, tapi waktu dah mau sampe BIOS, eh dia teriak-teriak minta tolong, &#8220;Beeeep.. beep.. beep.. beep.. beep..&#8221; Walah, ini sih kalo nggak Graphic Card ya RAM.. Akhirnya, gua bukalah itu casing komputer, dan hasilnya: sang komputer ga punya RAM sama sekali! Gile, haregene.. Maling cuma RAM-nya doang! Huhuhu.. Ini perbuatan klepto gila yang baru pernah gua liat dari bermacam-macam kehilangan yang dah pernah gua saksikan. Sekeping DDR 512MB raib dari slotnya.. Dan dengan beberapa kali mikir, gua kepikiran cara ngehidupin salah satu komputer, &#8216;daripada ngga hidup dua-duanya..&#8217;<br />
<img src="http://tanpashell.wordpress.com/files/2007/11/4.gif" alt="Grin" /></p>
<p>Dicabutlah sekeping DDR 512MB dari komputer pertama yang <em>ngga niat</em> hidup, dan gua pindahkan ke komputer kedua yang kehilangan ingatannya.. Dan satu lagi perangkat gua transplantasikan, yang sebenernya tujuan utama gua disuruh ngoprek di ruang S2: si harddisk komputer pertama!<br />
<img src="http://tanpashell.wordpress.com/files/2007/11/3.gif" alt="Wink" /></p>
<p>Dengan begitu sebenarnya untuk sementara tugas gua selesai dulu.. Walaupun nanti harus ngeliat si komputer pertama yang mogok kerja, setidaknya komplain dari user telah mereda. Hehehe.. That is AdminGadungan&#8217;s job for now, and looking for another knowledge: Server Maintenance!<br />
<img src="http://tanpashell.wordpress.com/files/2007/11/33.gif" alt="Not Talking" /></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
