Friday, May 08, 2009

วิธี Audit file และ Folder

Concept
- Enable Audit Polocy สำหรับ audit file และ folder ต้องเลือก audit ที่ "Audit Object Access"
โดยไปที่ Computer Configuration/Windows Settings/Security Setting/Local Policy/Audit Policy/Audit Object Access เลือกว่าจะให้ audit กรณีไหน Failure , Success
-ไปที่ Object ที่ต้องการ audit เช่น file หรือ folder ก็ได้ click ขวาเลือก properties ไปที่แถบ Security กดปุ่ม Advanced ไปที่แถบ Audit แล้วใส่ User หรือ Group ที่ต้องการ Audit เสร็จแล้วเลือกว่าต้องการให้ audit กรณีไหนบ้างเช่น Delele file and folder และที่สำคัญ ห้ามเลือก Apply these auditing entries to objects and/or containers winthin this container only โดยเด็ดขาด ไม่งั้น มันจะไม่มีผลกับ object ที่อยู่ภายใน
- วิธีดู Event Log จะอยู่ใน Security Log แต่จะมีเยอะมาก จะต้องทำ Filter ดูเฉพาะ Source และ Category ที่ต้องการจะดูเท่านั้นเช่น Source = Security , Category = Object Access ถ้าจะดูว่าลบอะไรต้อง Click เข้าไปดูข้างใน

Note
- ต้องระวัง Log เต็มให้เพิ่มขนาด log ให้มีขนาดใหญ่พอที่จะเก็บข้อมูลได้นาน 1-2 เดือน
- สำหรับ Windows Server 2008
http://blogs.dirteam.com/blogs/jorge/archive/2008/04/29/auditing-in-windows-server-2008.aspx

การใช้ Filter สำหรับการหาไฟล์ที่ถูก Delete

1. Event ID ที่เกี่ยวข้องคือ 4663 , 4656
2. Event Level = Information
3. Event Sources = Microsoft-Windows-Security-Auditing
4. Task Catagory = File System
5. Keyword = Audit Success
6. เมื่อสร้าง Filter เสร็จแล้วสามารถ Save ให้เป็น Custom Filter ได้ด้วย

Friday, May 01, 2009

Noise Margin and Line Attenuation

Noise Margin (ยิ่งมากยิ่งดี)
5db or below =bad, no sync/intermittent sync
8db-13db = average - and no sync issues
14db-22db = very good
23db-28db = excellent
29db-35db = rare, can throw a rock at co/remote

Line Attenuation (ยิ่งน้อยยิ่งดี 0=node)
ต่ำกว่า 20 = rare, great copper lines, close to co/remote
20-30 = excellent
30-40 = very good
40-60 = average
60-65 = poor
65 and above will have issues

Monday, April 27, 2009

Transfer Domain from NSI to GoDaddy

ขั้นตอนสรุปคร่าวๆ

1. ไป unlock domain protect ที่ nsi ก่อน มันจะส่ง authorization code มาให้ (default มันจะ lock มาให้เลย)
2. หลังจากที่สมัครการย้าย Domain ที่ godaddy แล้ว มันจะส่ง Transaction ID และ Security Code ให้
3. ใน godaddy ไปที่ my account section domain transfer แล้วก็ไปใส่ transaction id , security code , authorization code
4. รอ 5 วัน ไม่จะเป็นต้องตอบรับหรือทำอะไร

---------------------
1. ขอเปลี่ยนอีเมลในส่วน Admin Contact เป็นที่ท่านสามารถเช็คได้ เพื่อความสะดวกในการย้ายโดเมนเน
 เนื่องจากต้องมีการคลิกยืนยันการย้ายโดเมนนะค่ะ

2. ขอ unlock โดเมนเนม

3. Request ให้ส่ค่า AuthCode มาให้ทาง email (บางที่ถ้าปลด lock จะส่ง AuthCode มาให้เองไม่ต้องขอ)

4. *** สำคัญมากค่ะ หากมีการตั้งค่า Protect Privacy ของโดเมนเนมไว้ รบกวนทางบริษัทที่ดูแล Disable ในส่วนนี้ด้วยค่ะ

ระหว่างการย้ายโดเมนเนมไม่มีผลต่อการออนไลน์หน้าเว็บไซต์เดิม (หากโดเมนเนมและเว็บไซต์ที่เดิยังไม่หมดอายุ)

-------------------------------------


Monday, April 20, 2009

การปลด lock google apps

บางกรณี Account บาง Account ใน Google Apps อาจจะถูก lock เองได้ (เช่นใส่ password ผิดหลายๆครั้งเป็นต้น)
ซึ่งจะทำให้ไม่สามารถรับส่ง mail ทาง pop กับ smtp ได้ แต่สามารถเข้าทาง webmail ได้
สามารถทำการปลด lock ได้โดยเข้าที่ที่นี่
https://www.google.com/a/[yourdoamin.com]/UnlockCaptcha


สำหรับ account gmail ปกติ สามารถปลด lock ได้จาก

https://www.google.com/accounts/DisplayUnlockCaptcha

ถ้าไม่ได้จริงๆให้เข้าที่นี่แทน สามารถปลด lock ได้ทั้ง gmail และ google apps
https://accounts.google.com/DisplayUnlockCaptchaV2

Sunday, April 19, 2009

SPF Records for Google Apps

SPF = Sender Policy Framework เอาไว้ระบุว่าสามารถส่ง mail ได้จาก server เครื่องไหนบ้างเพื่อป้องกันคนอื่นแอบส่ง email ในนามของ domain เราเอง คือทาง mail server ของผู้รับปลายทางจะสามารถตรวจสอบได้ว่า email ถูกส่งมาจาก mail server ของ domain เราจริงหรือไม่


สำหรับ Gmail แนะนำให้ใช้ค่าดังนี้
v=spf1 include:aspmx.googlemail.com ~all

แต่มีผู้พบข้อผิดพลาดแล้วรอการแก้ไขอยู่ โดย google แนะนำให้ใช้ค่านี้
v=spf1 include:_spf.google.com ~all

เมื่อรวมกับความต้องการที่อาจจะมีการส่ง mail form จาก web server จึงแนะนำให้ใช้ค่านี้แทน
v=spf1 a mx include:aspmx.googlemail.com include:_spf.google.com ~all

โดยที่
a = สามารถส่ง mail ได้จาก server ที่ระบุไว้ใน a record (ก็คือ web server นั่นเอง กรณีทั่วๆไป)
mx = สามารถส่ง mail ได้จาก server ที่ระบุไว้ใน mx record
~all = soft fail คือจะยอมให้ส่งได้ แต่อาจจะไปเข้าที่ spam แทน (สามารถ check ดูได้จาก full mail header)

-all = fail คือจะไม่ยอมให้ส่งเลย

- spf record = คือ record type เป็นชนิด txt ใน dns version ใหม่อาจจะรู้จัก record spf ได้เลย
- ถ้าดูใน dns zone เต็มๆจะเห็นเป็นเช่น example.com. IN TXT "v=spf1 -all"
- mail server ฝั่งรับจะเป็นฝ่าย check spf ว่าจะตัดสินใจรับ mail ที่ส่งมาแบบไหน

Validate SPF
http://www.kitterman.com/spf/validate.html

อ่านเพิ่มเติมได้ที่
http://old.openspf.org/wizard.html


http://www.zytrax.com/books/dns/ch9/spf.html


http://www.hybrid6.com/webgeek/2009/03/google-provides-incorrect-spf-record-info-for-google-apps.php

http://www.labnol.org/internet/authenticate-google-apps-email-with-spf/13877/

Note
- กรณีที่เข้า webmail.xxx.com จากภายในบริษัทไม่ได้ จะต้องไปเพิ่ม cname record ใน dns server ให้เป็น
webmail = ghs.xxx.com แล้วจะเข้าได้


การตรวจสอบ spf record
1. ใช้ nslookup set record type=txt
2. ส่ง blank mail ไปที่ spf-test@openspf.org หรือ check-auth@verifier.port25.com
รอการ reply กลับมา ดีที่ spf check ว่า pass

Tuesday, April 07, 2009

Using POP on multiple clients.

Leave mail on Server จะไม่มีผลเมื่อใช้ POP กับ Gmail
วิธีแก้ก็คือเพิ่ม recent: เข้าไปข้างหน้า username แล้วมันจะสามารถดึง mail ย้อนหลังได้ 30 วัน
แต่ต้องอย่าลืมเลือก enable Leave mail on Server เอาไว้ด้วย
แต่ยังมีข้อเสียคือ มันจะ download mail ที่เราเป็นคนส่งเองกลับมาด้วย
วิธีแก้ใจ outlook ให้สร้าง mail rule แล้วตั้งว่า do not download from server เอาไว้ สำหรับเมลที่ส่งจากตัวเอง

gmail แนะนำให้ใช้ imap แทน เพราะมีข้อดีเช่น สามารถ report spam ได้โดยการย้ายเมล์ไปไว้ใน folder spam แต่ imap ก็ยังมีความไม่สะดวกหลายอย่าง

smtps server = smtp.gmail.com:465
pops server = pop.gmail.com:995
imaps server = imap.gmail.com:993
smtps สำหรับ Outlook 2007 = port 587 TCP Outbound (encryption = TLS)

Wednesday, January 14, 2009

BOOT.INI ที่สามารถใช้ได้กับ partition เกือบทุกอัน

[Boot Loader]
timeout=30
Default=multi(0)disk(0)rdisk(0)partition(1)\Windows

[Operating Systems]
multi(0)disk(0)rdisk(0)partition(1)\Windows="1ST TRY THIS seleccione esto primero" /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\Windows="2ND TRY THIS essayez ceci en deuzieme" /fastdetect
multi(0)disk(0)rdisk(0)partition(2)\Windows="3RD TRY THIS wahlen Sie diesen Third" /fastdetect
multi(0)disk(0)rdisk(1)partition(2)\Windows="4TH TRY THIS selezioni questo fourth" /fastdetect
multi(0)disk(0)rdisk(0)partition(3)\Windows="5TH TRY THIS selecione este fifth" /fastdetect
multi(0)disk(0)rdisk(1)partition(3)\Windows="6TH TRY THIS seleccione este sexto" /fastdetect
multi(0)disk(0)rdisk(0)partition(4)\Windows="7TH TRY THIS essayez ceci en septieme" /fastdetect
multi(0)disk(0)rdisk(1)partition(4)\Windows="8TH TRY THIS wahlen Sie dieses achte" /fastdetect
C:\="9TH TRY THIS selezioni questo nono"
D:\="10TH TRY THIS selecione este decimo"

Monday, December 22, 2008

OpenVPN สามารถใช้งานหลัง NAT ได้ทั้งได้ Server และ Client

http://www.itdestination.com/articles/openvpn/

วิธีเพิ่ม RDP Listening Port ของ Terminal Server

How can I add a new RDP listening port to Windows 2000/2003 Terminal Server?

http://www.petri.co.il/add_a_new_rdp_listening_port_to_terminal_server.htm

Monday, December 15, 2008

Enabling the ISA Server 2004 VPN Server

การ set vpn ให้ connect จาก WindowsXP,2003,XP ไปยัง ISA Server ที่อยู่หลัง NAT ผ่าน PPTP หรือ L2TP ถ้า ISA Server มี IP จริงสามารถใช้ L2TP ได้แต่ถ้าไม่มี IP จริงแล้วใช้การ Forward port จะต้องใช้ PPTP แทน โดย forward port 1723 TCP มาที่ ISA ด้วย
http://www.isaserver.org/articles/2004vpnserver.html

Tuesday, December 09, 2008

Open Port for PPTP VPN

ถ้าต้องการใช้งาน PPTP ที่อยู่หลัง Firewall หรือ NAT ทำให้ไม่ได้รับ IP จริง จะต้องทำการ forward port หรือเปิด port ให้กับ port 1723 TCP จึงจะสามารถใช้งานได้

ส่วน L2TP VPN จะไม่สามารถใช้งานได้ถ้าอยู่หลัง NAT เพราะว่าจะต้องมี IP จริง

Tuesday, November 25, 2008

Remote Assistance for Corporate

ปกติแล้วการจะใช้งาน Remote Assistance นั้นจะต้องมีการ invite ก่อนเสมอ แต่สำหรับการใช้งานแบบ Helpdesk ภายในบริษัทนั้น เราสามารถใช้ GPO เข้ามาช่วยให้ไม่ต้องมีการ invite ก่อนก็ได้ โดยมีวิธีการดังนี้

1. ใช้ GPO ไปที่ Computer Configuration/Administrative Template/System/Remote Assistance และ Enable Offer Remote Assistance
2. เลือก Helper ที่จะสามารถ remote เข้ามาใช้งานหน้าเครื่องได้ โดยให้อยู่ใน format ดังนี้ DOMAIN\USERNAME โดยที่ User นั้นจะต้องเป็นสมาชิกของ Local Administrator
3. จากเครื่องของ Helper ให้ไปที่ Help and Support/Tool/Offer Remote Assistance แล้วใส่ IP หรือชื่อเครื่องที่ต้องการ Remote เข้าไป
4. ที่หน้าเครื่องของ user จะมี popup ขึ้นมาให้ถามว่าจะยอมให้ remote เข้ามาควบคุมหรือไม่

NOTE
- ยังไม่ได้ทดสอบให้แน่ใจ หลายๆอย่าง เช่น การ block remote assistance , firewall
- ถ้า user ที่ไม่ได้อยู่ใน list ของ helper เวลา remote ไปจะขึ้นว่า Permission Denied
- เครื่องที่ connect เข้าไปถ้าไม่ได้อยู่ใน domain เดียวกัน จะไม่สามารถ remote เข้าไปได้
- ใน helper list สามารถเพื่ม group ก็ได้ ไม่จำเป็นจะต้องเป็น user เท่านั้น เช่น DOMAIN\administrators ก็ได้เหมือนกัน
- GPO ที่อยู่ติดกับ Offer Remote Assistance ก็คือ Solicited Remote Assistance เราสามารถ Disable เอาไว้ได้ ไม่มีผลต่อการใช้ Remote Assistance ใน Corporate
- เมื่อ Enable Offer Remote Assistance ใน GPO แล้วจะทำให้ตัวเลือกของ Remote Assistance ที่อยู่ใน tab Remote ของ System ได้ถูก Enable เอาไว้ด้วย แต่ยังไม่ได้ลองว่า user จะสามารถส่ง Invite ออกไปทาง Msn หรือทาง Email ได้หรือเปล่า

http://www.petri.co.il/enable_remote_assistance_offering_in_xp_2003.htm
http://www.petri.co.il/offer_remote_assistance_in_windows_xp.htm

Sunday, November 02, 2008

Event ID 7000 (Service Control Manager Timeout)

To work around this problem, increase the default timeout value for the service control manager in the registry.


To increase the timeout value in the registry, follow these steps:


If the ServicesPipeTimeout value is not available, add the new DWORD value, and then set its value data to 60000 in the Control key. To do so, follow these steps: a. Locate and then click the following registry key:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet

b. Click the Control subkey.

c. On the Edit menu, point to New, and then click DWORD Value.

d. Type ServicesPipeTimeout, and then press ENTER.

e. Right-click the ServicesPipeTimeout DWORD value, and then click Modify.

f. Click Decimal.

g. Type a value of 120000, and then click OK.

The value is 120000 milliseconds and is equivalent to 120 seconds or to one minute.


Note This change does not take effect until the computer is restarted.

Wednesday, August 27, 2008

Iphone Installer / Cydia Repositories

http://xsellize.com/installer

Tuesday, August 26, 2008

Arcserve Job Script and Job Template

Job Scripts

You can save any type of job as a script. The script contains the source, destination, and options that you selected, as well as the schedule information. It also contains any filters you created to include and exclude files and directories.

Creating a script has the following advantages:
1. You can re-use the same settings at a later time.
2. You can copy your settings to a different network machine running BrightStor ARCserve Backup.
3. You can quickly resubmit regularly executed jobs after a job has been accidentally deleted.

To use a script, go to the Job Status Manager and use the Add Job button. When you specify the job script name, all of the information that you set when you saved the job script will be used, including the files and directories and the scheduling information.

Create and Use Job Scripts

To create a script, perform the following procedure:
1. Set up the job.
Select the source, destination (if required), scheduling method, and any options or filters.
2. Click Start.
3. Fill in the requested security (and for backups, agent) information.
4. When the Submit Job dialog appears, click Save. (ปุ่ม save job ที่อยู่ทางด้านขวามือ ของ Dialog)
The Save Job Script dialog appears.
5. Give the script a name.
BrightStor ARCserve Backup scripts are stored in the BrightStor ARCserve Backup home directory by default, extension ".asx". You can specify a different directory in which to save your script. You can also provide a job description in the edit text box.
6. Click Save.

Note: You can also save job scripts using the Save or Save As options from the File menu.
To use a script, perform the following procedure:
1. Open the Job Status Manager.
2. Click Add Job. (ไม่ได้อยู่ใน menu แต่ให้ click ขาวในหน้า Job Status)
3. Specify the script file name.

Job Templates

A job template contains a series of settings such as the destination, options, and schedule information for the job. Similar to job scripts, a template can also contain any filters you created to include and exclude files and directories.

Job templates are different from job scripts because they provide the flexibility to repeat custom backup schedule settings on other BrightStor ARCserve machines. Because the job template does not retain the backup source information as the job script does, the template files can be copied and applied to any new server source running BrightStor ARCserve Backup. Job scripts, on the other hand, cannot be modified to accommodate new server sources.

You can choose from seven default job templates or you can create a custom template to meet your individual backup needs. The default job templates are designed to meet specific backup tasks such as rotation scheme, backup method, and GFS options. The default job templates can be accessed from the File menu when you choose the Open Job Template option.

Create Job Templates

You can create a custom job template that you can save for future jobs on any BrightStor ARCserve Backup machine.

To create a job template:
1. Open the Backup Manager by selecting Backup Manager from the Quick Start menu.
2. Make selections for your backup job by accessing the Source, Destination, and Schedule tabs.
3. Submit your job by clicking the Start button.
4. Click Save Template in the Submit Job dialog box to save your new job template with an .ast filename extension.

While default job templates are stored in the Templates/Jobs folder in the BrightStor ARCserve Backup directory, you can save your template in any directory you want. To open your custom job template on a local machine or from a remote server, access the File menu and choose the Open Job Template option. Once the job template is open, you can submit your job.

Zyxel Backup and Restore Config

ftp to zyxel with user root
for backup get rom-0
for restore put rom-0
zyxel will auto reboot

all information include ip address and user/password will change to new config

Thursday, August 07, 2008

ท่อ PVC

ท่อ PVC ให้ใช้ยี่ห้อท่อน้ำไทย

ท่อเดินเมนทั่วไป ชั้น 8.5 ขนาด 2 นิ้ว
ท่อเดิน ขึ้นบ้านทุกจุด 1 นิ้ว
พอจะออกมาที่ จุดก๊อก จึงลดโดยใช้ข้อลดเหลี่ยม
จาก 1 เป็น 1/2 นิ้วครับ

จุดที่มีการเปลี่ยนจากท่อ PVC เป็นเหล็ก
ต้องใช้ข้อต่อเกลียวใน แบบทองเหลือง ฝังในตัว PVC ครับ

ท่อน้ำทิ้ง ชั้น 5 ขนาด 2 นิ้ว
ท่อส้วม ชั้น 5 ขนาด 4 นิ้ว

ชั้น 8.5 หมายถึง ทนแรงดันได้ 8.5 kg/ ตารางซม. ครับ
ชั้น 5 หมายถึง ทนแรงดันได้ 5.0 kg/ตารง ซม. ครับ

ทุกๆ 1 kg หมายถึง เท่ากับ แรงดันที่เกิดจากน้ำสูง 10 เมตรครับ
ดังนั้น 8.5 หมายถึง ทนแรงดันได้ เท่ากับ การตั้งแท้งค์น้ำไว้สูง 85 เมตรครับ
ซึ่งยังไม่เห็นมีใครทำ

อย่างมาก 25 เมตรก็สูงลิบแล้ว

(ยกเว้นอาคารใหญ่ๆ) จะเป็นระบบท่ออีกอย่างหนึ่ง

เครดิต น้าพร@pantip

Tuesday, July 22, 2008

Note for Receriver

Astro ทอง ใช้ encryption แบบ NDS Version 1 หรือบางทีเรียกว่า VideoGuard

LNB ของ Astro เป็นแบบ Universion คือ LO = 09750 , HI = 10600, Threshold = 11700
LNB ของ UBC ใช้ LO/HI = 11300 , Threshold = 11700
LNB ของ C-band ใช้ 05150 ทั้ง LO/HI , Threhold = 11700

Tuesday, May 27, 2008

How to convert an IP address from the firewall log into a dotted IP address.

แบบที่ 1

SELECT
CAST(SourceIP / 256 / 256 / 256 % 256 AS VARCHAR) + '.' +
CAST(SourceIP / 256 / 256 % 256 AS VARCHAR) + '.' +
CAST(SourceIP / 256 % 256 AS VARCHAR) + '.' +
CAST(SourceIP % 256 AS VARCHAR) AS [Nice Source Ip], FirewallLog.*
From FirewallLog

แบบที่ 2 สร้าง Function เอาไว้ให้เรียกใช้งานได้ง่าย

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

CREATE FUNCTION [dbo].[ConvertLongIP]
(
@LongIP bigint
)

RETURNS varchar(15)
AS
BEGIN

DECLARE @DotIP varchar(15),
@bin varbinary(4)
select @bin = cast(@LongIP as varbinary(4))
select @DotIP = cast(convert(int,substring(@bin,1,1)) as varchar(3)) + '.'
+ cast(convert(int,substring(@bin,2,1)) as varchar(3)) + '.'
+ cast(convert(int,substring(@bin,3,1)) as varchar(3)) + '.'
+ cast(convert(int,substring(@bin,4,1)) as varchar(3))
RETURN @DotIP
END

การลบข้อมูลใน SQL 2005 ที่เก่ากว่า 90 วัน

แบบที่ 1
DELETE FROM WebProxyLog where LogTime < (getdate() - 90) DELETE FROM FirewallLog where LogTime < (getdate() - 90) แบบที่ 2 ดีกว่า ลบได้แน่นอนกว่า delete from firewalllog where datediff(dd,logtime,getdate()) > 90
delete from webproxylog where datediff(dd,logtime,getdate()) > 90
select logtime from firewalllog where datediff(dd,logtime,getdate()) > 1

ได้ผล แต่ต้องรอ 2 วัน ดีกว่าการใช้ แบบที่ 1

ถ้าใช้ SQL Express Edition ที่ไม่มี Scheduler จะต้องใช้ Schedules Tasks ของ Windows แทนเช่น
sqlcmd -S .\ISALOG -d ISALOG d:\ISALOG\cleandatabase.sql
แล้วค่อยใส่คำสั่ง delete from ... ลงไปในไฟล์ cleandatabase.sql

-S = ชื่อ server , . หมายถึง localhost , \ISALOG คือชื่อ Instant
-d = ชื่อ database
-i = ชื่อ sql script

http://msdn.microsoft.com/en-us/library/aa258269(SQL.80).aspx

Monday, May 26, 2008

วิธี Block MSN หรือ Windows Live Messenger

Concept ใช้ได้กับ Firewall เกือบทุกตัว
ให้ Block MSN protocal ที่ใช้ port 1863 เพื่อเป็นการบังคับให้ MSN เปลี่ยนไปใช้ port 80 HTTP จากนั้นค่อยทำการ block signature ของ MSN นั่นก็คือการ Block Request URL ที่มี string gateway/gateway.dll เป็นส่วนประกอบ

การ Block Signature โดยใช้ ISA Firewall
1. ไปที่ rule ที่มี http protocal รวมถึง rule ที่ยอมให้ออกหมดทุก protocal (ทุก protocal หมายถึง ทุกอันที่ define เอาไว้ใน protocal definition ดังนั้นจึงรวม http protocal เข้าไปด้วย) แล้ว click ขวาเลือก Configure HTTP
2. ไปที่แถบ Signature กดปุ่ม Add ใส่ข้อมูลตามนี้
Name = Block MSN
Search in = Request URL
Signature = gateway/gateway.dll


Note
สรุป port และ URL ของบริการที่ MSN ใช้
http://support.microsoft.com/kb/927847

Tuesday, May 20, 2008

ISA 2004/2006 logging using local SQL 2005

การ Config ในส่วนของ SQL Server

- Install Microsoft SQL 2005 Express Edition
- ปัจจุบันออก SP3 แล้ว จะรวมมาใน package เลย
- ในหน้า Registration Information ให้เอา checkbox Hide advace configuration option เพื่อให้สามารถตั้งชื่อ Instant ได้ให้ชื่อว่า ISALOG
- Service Account ให้เลือกเป็น Local System ตรงนี้สำคัญมากว่าจะต้องทำให้ User ที่ใช้ run service ISA Firewall กับ SQL2005 เป็น User เดียวกันไม่งั้นจะ start SQL Log ไม่ได้ ในเวป isaserver.org เป็นกรณีที่ SQL Server เป็น Server คนละตัวกับ ISA Firewall แต่ในกรณีนี้เราต้องการให้อยู่บน server เดียวกัน ดังการการ setting จึงต่างกันนิดหน่อย
- เลือก Windows Authentication Mode
- Add User to the SQL Server Administrator Role จะเป็นการเพื่ม user ที่เป็นคน install sql 2005 ให้อยู่ใน administrator role ของ SQL 2005 จะเลือกหรือไม่ก็ได้ (เลือกเอาไว้ดีกว่า)
- หลังจาก Install เสร็จแล้ว ให้ไปดูที่ Service ของ Microsoft Firewall และ SQL Server (ISALOG) run ด้วย user เดียวกันคือ Loal System ถ้าไม่ตรงก็เปลี่ยนให้ตรงกัน
Note ถ้ามีปัญหา start SQL ไม่ได้แล้วถ้าไปดูใน eventlog จะเห็นว่า error มันเกิดจากการที่ user ที่ใช้ run service ไม่ผ่าน มันไม่ได้เป็น user เดียวกับที่ไปกำหนดให้ใช้ในตอน config log ของ ISA ด้วย สังเกตุได้จากในขั้นตอนนั้นใส่ user อะไรไปก็จะ Test ผ่านหมด
- Install Microsoft SQL Server Management Studio Express
- เปิด SQL Studio Express ขึ้นมาเพื่อสร้าง Database ISALOG เอาไว้ที่ Drive D: (ถ้าไม่กำหนดเอง มันสร้างไว้ที่ Drive C:) เพราะว่าต้องเก็บ log เอาไว้ 90 วันตามพรบ ใช้เนื้อที่มาก
- ที่ Object Explorer แตกออกมาให้เห็น Database แล้ว Click ขวาเลือก New Database ตั้งชื่อ Database = ISALOG
Owner = NT AUTHORITY\SYSTEM
Path = D:\ISALOG
- สร้าง Table FirewallLog และ WebProxyLog ขึ้นมาให้อยู่ใน Database ISALOG โดยใช้ script FWSRV.SQL และ W3PROXY.SQL ที่มีมาให้อยู่แล้วใน ISA2006 folder
- ไปที่ Menu File/Open แล้วเปิด fwsrv.sql และ w3proxy.sql พิมพ์เพิ่มเข้าไปข้างบนว่า
USE ISALOG
เพื่อเป็นการบอกให้สร้าง table เอาไว้ใน Database ISALOG แล้วสั่ง Execute
- ย้อนกลับไปดูใน Datbase ISALOG จะเห็นว่ามี table เพิ่มขึ้นมา 2 table คือ dbo.firewalllog และ dbo.webproxylog
- เปิด SQL Server Surface Area Configuration ขึ้นมาแล้วไปที่ Remote Connection เปลี่ยนจาก Local connection only เป็น Local and remote connection -> Using TCP/IP only
- เปิด SQL Server Configuration Manager ขึ้นมา ไปที่ Protocal for ISALOG -> ICP/IP = Enable
ไปแถบ IP Address แล้ว Enable ทุก IP Address , ลบ Dynamic Port ออกให้ว่างๆ, TCP Port ใส่ 1433 ทุกอัน , Enable = Yes ทุกอัน
- OK แล้ว Restart SQL Service
- ไม่จำเป็นต้อง assign permission อะไรใน Database ISALOG เพราะ system สามารถเขียนข้อมูลลงไปได้อยู่แล้ว

การ Config ใส่ส่วนของ ISA Server

- เปิด Edit System Policy(อยู่ใน Task Pane ของ Firewall Policy)/ Logging/ Remote Logging /
แถบ General -> Enable this configuration group
- ไปที่ Monitoring /Logging /Configure Firewall Loggin เลือก SQL Database / Option
Server = ชื่อของ ISA Firewall
Port = 1433
Database = ISALOG
Table = FirewallLog (หรือ WebProxyLog)
Uncheck Force data encryption เพราะเราใช้ Local Database ไม่ใด้ใช้ Remote Database
เลือก Use Windows authentication
User = อะไรก็ได้ ไม่มีผลเพราะใช้งานโดย Local System
Password = อะไรก็ได้ ไม่มีผลเพราะใช้งานโดย Local System
กด Test จะผ่าน

Testing
- เปิด SQL Studio Express ขึ้นไปแล้วไปที่ New Query พิมพ์ว่า
select * from dbo.firewalllog แล้วกดปุ่ม Execute จะเห็น log ที่เก็บไว้
- ทดสอบ Webproxylog พิมพ์ว่า
select * from dbo.webproxylog
- อย่าลืมให้เลือก Database ISALOG ตรง Dropdown ด้านซ้ายบนด้วย ไม่งั้นจะ error เพราะว่ากลายเป็นการ query จาก database อื่น

Note

- ISA 2004 ใช้ ODBC แต่ ISA 2006 ใช้ Direct Access to SQL
- อย่าทำ Compress Disk กับ drive ที่เก็บ data file ของ SQL เพราะจะทำให้ performance ตกลง 500%
- เว็ปที่มีประโยชน์เกี่ยวกับ ISA อีกเวปนึง
http://www.elmajdal.net/ISAServer/

Thursday, May 15, 2008

GFI Webmonitor V.4

White List - จะ bypass กฎทุกอย่างเช่น block hi5 แต่ถ้าใส่ user ที่ไม่ต้องการ block เอาไว้ใน white list แล้วจะเข้าได้ หรืออาจจะสามารถใส่ ip หรือ hostname ของ site ที่ต้องการเข้าก็ได้เช่น *.google.com, *.yahoo.com จะทำให้ site พวกนี้ผ่านกฎทุกกฎ ดังนั้นให้ใช้อย่างระมัดระวัง

Black List - ถ้ามีชื่ออยู่ใน black list จะห้ามทุกอย่าง

Web Filtering Policies - สามารถ Edit ได้ว่าต้องการให้ Filter content ไหนออกไปได้บ้าง อาจจะนำมาใช้กับ MSN ก็ได้(ไม่ได้ผลลองแล้ว) โดยทั่วไปจะใช้ไม่ให้เข้าเวปพวกที่มี Adult Content

Download Control Policies - สามารถเอาไว้ block ไม่ให้ download ไฟล์บางประเภทได้โดยดูจาก Content-type อาจจะเอามาประยุกต์ใช้ไม่ให้ download ไฟล์บางนามสกุลได้

Virus Scanning Policies - สามารถไปกำหนดให้ Scan Virus กับไฟล์ประเภทไหนบ้าง แล้วขึ้นจะให้ขึ้น Download Status Windows หรือเปล่า ถ้าเจอ Virus จะให้ทำยังไงเช่น delete หรือ warn

Whitelist = *.eset.com สำหรับ update nod32
Blacklist = *.hi5.com

Saturday, May 10, 2008

Schedule Task

ใน Run As ให้ใช้ NT AUTHORITY\SYSTEM โดยที่ไม่ต้อง set password จะทำให้ใช้ได้ตลอด ไม่ต้องกังวลเรื่องที่จะเปลี่ยน pasword แล้ว task ไม่ยอม run

Wednesday, April 30, 2008

SM Bus Controller Driver Download

SM Bus Controller
ต้องลง Intel® Chipset Software Installation Utility สามารถ download ได้จาก http://downloadcenter.intel.com/Product_Filter.aspx?ProductID=816

สำหรับ Sound Driver
Hotfix KB888111 UAA สำหรับ SP3 ยังไม่มี ต้องใช้ของ SP2 ไปก่อนโดยไปหลอกให้เห็นเป็น SP2 โดยการแก้ registry key HKLM\SYSTEM\ControlSet001\Control\Windows\CSDVersion = 200 จาก 300 แล้วค่อย install KB888111 สำหรับ SP2 แล้วค่อย install audio driver

Saturday, April 26, 2008

ISA2006 Backup and Restore

Backup ทั้งหมด

Export
1. เปิด ISA Server Management ขึ้นมา แล้ว right click ที่ ชื่อ ISA Server เลือก Export (Backup) ทำตาม Wizard
2. ถ้าต้องการ export user passwd ที่ได้มีการ set ไว้ใน ISA จะต้องติ๊กที่ Export confidential infomation ด้วย เพื่อให้เราใส่ passwd ในการ encrypt ข้อมูลเหล่านี้เพื่อความปลอดภัย
3. ถ้ามีการ set user เพื่อ delegate จะต้องเลือก Export user permission settings ด้วย

Import
1. การ import ก็ทำคล้ายกัน แต่จะมี option ให้เลือกว่าจะ Import หรือ Overwrite(restore)
- import ข้อมูลที่ import เข้ามาจะถูกเพื่มเข้าไปเข้าไปใน configuation (ข้อมูลปัจจุบันไม่หายทั้งหมด)
- overwrite(restore) จะเข้าไปทับข้อมูลปัจจุบันทั้งหมด(ข้อมูลปัจจุบันหายหมด) เอาไว้ใช้ในกรณีที่ ISA พัง

Note
ข้อมูลที่ Export ออกมาไม่สามารถเอาไปใช้ข้าม version กันได้เช่นระหว่าง Standard กับ Enterprise ใช้กันไม่ได้

Backup แค่บางส่วน
ให้เลือก object ที่ต้องการ backup แล้ว right click เลือก import/export หรืออาจจะเลือกจาก Task Pane ก็ได้

Monday, April 21, 2008

วิธีใช้ Windows Server 2008 แบบไม่หมดอายุ

1. เวลา Install ไม่ต้องใส่ Cdkey และ Disable Auto Activate
2. Disable Service SL UI Notification เพื่อจะได้ไปสามารถลบไฟล์ออกได้
3. Take Ownership ของไฟล์เหล่านี้
c:\windows\system32\SLLUA
c:\windows\system32\SLUI
c:\windows\system32\SLUINotify.dll
4. Restart และลบไฟล์เหล่านี้ออก หรือถ้าสามารถลบออกได้โดยไม่ต้อง Restart ก็ลบไปเลย
5. Restart และทดสอบโดยการตั้งเวลาล่วงหน้าไป 1 ปี และลอง Restart อีกที แล้วลองเข้า Windows Update ถ้าทำได้ปกติ ก็แสดงว่าผ่าน

Friday, April 18, 2008

Oracle Backup

การ Backup แบ่งเป็น

1. Logical Backup
คือการ export ข้อมูล ออกมาเก็บไว้ใน dump file ข้อดีคือง่าย และไม่ต้องปิดการใช้ฐานข้อมูลขณะที่ export ปกติจะ export ข้อมูลทั้งหมดของ user แต่สามารถเลือกให้ backup ทั้ง databast หรือแค่บาง table ก็ได้

ตัวอย่างคำสั่งที่ใส่ไว้ใน batch file เช่น

exp userid=[user]/[passwd] file=[database.dmp] log=[logfile.log] rows=y

"E:\Oracle Backup\rar.exe" a -df -m5 -agYYYY-MM-DD .\Backup\ *.dmp

2. Physical Backup
เป็นการ backup ไฟล์ที่ประกอบเป็นฐานข้อมูลจริงๆ ซึ่งประกอบไปด้วย
- Control File
- Data File
- Redo Log File
- Parameter File
- Password File
- Archive File
แบ่งออก 2 แบบ คือ Cold Backup กับ Hot Backup

Cold Backup หรือ Full Backup
ประกอบด้วย 3 step คือ
1. shutdown oracle ด้วย utillity ที่ชื่อว่า svrmgrl (สำหรับ oracle8i แต่ถ้าเป็น oracle9i จะสั่งจาก SQL*Plus ซึ่งจะต้อง login ด้วย role sysdba ซึ่งเปรียบเสมือน root ของ oracle มีสิทธิ์ทำได้ทุกอย่าง)
EX
SVRMGR> connect internal (เปรียบเสมือน root ของ oracle8i )
default password of internal = oracle
SVRMGR> shutdown immediate หรือ shutdown normal

2. copy file ฐานข้อมูลต่างๆข้างบนไปเก็บไว้ในที่ปลอดภัย
EX
copy oracle_file backup_media
อย่าลืมจด path ของไฟล์เหล่านั้นเอาไว้ด้วย เวลา restore คืนจะได้เอาไปใส่ไว้ได้ถูก path

3. startup oracle
EX
SVRMGR> startup

Hot Backup
เป็นการ copy file คล้ายกับ cold backup แต่ไม่ต้อง ปิดฐานข้อมูลก่อน แต่วิธีทำจะซับซ้อนกว่า และสามารถใช้กับฐานข้อมูลที่ทำงานแบบ Archive Mode ได้เท่านั้น

1. สั่งเริ่มต้นการทำ Hot Backup ของ tablespace โดยใช้คำสั่ง
SVRMRG> alter tablespace tablespace_name begin backup;
2. คัดลอกไฟล์ของ tablespace ที่สั่งทำ backup ไปเก็บไว้ยังดิสก์สำหรับสำรองข้อมูล โดยใช้คำสั่ง copy
3. สั่งหยุดการทำ Hot Backup ของ tablespace โดยใช้คำสั่ง
SVRMRG> alter tablespace tablespace_name end backup;
4. สั่งให้ฐานข้อมูล switch log file เพื่อให้เกิดการทำ checkpoint ขึ้นในฐานข้อมูล
SVRMRG> alter system switch logfile;

วิธีการหาที่อยู่ของไฟล์ที่ต้อง Backup

1. Data File
select file_id,file_name from dba_data_file;
หรือ
select file#,name from v$datafile;
2. Control File
select name from v$controlfile;
หรือ ดูจากไฟล์ initSID.ora ซึ่งเป็น parameter file ของฐานข้อมูลก็ได้ ตรงบันทัด CONTROL_FILE
SID คือ System Identifier หรือชื่อของฐานข้อมูล เช่นถ้าเรามี database ชื่อ SUN ก็จะมีชื่อ control file ว่า initSUN.ora
3. Redo Log File
select group#, member from v$logfile;

4. ดูว่ามีฐานข้อมูลอะไรบ้าง และสามารถทำ hot backup ได้หรือไม่
select name, created, log_mode from v$database;
ถ้า log_mode = archivelog แสดงว่าสามารถทำ hot backup ได้
ถ้า log_mode = noarchivelog แสดงว่าทำ hot backup ไม่ได้

5. ดูว่ามีไฟล์อะไรที่ถูกสั่งทำ hot backup บ้าง
select * from v$backup;

Note
- view จะขึ้นต้นด้วย v$ สามารถดูได้จาก Oracle Enterprise Manager (OEM) ใน Schema SYS ว่ามี view อะไรบ้าง เช่น v$parameter , v$pwfile_users, v$tablespace เป็นต้น
- OEM สามารถใช้ดูว่าใน oracle มี database อะไรอยู่บ้าง และใน DB นั้นมี user , tablespace, schema อะไรอยู่บ้างได้
- เราสามารถใช้ OEM ช่วยในการดูตำแหน่งของไฟล์ต่างๆได้ง่ายขึ้นเช่น
control file ดูได้จาก Storage/Controlfile
datafile ดูได้จาก Storage/Tablespaces/ชื่อของ tablespace ซึ่ง 1 tablespace อาจจะประกอบไปด้วยหลายๆไฟล์ก็ได้ , ต่างนามสกุลกันก็ได้
Redo Logfile ดูได้จาก Stroage/ Redo Log Groups

Tuesday, April 08, 2008

Zyxel add forward port more than 12 rules

โดย Default แล้วสามารถตั้งค่า forward port ใด้ใน Web Admin หรือ SMT คือ 12 rules แต่ถ้าใช้ CI จะสามารถ set ได้ถึง 24 rules ต่อ 1 server set มีได้ทั้งหมด 10 server set และสามารถ set ค่าได้แบบละเอียดคือ

- สามารถตั้งชื่อ rule ได้ -> คำสั่ง rulename เช่นเวป config จะเห็น rule แรกที่มีชื่อว่า DMZ อันเดียว
- Server Port Range -> คำสั่ง svrport
- Server IP -> คำสั่ง forwardip
- Internal Server Port Range -> คำสั่ง intport ไม่ได้ใช้
- Remote Host IP Range -> คำสั่ง remotehost ไม่ได้ใช้
- Lease Time
- Protocal

ตัวอย่างการตั้งค่า rule ที่ 13 ให้ forward port 3390 ไปที่ ip 192.168.15.1

ras> ip nat server load 1 # load server set 1
ras> ip nat server disp 1 # display rule of server set 1
ras> ip nat server edit 13 forwardip 192.168.15.1 # add forward to server 192.168.15.1
ras> ip nat server edit 13 svrport 3390 3390 # add server port 3390
ras> ip nat server edit 13 active yes # enable rule
ras> ip nat server save # ไม่ค่อยแน่ใจว่าทำเสร็จแล้วต้อง save หรือเปล่า
ถ้าไม่ได้ต้องใช้ autoexec.net
ถ้าทำผิดต้องการยกเลิกสั่ง
ras> ip nat server edit 13 clear # ล้างบันทัดที่ 13 ทั้งหมด ต้องทำใหม่ตั้งแต่ต้น

Sunday, March 30, 2008

FXS and FXO

FXS = Foreign eXchange Subscriber
เป็นส่วนเชื่อนต่อที่มีคุณสมบัติต่อไปนี้
1. มี Dial Tone
2. มี Battery สำรองไฟ
3. มีกระแสไฟของสัญญาณ Ringing ซึ่งจะถูกส่งมาจากชุมสายโทรศัพท์
บางครั้งจะเรียกว่า Plug on the wall หรือช่องต่อโทรศัพท์ที่มีอยู่ตามผนังนั่นเอง

FXO = Foreign eXchange Office
เป็นส่วนเชื่อมต่อที่มีอยู่บนตัวเครื่องโทรศัพท์ โดยจะรับสัญญาณที่มาจาก FXS เพื่อทำหน้าที่ในการ On Hook หรือ Off Hook เพื่อให้สัญญาณโทรศัพท์ที่ส่งมานั้นครบวงจร

การที่จะทำให้ระบบโทรศัพท์ใช้งานได้จะต้องมีการเชื่อมต่อระหว่าง FXS ที่มาจากชุมสายโทรศัพท์ หรือ PABX มาเชื่อมต่อเข้ากับ FXO ของเครื่องโทรศัพท์

การเชื่อมต่อที่ผิดเกิดจากการที่นำ FXS มาต่อกับ FXS หรือ FXO มาต่อกับ FXO เช่นการนำเครื่องโทรศัพท์ 2 เครื่องมาต่อกัน จะไม่สามารถใช้งานได้

ปกติแล้ว PABX จะแบ่งออกเป็น 2 ส่วนคือ
1. CO Line หรือสายนอก มีคุณสมบัติเป็น FXO Interface เอาไว้ใช้เชื่อมต่อกับสายนอกที่มาจากชุมสาย (FXS)
2. Extension หรือ สายใน ซึ่งเป็น FXS Interface เพื่อให้เครื่องโทรศัพท์ภายใน office มาต่อและสามารถใช้งานได้

VOIP Phone Adapter
เช่น Linksys PAP2T (2 FXS) จะใช้ได้กับ 2 หมายเลข ใช้กับเครื่องโทรศัพท์แบบทั่วไปได้

Voice Gateway
จะเหมือนกับ VoIP Phone Adapter เพียงแต่สามารถรองรับได้หลายหมายเลขกว่าเช่น 4 ports , 8 ports จะแยกเป็น FXO , FXS ขึ้นอยู่กับการใช้งาน เช่น Linksys SPA 3102

ไม่แน่ใจ
- fxs จะเอามาต่อกับ card ที่รับสายนอก(fxo) ของ pabx เพื่อเวลาโทรออกจะได้ออกจาก voip เสมือนว่า fxs เป็นสายนอกอีกอันหนึ่ง
- fxo จะเอามาต่อกับ card สายใน (fxs) ที่ออกจาก pabx เสมือนกับเป็นสายในหมายเลขหนึ่ง

Thursday, March 06, 2008

การเพิ่ม Custom Time Server เข้าไปในแถบ Internet Time ของ Windows XP, 2003

ไปที่ Register Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers
เพิ่ม String Value = 3 ใส่ค่า pool.ntp.org
Default = 3

Monday, March 03, 2008

การใช้ KIS Block Internet Explorer

Kaspersky Internet Security V.6.0

เป็นการใช้ Firewall ใน Anti Hacker / Setting/ Rule of Applications/
เลือก iexplorer กดปุ่ม Edit ตรง HTTP, HTTPS ให้เปลี่ยนจาก Allow ไปเป็น Block

การตั้ง Exclude สำหรับ File Anti-Virus
อยู่ที่ Protection กด Setting / Trust Zone/ Exclusion Mask
ใส่ชื่อไฟล์หรือ folder ลงไปก็ได้ จะใส่แบบ Absolute หรือไม่ก็ได้ สามารใช้ widecard ร่วมด้วยก็ได้ เช่น
- ทุกๆไฟล์ที่อยู่ใน folder work ของทุกๆ folder ใส่เป็น work\*.*
- abc.* หรือ abc.12* ก็ได้

Group Policy Disable Error Reporting

Using GPO

Computer Configutation/Administrative Templates/Error Reporting
Display Error Notification = Disable
Advanced Error Reporting settings/Report operating system errors = Enable

Manual Setting

Control Panel/System/Advanced/Error Reporting

Saturday, March 01, 2008

การแก้ปัญหา Arcserve Backup Incomplete

Backup Incomplete

เกิดจากการที่ backup บางไฟล์ไม่สำเร็จ เนื่องจากโดน lock เอาไว้ แก้ได้โดยการใช้ Filter ที่อยู่ในหน้า backup เพื่อทำการ exclude ไฟล์ที่มีปัญหาออกไป โดยการ click ขวา แล้วเลือก Filter เลือก File Pattern หรือ Directory Pattern แล้วใส่ path เต็มๆของ file หรือ folder ลงไป เช่น ไฟล์ d:\work\mywork.txt หรือ folder d:\work

Note
- สำหรับ Directory Pattern นั้น ห้ามใส่ \ ปิดท้ายโดยเด็ดขาด เช่นห้ามใส่ว่า d:\work\

Saturday, February 23, 2008

Startup Delayer (Freeware)

มีประโยชน์มากเอาไว้ตั้งเวลา Delay startup program ตอน boot เครื่อง เช่นต้องรอให้โหลดอะไรบางอย่างเสร็จก่อนถึงจะ start program ได้

Saturday, January 26, 2008

Hostname Logger v 1.2 for ISA Server

ไม่ต้องเสียเงินซื้อ loghostname แล้วครับ มีให้ใช้ฟรีๆ ที่นี่เลย
http://www.elmajdal.net/ISAServer/HostLogger.aspx
http://www.elmajdal.net/ISAServer/

client ที่เป็น Secure Nat จะใช้ block Domain Name กับ URL Set ไม่ได้ผล เพราะ Secure Nat มันจะไม่ resolve IP ไปเป็น domain name ให้

Tuesday, January 22, 2008

Auto Logon with Domain Account

ปกติแล้วเครื่องที่เป็นสมาชิก Domain จะถูก Disable Auto Logon เอาไว้อยู่แล้ว จะต้องไปแก้ไข Registry HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

AutoAdminLogon = 1

DefaultDomainName = <ชื่อ Domain ของเราในแบบ Netbios> ### ก็คือที่แสดงอยู่ใน dropdown ที่จะให้เลือกตอน Logon นั่นเอง

DefaultUserName = <ชื่อ User ที่จะให้ Auto Logon> ### จะต้องเป็น Blank Password

Note
บางทีถ้าเปลี่ยน DefaultDomainName แล้วอาจจะทำให้ค่า AutoAdminLogon reset กลับไปเป็น 0 ได้ จะต้องเข้ามาทำซ้ำอีกครั้ง

เสร็จแล้วสั่ง RUN > control userpasswords2 แล้วเพิ่ม Domain User ที่ต้องการให้ Auto Logon เข้ามา
เลือก Group Membership ให้เป็น Administrators (ของ Local Computer) ทดสอบด้วยการ Restart

Note
- ถ้าต้องการให้ Autorun โปรแกรมหลังจากที่ Logon เสร็จสามารถทำ Shortcut ไปใส่เอาไว้ใน Startup ของ User นั้นๆได้

- ควรเพิ่มความปลอดภัยให้กับ User นี้โดยการกำหนด Workstation ที่จะสามารถ Logon ได้โดย Logon to Workstation และ User cannot change password.

Monday, January 21, 2008

Reverse Lookup Zones and Event ID 40961

Reverse DNS records, aka PTR records, are used when you have an IP address you need to resolve to a name. While it is not 100% necessary to create a reverse lookup zone in your Active Directory domain this is a popular error.

Event Type: Warning Event Source: LSASRV Event Category: SPNEGO (Negotiator) Event ID: 40961 Date: 1/1/2005 Time: 12:30:45PM User: N/A Computer: COMPUTERNAME Description: The Security System could not establish a secured connection with the server DNS/prisoner.iana.org. No authentication protocol was available.

So what is prisoner.iana.org? Well its a blackhole of sorts. RFC 1918 defines three zones called 10.in-addr.arpa, 16.172.in-addr.arpa, and 168.192.in-addr.arpa on three DNS servers called blackhole-1.iana.org, blackhole-2.iana.org and prisoner.iana.org containing these zones. When a client updates its DNS PTR record it will update the reverse lookup zone xxx.xxx.in-addr.arpa. If you have a reverse lookup zone configured, it will be successful. However if you do not have a reverse lookup zone, thanks to RFC 1918, it will try to register itself with prisoner.iana.org (or one of the other blackhole servers) and fail.

To resolve this issue create a reverse lookup zone. It is ok to ignore this warning but best practice would be to configure a reverse lookup zone.

Tuesday, January 08, 2008

GPO ที่น่าสนใจ

GPO ที่น่าสนใจ

1. User Configuration / Administrative Templates / System / Ctrl+Alt+Del / Remove Task Manager --> Disable

2. User Configuration / Administrative Templates / Control Panel / Prohibit Access to Control Panel --> Disable

3. User Configuration / Administrative Templates / Control Panel / Force Classic Control Panel Style --> Enable

4. User Configuration / Administrative Templates / Desktop / Remove My Computer Icon on the Desktop --> Disable

5. User Configuration / Administrative Templates / Windows Components / Windows Explorer / Remove the Folder Options menu item from the Tools menu --> Disable

6. User Configuration / Administrative Templates / Windows Components / Windows Explorer / Turn on Classic Shell

7. Computer Configuration / Windows Settings / Security Settings / Local Policies / Security Options / Shutdown: Allow system to be shut down without having to log on

8. Computer Configuration/ Windows Settings/ Security Setting / Security Option/ Account: Guest Account Status = Disable

9. Computer Configuration/ Windows Settings/ Security Setting / Security Option/ Account: Rename Administrator Account

10. Computer Configuration/ Windows Settings/ Security Setting / Security Option/ Account: Rename Guest Account

11. Users Configuation/Administrative Template/Windows Settings/Internet Explorer/
เกี่ยวกับ Auto Complete

Friday, January 04, 2008

Terminal Services Manager and Terminal Services Configuration

Windows Server 2003 ยอมให้มีใช้ Remote Desktop ได้พร้อมกัน 2 session เท่านั้น บางทีถ้า session ค้าง เนื่องมาจากการออกด้วยวิธีการ Disconnect แทนที่จะเป็น Logoff หรือด้วยเหตุผลอื่นเช่นต้องการ run โปรแกรมทิ้งเอาไว้ จะทำให้ session เต็ม เราสามารถที่จะ connect กลับไปยัง session ที่เปิดทิ้งเอาไว้ หรือ สามารถที่จะ Reset Sessess นั้นทิ้งไปได้

Option ต่างๆมีดังนี้

1. Connect
สั่ง Connect Session สามารถ Connect กับ Session ของใครก็ได้ที่เรารู้ password ถ้าเจ้าของ session ยัง logon อยู่ จะถูกแตะออกไปแทน แล้วเราจะเข้าไปแทนที่ session นั้นแทนโดยหลุดออกจาก session ของเราเอง

2. Disconnect
สั่ง Disconnect Session โดยที่ Application ต่างๆยังคงทำงานอยู่

3. Send Message
ส่งข้อความถึงกัน โดยขึ้นมาเป็น Popup Message

4. Remote Control (Shadow Session)
มีความสามารถเหมือน PcAnywhere จะสามารถเลือก option นี้ได้ก็ต่อเมื่อ อีก session ไม่ได้ Disconnect เท่านั้น และไม่สามารถเรียกได้จาก Console , สามารถตั้งได้ว่าเจ้าของ session ต้องให้ความยินยอมก่อน หรือไม่ก็ได้ (จาก Terminal Services Configuration) Defaule Hotkey คือ CTRL+* ที่กดจาก Keypad ถ้าใน Notebook จะกดไม่ได้ต้องไปเปลี่ยน * ให้เป็นอย่างอื่น

5. Reset
ลบ Session ที่ค้าง(ไม่ทำงาน, hang)อยู่ออก ใช้เมื่อ Session ค้างเท่านั้น นอกนั้นให้ใช้ logoff แทน

6. Status
ดู Session Stat Counter

7. Logoff
Logoff user ที่ค้างอยู่ออกจาก session

Note
รายละเอียดการใช้งานต่างๆสามารถอ่านได้ใน Help

Saturday, December 15, 2007

การเพิ่ม Time Server และเปลี่ยนแปลงความถึ่ของการ Synchronize

To synchronize more often

find the W32Time registry key given below modify the existing value called "SpecialPollInterval". If you don't see SpecialPollInterval listed in this section, you can create it as a new DWORD value. The value of this should be set to the number of Seconds between sync attempts. If you wanted to check once per day, the value would be 86400.

System Key: [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient]
Value Name: SpecialPollInterval
Data Type: REG_DWORD (DWORD Value)
Value Data: Seconds in Decimal

To add more time servers

first check to see if your version of Windows will let you simply type them in on the screen shown above. If so, this saves you the trouble and possible problems of editing the registry yourself.

If your version of Windows won't let you simply add them on the screen above, you may need to add them manually yourself. Find the registry key for DateTime Servers provided in full below and create a new string value. Name it the next number in sequence (usually '3') and set the data of the new value to equal the hostname or IP address of the time server.

You can also change the default server by setting the value of "(Default)" to the entry number of the required server.

System Key: [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDateTimeServers]
Value Name: (Default)
Data Type: REG_SZ (String Value)
Value Data: Server Hostname or IP Address

Friday, November 30, 2007

Rename Workstation Name in the domain.

ต้องใช้คำสั่ง netdom ที่ต้องลงเพิ่ม อยู่ใน Support\Tools ในแผ่น Windows XP CD.

รูปแบบคำสั่ง

netdom renamecomputer <ชื่อเก่า> /newname:<ชื่อใหม่>
/userd:<ชื่อโดเมนแบบ netbios>\<ชื่อ user ที่เป็น domain admin> /passwordd:*
/usero:<ชื่อlocal admin> /passwordo:*
/reboot:<เวลาที่รอก่อนจะ reboot>

ตัวอย่างคำสั่ง

netdom renamecomputer CIS /newname:IT
/userd:MYDOMAIN\MYADMIN /passwordd:*
/usero:administrator /passwordo:*
/reboot:30

* = รอให้ใส่ password
o = object = local
d = domain

Tuesday, November 20, 2007

Volume Shadow Service (VSS)

Concept คือ
1. สร้าง share ขึ้นบน Windows Server 2003
2. ไปที่ Drive Propertites ที่มีการสร้าง share แล้ว enable VSS เสร็จแล้วกำหนด schedule สำหรับ backup ว่าจะให้ทำตอนไหนบ้าง กันพื้นที่ไว้เท่าไหร่ (VSS จะ backup เฉพาะ folder ที่ได้ทำการ share เอาไว้เท่านั้น และจะทำการเรียกคืนจาก client ที่ได้ map share นั้นเอาไว้)
3. การเรียกคืน file , folder จะเรียกคืนได้จากเครื่องที่ได้เข้าถึง share โดยให้เลือก properties จะมีแถบ Old Version เพิ่มขึ้นมาให้เลือกว่าจะ restore version ไหนกลับคืนมา

Note
- ตรง Schedule จะแปลกหน่อยคือมีมาให้โดย default อยู่ 2 schedule ซื่งทำงานทั้งคู่ ต้อง click dropdown ลงมาถึงจะเห็น สามารถแก้ไข ลบออก หรือเพิ่ม schedule ใหม่เข้าไปก็ได้ซึ่งจะทำงานทุกอันที่ list ไว้

- The snapshot is taken if the "modified date" is newer than the last snapshot date.
- If the modified date is older than the last snapshot date, then no snapshot is taken.
- Example: the last snapshot was Monday at 7AM. It is now Tuesday at 3PM. A file with a Last Modified Date of Monday at 5PM will get copied, and a file with Last Modified Date of Sunday will not be copied.

Publishing Print Sever Behind ISA Firewall

ขั้นแรกต้อง Forward Port 9100 ที่ตัว Router ก่อน
สร้าง Protocal Definition ขึ้นมาโดยมีค่าดังนี้
Port = 9100
Protocal Type = TCP
Direction = Inbound
หลังจากนั้นก็สร้าง Access Rule ธรรมดา แล้วก็ add tcp/ip printer ธรรมดา

Sunday, November 04, 2007

Windows Time Synchronization

การ Synchronize ของ Windows 2003/2000/NT จะขึ้นอยู่กับ Windows Time Serivce (W32time)
Windows 2003 ใช้ NTP
Windows XP ใช้ SNTP/NTP
Windows 2000 ใช้ SNTP

Default time sync
Windows 2003 every 15 minutes
Windows XP every 7 days
Windows 2000 every 45 minutes จนกว่าจะสำเร็จ หลังจากนั้นทุกๆ 8 ชั่วโมง

เราต้องการที่จะทำให้ DC ของ Domain sync กับ Time Server ภายนอก แล้ว Workstation ทุกตัว Sync กับ DC อีกที

W32Time ใช้ Network Time Protocol (NTP) หรือ Simple Network Time Protocol (SNTP) ในการ synchronize Windows 2000/2003 network.
(The only available input to W32Time is NTP or SNTP) แต่ NTP จะมีความแม่นยำมากกว่า SNTP

EventID 29,38,47,50 แสดงถึงการที่ W32time ไม่สามารถ sync time ได้

Synchronizing a Windows 2003 domain controller or Windows XP client (SP2) to a time server

1. Stop W32time service
2. ตั้งเวลาของเครื่องให้ย้อนหลังกลับไป เพื่อทดสอบว่าเมื่อ w32time ทำงานปกติแล้ว เวลาจะถูกตั้งค่าอย่างถูกต้องหรือไม่
3. Define the authoritative time server and configure the windows 2003 domain controller or XP workstation for NTP client mode

โดย default แล้ว Windows 2003 และ Windows XP SP2 จะถูกกำหนดให้ sync time กับ external time server เอาไว้อยู่แล้ว แต่จะถูกตั้งค่าให้ทำงานใน mode Symmetric Active mode แต่ NTP time server จะตอบสนองเฉพาะกับ Client Mode เท่านั้น จึงต้องเปลี่ยน mode ก่อนโดย ไปที่ CMD แล้วสั่ง

w32tm /config /manualpeerlist:xxx.xxx.xxx.xxx,0x8 /syncfromflags:MANUAL

โดยที่ xxx.xxx.xxx.xxx คือ ip ของ NTP time server

4. เสร็จแล้วสั่งใช้ service w32time ทำงาน แล้วสั่ง w32tm /resync ใน CMD

ตรวจสอบดูเวลาของเครื่องว่าตรงหรือยัง

Note
0x1 = Instead of following the NTP specification, wait for the interval specified in the SpecialPollInterval entry before attempting to recontact this time source. Setting this flag decreases network usage, but it also decreases accuracy.

0x2 = Use this time source only as a fallback. If all time sources that are not fallbacks have failed, then the system selects one fallback time source at random and uses it.

0x4 = Set the local computer to operate in symmetric active mode in the association with this source.

0x8 = Set the local computer to operate in client mode in the association with this source.

Tuesday, October 09, 2007

ช่องความถี่

VHF Low (47MHz-68Mhz) => 2-4
FM (88MHz-108MHz)
S-Band Low (104MHz-174MHz)=> s1-s10
VHF High (174MHz-230MHz)=> 5-12
S-Band High (230MHz-300MHz)=> s11-s20
UHF Low (470MHz-582MHz)=> 21-34
UHF High (582MHz-862MHz)=> 35-69

Explanation of (L.O.) Local Oscillator Frequency

Explanation of (L.O.) Local Oscillator Frequency:

Suppose a signal comes from the satellite at a microwave frequency of 12 GHz but your typical receiver tunes up only to 1.75 GHz? (Also bear in mind that most cable will NOT happily pass frequencies much above 2GHz).
The function of the LNB is to reduce the frequency of the satellite signal. It does so by subtracting a frequency figure from the satellite signal frequency.
This figure is called the "Local Oscillator" frequency ("LO") of the LNB.
So an LNB with a LO of 10.25GHz will send a 12GHz satellite signal down the cable at 1.75GHz (just within range of your old receiver).
12GHz - 10.25GHz = 1.75GHz
Working in reverse, if your highest satellite frequency is 12.6 GHz then you will need an LNB with a LO of at least
12.6 - 1.75 = 10.85GHz
in order to reduce the satellite signal to a frequency that your receiver can "see" (1.75 GHz).
Now let's reverse the process again:
A "standard" LNB has a LO of 10.0GHz. So the highest satellite program frequency that your standard receiver can *see* is
1.75 + 10.0 = 11.75GHz
An "enhanced" LNB has a LO of 9.75 GHz
1.75 + 9.75 = 11.50GHz
A "universal LNB has TWO LOs. One is 9,75 (same as "enhanced") The other is 10.6 which is selected if it "hears" a 22kHz (just above audio) signal.
1.75 + 10.6 = 12.35GHz
Of course, if your receiver can accept signals up to 2.0 GHz then the highest acceptable signal frequency becomes
2.00 + 10.6 = 12.60GHz
And a receiver with a tuner that extends to 2.15GHz achieves
2.15 + 10.6 = 12.75GHz (which happens to be the top of the "Telecom" band!)
Now, you are still puzzled about the DBS LNB
This has a LO of (typically) 10.75GHz
So an old 1.75GHz receiver will get up to
1.75 + 10.75 = 12.50GHz
A final consideration has to be the LOWER limit on tuning:
Most old receivers can tune no lower than 0950 MHz (= 0.95GHz) whereas later ones might go down to 0.70GHz.
Check out the above calculations with these lower tuning range limits to see the overall tuning bandwidth for any receiver.
This is all very basic "sums" - nothing complex - so once you have a "picture" of what is happening, you can sketch little band plans for any combination of receiver annd LNB.
Once you know the value(s) of the LO(s) in the LNB and of the upper and lower tuning limits of the receiver in question, you can quickly figure out what can be received.
NOTE:
Older receivers *expect" an LNB with a 10.0 LO and the frequency display is arranged just for this. However, you can use an LNB with a different value LO. It just means that the *displayed* frequency will be incorrect.
Transponder  - LNB Local  = tuner frequency Frequency      Oscillator     12750 MHz                       Telecom/Astra 1F               DBS/Astra 1E       11700 MHz  - 10000 MHz = 1700                             Astra 1B                                            Astra 1A     Receiver tuning range without ADX                             Astra 1C                                        950  + 500 = 1450   Astra 1D                                                              Tuning range with ADX                                          10700 MHz  - 10000 MHz = 700  + 500 = 1200

An old standard receiver usually tunes from 950 to 1700 MHz.
The map above shows the limited tuning range of an old standard receiver with an old standard 10.0 GHz LNB. The addition of an ADX Channel Expander moves the Astra 1D frequencies up by 500 MHz into the tuning range of the receiver.

To receive all Astra channels from satellites D to B without using an ADX, a receiver would need a tuning range of 700 to 1700 MHz.



Transponder    LNB Local Frequency      Oscillator     12750 MHz  - 10600 MHz = 2150                                                       Telecom/Astra 1F                     Receiver tuning range for Hi band (22kHz on)                             DBS/Astra 1E                      - 10600 MHz = 1100 11700 MHz  -  9750 MHz = 1950                             Astra 1B                                            Astra 1A                              Receiver tuning range for Lo band (22kHz off)   Astra 1C                                            Astra 1D                                          10700 MHz  -  9750 MHz = 950

An Enhanced LNB has a local oscillator frequency of 9750 MHz.
The receiver now needs a tuning range of 950 to 1950 MHz as shown in the map above.

If a Universal LNB is used, its local oscillator can be switched from 9750 to 10600 MHz by sending a 22kHz signal up the cable. Some receivers have this facility built inside. Some will need an external signal-inserter box connected into the cable.

If the receiver has a range of 950 to 2150, it will be able to receive programmes on both Hi and Lo band.



Another possibility is to use an ADX-Plus. This has an internal switch which, when moved across, makes the ADX-Plus move the frequencies DOWN by 500 MHz instead of up.

So a channel at 12750 MHz is moved down like this:

12750 - 10600 - 500 = 1650 MHz (with an ADX-Plus)

which is well within the tuning range of an old standard receiver.

And the lowest channel receivable will be:

950 + 500 + 10600 = 12050 MHz (with 22kHz signal ON and ADX-Plus)

By fiddling with the ADX-Plus switch and the 22kHz signal inserter you can probably receive the full range of channels if you have a Universal LNB and a standard receiver!


Note: MHz (MegaHertz) = GHz (GigaHertz) x 1000
So 9750 MHz = 9.75 GHz
Please let me know if you have any other thoughts on this and maybe we can add it to the FAQs.
Astra broadcast frequencies range from 10700 Mhz (Astra 1D) through to
11700 Mhz (Astra 1B). So I need to calculate which of these frequencies
each of the two L.O.s on the LNB in conjunction with the tuning range
of the receiver, I can receive, thus:

L.O. 1 of 9750 Mhz

950 Mhz (lower tuning capabilities of receiver ) + 9750 Mhz (L.O. 1)
= 10700 Mhz
1700 Mhz (upper tuning cap. of receiver) + 9750 Mhz (L.O. 1) = 11450
Mhz.

Hence able to receive frequencies of 10700 Mhz to 11450 Mhz.

L.O. 2 of 10600 Mhz

950 Mhz (lower tuning capabilities of receiver ) + 10600 Mhz (L.O. 2)
= 11550 Mhz
1700 Mhz (upper tuning cap. of receiver) + 10600 Mhz (L.O. 2) = 12300
Mhz.

Hence able to receive frequencies of 11550 Mhz to 12300 Mhz.

Being an old crappy Amstrad SRD400, I presume my receiver isn't able to
signal the LNB to switch to the upper of the two L.O. frequencies, so I
can't access anything above 11450 Mhz. With a 22kHz signal inserter I should
therefore be able to access 11550Mhz - 12300Mhz?

You are doing OK so far.

However, this leaves a gap in the middle between 11450 and 11550 of
frequencies which I can't access! Presumably with an ADX (and 22kHz signal
inserter) I can shift those frequencies into tunable ranges?

Presumably, all I need now is an ADX and a 22kHz signal inserter in order to
receive all Astra frequencies (and then some ... )? Oh yes, and a Sky
subscription :-)

You don't really need a 22kHz signal inserter.

Would I be better off buying an ADX plus, so that I shift the
frequencies down rather than up? So as to ensure my receiver is happier
about it?

Yes, I would think so. There's nothing on the higher frequencies for your Amstrad to receive from Astra at 19.2 degrees East.
Sky Sports 3 would be the highest useful channel, with a couple of foreign stations just above that.


How much would I expect to pay for an ADX and 22kHz signal inserter?

If you have a Sky subscription they will post you an ADX-Plus for just £9.99.
Otherwise you can buy one for £12.95 upwards.


Many thanks for all your help. It all seems so much simpler now. Or have
I missed something?

Nope. I told you it was simple. People become frightened because they think it's too technical. The truth is that you simply need to be able to add and subtract - roughly to primary school level or lower! You don't need *any* technical knowledge. Just realise that there are various ways to add or subtract the frequencies. Specifically: there are various fixed values that you can use - Typically 10.00 GHz, 9.75 Ghz, 10.6 Ghz etc. for an LNB. Also +0.5GHz and -0.5GHz for an ADX-Plus Channel Expander, dependent on its internal switch position.

______________________________________________________
LNB Universal จะมี LO อยู่หลายค่า เช่น 2 ค่าสำหรับ KU Low Band กับ KU High Band คือ 9750 กับ 10600
ส่วน LNB 11300 เป็น LNB สำหรับ UBC จะมี LO อยู่ค่าเดียวคือ 11300
สังเกตว่าความถี่ช่องต่างกๆของ UBC จะมากกว่า 11300 เสมอ เมื่อนำมาหักล้างกันจะได้ออกมาเป็นความถี่ที่ Receiver จะสามารถรับได้ ถ้าใช้ LNB 10600 เมื่อเอามาหักล้างกันแล้วอาจจะเกินช่วงที่ Receiver สามารถรับได้

การเปลี่ยนค่า LO ของ LNB Universal ใช้สัญญาณ 22 KHz แต่มันจะทำโดยอัตโนมัติไม่จำเป็นต้องสั่งเอง
สาเหตุที่ต้องมีการหมุนองศาของหัว LNB เพราะว่าภายในจะมีแผ่นรับสัญญาณซึ่งจะวางตั้งฉากกันเพื่อรับสัญญาณจากทั้ง V และ H จึงต้องหมุน LNB เพื่อให้ขั้วรับสัญญาณได้ดีที่สุด

สรุป
- ค่า LNB C Band คือ 5150
- ค่า LNB KU Band คือ 9750,10600
- ค่า LNB UBC คือ 11300

Tuesday, October 02, 2007

Satellite Equipment

Splitter
คือตัวแยกสัญญาณ RF แบบปกติ ซึ่งสัญญาณจุด Out จะ Loss เท่ากันหมดทุก Port , splitter TV ธรรมดา ไม่ต้องมีการส่งสัญญาณย้อนกลับ ทำให้เอาไปใช้กับระบบดาวเทียมไม่ได้

Tap off
สัญญาณช่อง Tap จะ Loss มากกว่าช่อง Out ตัวอย่างเช่น Tap off 2 ทาง จะมี
1. ช่อง In = 1 ช่อง
2. ช่อง Out = 1 ช่อง Loss ประมาณ 3.5 dB
3. ช่อง Tap = 2 ช่อง Loss ประมาณช่องละ -10 dB (หรือแล้วแต่เลือก เช่น -15, -20, -25 dB)
ดังนั้น Tap off เหมาะใช้แยกสัญญาณต้นแหล่งที่ออกจาก Booster และสัญญาณยังแรงมากอยู่ จึงต้องใช้ Tap off ลดสัญญาณให้พอดี ก่อนเข้าโทรทัศน์ ส่วนช่อง Out ของ Tap off ใช้ต่อไปยัง Tap off หรือ Splitter ตัวต่อไป

Power Pass Splitter
เอาไว้ต่อระหว่าง LNB กับ Receiver ต่างจาก Splitter ธรรมดา คือไฟสามารถย้อนกลับจาก Out ไป In ได้ เหมาะใช้แยกรีซีฟเวอร์ หลาย ๆ เครื่อง เนื่องจาก Lnb ต้องการไฟเลี้ยงจากรีซีฟเวอร์ (Receiver ส่งสัญญาณคำสั่งไปสั่ง LNB ) โดยจะมีตัวไดโอดที่ต่ออยู่ในตัวสปลิทเตอร์ ทำหน้าที่กำหนดขั้วทางเดินของไฟ ขั้วไฟของสปลิทเตอร์แบบนี้ส่วนมาก จะออกแบบให้ไฟ + ผ่านเข้าทาง Output ไปออกทาง Input และทุกๆ Output จะต่อไดโอดไว้และรวมกันที่จุด Input ทั้งหมด ( แบบนี้เขาเรียก ALL PASS ) หรือยอมให้ไฟผ่านตัวมันได้ทุกทาง สปลิทเตอร์แบบนี้จะมีย่านความถี่คลอบคลุมไว้ค่อนข้างกว้างคือ ตั้งแต่ 5-2400 MHz ฉนั้นสปลิทเตอร์แบบนี้จึงสามารถใช้ได้ทั้งสัญญาณทีวีธรรมดา จนถึงย่านความถี่ดาวเทียม







DiSEqC (Digital Sattelite Equipment Control)
เป็นตัวอุปกรณ์ที่ใช้ทำหน้าที่ตัดต่อสลับเลือกสัญญาณจากตัว LNB เพื่อนำมาใช้งาน โดยมี IC ไมโครโปรเซสเซอร์ เป็นตัวอ่านคำสั่งจากเครื่องรับว่าสั่งให้สวิทไปทางใหน การจ่ายไฟเลี้ยงให้กับตัว LNB โดยปกติของสวิทแบบนี้จะจ่ายไฟเลี้ยงให้กับตัว LNB ที่ถุกเลือกเท่านั้น ถ้ามีการใช้ DiSEqC Switch ต่อกับ splitter เพื่อพ่วงกับ Receiver หลายๆตัวอาจจะทำให้สัญาณกวนกันได้



ดังนั้นการใช้ DiSEqC Switch จึงเป็นการเลือกสัญญาณจาก LNB หลายๆหัวจาก Receiver เครื่องเดียว
แต่การใช้ Multi switch จะเป็นการเลือกสัญญาณจาก LNB หลายๆหัวจาก Reveiver หลายๆเครื่องดูได้อิสระ



คำสั่งที่ออกมาจากหลังเครื่องReceiver คำสั่งพื้นฐานได้แก่
คำสั่ง 13/18 ใช้เลือก V(13v) หรือ H(18v)
คำสั่ง 0/22 Khz ใช้เลือก C(0Khz,Low Band) หรือ Ku(22Khz,High Band)
คำสั่ง DiSEqC 1.0 เลือก จาน fix แต่ละใบ
คำสั่ง DiSEqC 1.2 สั่ง Move จาน

Multi Switch คืออุปรณ์ ซึ่งเกิดจากการนำชุดคำสั่งข้างต้นไปประกอบกันหลายๆคำสั่ง ซับซ้อนกว่า DiSEqC switch ทำให้ต่อกับหลาย Reciever ได้


Spec ของพวก splitter แบบต่างๆ
http://www.9sats.com/product/product.php?cat=75&
วิธีการต่อ Multiswitch แบบต่างๆ
http://www.nics-sat.com/index.php?lay=show&ac=article&Id=326827&Ntype=6



LNB (Low-noise Block Converter)
สัญญาณที่มาจากดาวเทียมเป็นสัญญาณ Microwave ทำให้มี Loss สูงเวลาผ่านสายเคเบิล LNB จะทำหน้าที่แปลงสัญญาณความถี่สูง (GHz) ให้เป็นความถึ่ต่ำ (MHz) ทำให้มี loss น้อยลง เวลาซื้อ LNB จะต้องระบุว่าทำงานที่ความถึ่เท่าไหร่เช่น 11300 MHz เป็นต้น



Combiner
เป็นอุปกรณ์รวมสัญญาณ RF หลายๆช่องจาก Modulator ให้ออกมารวมกันอยู่ในสายเส้นเดียว เวลาเลือกซื้อต้องเลือกย่านความถึ่ด้วยว่าต้องการย่านไหนเช่น UHF, VHF, S-Band อย่างละกี่ช่อง ต้องดูเครื่องรับด้วยว่ารับได้ย่านละกี่ช่อง, Combiner แบ่งออกเป็น 2 ชนิดคือชนิด Passive ไม่ต้องใช้ไฟเลี้ยง กับแบบ Active จะต้องมีไฟเลี้ยงเพราะว่าได้เพิ่มวงจรในส่วนของ การขยายสัญญาณ , การกรองสัญญาณ เข้ามา ในบางกรณีถ้ามีจำนวนช่องน้อยๆสามารถใช้ splitter ต่อกลับทางก็ได้เหมือนกัน หรืออาจจะสามารถใช้ splitter ต่อกลับทางในการรวม combiner 2 ตัวที่ไม่มีช่องสำหรับ link กันก็ได้

Mixer
ใช้สำหรับรวมสัญญาณดาวเทียม (950-2250 MHz) กับ สัญญาณทีวีจากเสาอากาศ (40-860 MHz) ลงมาในสายเส้นเดียวกัน เช่นในกรณีรับบางช่องจาก CableTV แล้วเอามารวมกับรายการที่มาจากดาวเทียมอีกบางช่องเพื่อประหยัดค่าใช้จ่าย

Card Reader
UBC ใช้ Irdeto สังเกตุที่ตัว reader จะมี chip ความถี่ติดอยู่ด้วย
ASTRO ใช้ Mediaguard หรือ SECA2
SVT ใช้ VIAccess
ตัวอ่านบัตรของ Mediaguard กับ VIAccess สามารถเสียบในช่องเดียวกันได้ แต่อาจจะต้อง flash firmware หรือสลับสารแพรของตัวอ่านบัตร หรือกดปุ่ม Format ค้างเอาไว้

Booster
การส่งสัญญาณไปในสาย ช่องความถี่สูงจะ lost ไปได้ไวกว่าช่องความถี่ต่ำ การปรับ booster จึงต้องปรับ slope ให้ขยายช่องความถี่สูงมากกว่าความถี่ต่ำ

Line AMP Booster
เป็นบูสเตอร์ขยายสัญญาณ LNB ความถี่ 950-2050 MHz (DC 13-18V)ใช้ขยายสัญญาณในกรณีที่มีการเดินสายระหว่างจานดาวเทียมกับเครื่องรับ เป็นระยะไกล ๆ

Modulator
ใช้แปลงสัญญาณ AV จาก receiver ให้เป็น RF ปกติจะใช้ต่อกันหลายๆตัวแล้วเอาเข้า Combiner เพื่อที่จะได้สามารถส่งหลายๆช่องไปในสายเส้นเดียวได้

จาน Offset
หมายถึงจานที่ หน้าจานจะหันไม่ตรงตำแหน่งดาวเทียมตรงๆ จะทำมุมก้มกว่า (มุมกวาดเท่ากัน)รับสัญญาณโดยหัว LNB ไม่ได้อยู่ตรงกลางจาน เช่นจาน UBC เป็นต้น
จานที่ LNB อยู่กลางจานเรียกว่า Prime Focus

Friday, September 28, 2007

รวม Link เกี่ยวกับดาวเทียม

http://www.lyngsat-address.com/tv/Asia.html
รายการ TV ผ่านดาวเทียมที่อยู่ในแถบ asia ทั้งหมด

รายการช่องเรียงตามตัวอักษร
http://www.lyngsat-address.com/tv/index_C.html

รายการ Free TV Thai ที่อยู่บน Thaicom 2/5 C Band
http://www.lyngsat.com/thai2.html

รายการ TV ผ่านดาวเทียมของไทยทั้งหมด
http://www.lyngsat-address.com/tv/Thailand.html

รายการฟรี TV ของไทย
http://www.lyngsat.com/freetv/Thailand.html

Package CableTV ใน Asia
http://www.lyngsat.com/packages/asia.html

Package Astro ของมาเลย์
http://www.lyngsat.com/packages/astro1.html

Package UBC
http://www.lyngsat.com/packages/truevisions.html

บอร์ดโบราณ
http://www.thaimisc.com/freewebboard/php/vboard.php?user=boranphone

9sats
http://www.9sats.com/download/

nics-sat อบรมการติดตั้งฟรี มีบทความสอนการติดตั้งมากมาก Weboard
http://www.nics-sat.com/index.php
http://www.thaimisc.com/freewebboard/php/vboard.php?user=nicssat
สำหรับค้นหากระทู้เก่า ในบอร์ดไม่ได้ทำ link เอาไว้ให้
http://www.thaimisc.com/freewebboard/php/search.php?user=nicssat

satthai
http://www.satthai.tv/html/dlxsat.php

siamdst
http://www.siamdst.com/support.htm
http://www.geocities.com/neotion2000/

yantech
http://www.yantech.com/index.php?page=showcategory&category=SPLITTER&group=1

Mazz
http://www.mazz-smatv.com/webboard.php?lang=th&headername=เว็บบอร์ด&headername=

Filsat - Xsat
http://filsat.com/forum/viewforum.php?f=8&sid=5f9353a1727305871604fa21195f68fd

Monday, September 24, 2007

การ block ไม่ให้ GPO มีผลกับผู้ใช้บางคน

เข้าไปที่ properties ของ GPO แล้วไปที่แถบ Security
เพิ่ม user นั้นเข้าไปโดยให้สิทธิ Read กับ Applay Group Ploicy ให้เป็น Deny

Saturday, September 22, 2007

GPO Screen Saver password protect

อยู่ในส่วนของ User Configuration > Administrative Template > Control Panel > Display
Screen Saver = Enable
Screen Saver Executable Name = scrnsave.scr
Password Protect with the Screen Saver = Enable
Screen Saver timeout = 600s (10 min)

Thursday, September 20, 2007

Disable Autorun by Group Policy

Computer Configuration > Administrative Templates > System > select 'Turn Off Autoplay' > dropdown select All Drive.

User Configuration > Administrative Templates > System > select 'Turn Off Autoplay' > dropdown select All Drive.

Friday, September 14, 2007

Cat5e Patch Panel position

ลืมบ่อยๆเลยทำไว้ดูเอง

Saturday, August 11, 2007

Excel

สอนคำนวนเกี่ยวกับเงินกู้

Monday, August 06, 2007

รายชื่อ NOD32 Update Server

เวปจีนมีการ Update อย่างสม่ำเสมอ
วิธีการ update แบบพิสดาร แต่ยุ่งยากหน่อย ใช้เมื่อหา server ไม่ได้จริงๆ
http://xchange.teenee.com/index.php?showtopic=46932&st=960&p=737004&#entry737004

http://nod32.domonkey.com/

Wednesday, July 25, 2007

การลง Intel® Matrix Storage Manager หลัง install XP เสร็จแล้ว

ปกติจะลงผ่านการกด F6 ในขั้นตอนของการ install XP ถ้ามาลงตอนหลังอาจจะลงไม่ผ่าน แต่จะมีวิธีลงตอนหลังดังนี้
1. ตอนลง XP ให้ set ใน bios เลือก compatible mode ก่อน แล้วลงตามปกติ
2. เสร็จแล้ว download Intel® Matrix Storage Manager จากเวป Lenovo
(http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-62909)
แต่มันจะเป็น version 7 แต่ปัจจุบันออกถึง version 7.5 แล้ว
3. install โดยสั่ง install.cmd
4. เปลี่ยน Bios ให้ SATA ทำงานใน mode AHCI
5. boot เข้า XP จะเจอ HW ใหม่ browse ไปใน folder ที่ extract ออกมา install inf file
6. boot ใหม่อีกที ตอนนี้เราสามารถ upgrade ให้เป็น version 7.5 ได้แล้ว โดย download ได้จาก
(http://www.intel.com/support/chipsets/imsm/)

Sunday, July 08, 2007

การแก้ปัญหา Promote DC ตัวใหม่ที่เป็น Windows server 2003 R2 เข้าไปใน Domain

การ Promote DC ตัวใหม่ที่เป็น Windows server 2003 R2 เข้าไปใน Domain เดิมที่เป็น Windows Server 2003 ในขั้นตอนสุดท้ายจะมี error ที่เกี่ยวกับ Version ของ Active Directory ไม่ตรงกัน เราสามารถแก้ปัญหานี้ได้โดยสั่ง Run dcprep /forestprep และ dcprep /domainprep ที่เครื่อง Domain Controller เดิมที่อยู่ใน Domain เพื่อ upgrade version ของ active directory ให้ compatable กับ R2 เสียก่อน โดยมี version ดังนี้

System Schema Version ObjectVersion values and corresponding operating system support level

13=Microsoft Windows 2000
30=Original release version of Microsoft Windows Server 2003 and Microsoft Windows Server 2003 Service Pack 1 (SP1)
31=Microsoft Windows Server 2003 R2

โดย dcprep ที่จะเอามาใช้จะอยู่ในแผ่น CD ที่ 2 folder DCPREP ซึ่งจะสามารถ upgrade ได้ถึง version 31 สำหรับ R2 ได้

Note
- dcprep ที่อยู่ในแผ่นที่ 1 folder i386 จะใช้ไม่ได้ เพราะสามารถ upgrade ได้ถึงแค่ version 30 เท่านั้น

Saturday, June 23, 2007

Domain Local vs Domain Global Group

ในกรณีที่ Mixed Mode Domain

Local Group
- สำหรับ Domain Controller จะเห็นได้เฉพาะภายใน DC ด้วยกันเองเท่านั้น เพราะ DC ทุกตัวจะ share local security database เดียวกัน
- สำหรับ Stand Alone จะเห็นได้เฉพาะเครื่องตัวเองเท่านั้น
- ตัวอย่างเช่น Group Administrators เป็น Local Group ดังนั้นจะสามารถเอาไปใช้ได้เฉพาะภายใน DC ด้วยกันเอง เครื่อง Member Server หรือ Workstation ภายใน Domain จะไม่สามารถมองเห็น Group Administrators นี้

Global Group
- จะสามารถมองเห็นได้จากทุกเครื่องที่อยู่ใน Domain เช่น Group Domain Admins เป็นต้น
- เวลาสร้าง group ใหม่ขึ้นมาให้เลือกเป็น Global Group จะสำดวกกว่า
- ถ้ามีการ add computer เข้าเป็นสมาชิกของ Domain แล้วโดย default จะมีการเพิ่ม Domain Admins group เข้าไปเป็นสมาชิกของ Local Administrators เพื่อให้มีสิทธิที่จะ manage computer นั้นได้

ในกรณีที่ได้ Raise Domain and Forest ให้ทำงานใน Native Mode แล้ว
- Local Group จะกลายเป็น Domain Local Group ทำให้สามารถมองเห็นได้จากทั้ง Domain
- Domain Local Group (ยกเว้น Administrators group) จะสามารถถูกมองเห็นได้จาก Member Server/Workstation ของ Domain

- สามารถ convert Domain Local Group ให้เป็น Universal Group ได้ แต่จะไม่สามารถเปลี่ยนให้เป็น Domain Global Group ( Mixed Mode เปลี่ยนอะไรไม่ได้เลย)

Concept ของ AGDLP เป็นดังนี้

Accounts > Global Groups > Domain Local Groups > Permissions
หรือ
Accounts > Global Groups > Universal > Domain Local Groups > Permissions

ความหมายคือ จับ account ที่มีความต้องการใช้ resource คล้ายๆกันให้รวมกันอยู่ใน Global Group เสร็จแล้วค่อยเอา Global Group นั้นมาอยู่ใน Domain Local Group อีกทีเพื่อ Assign Resource ให้


Note:
- Domain ที่ได้เปลี่ยน Function Level ให้เป็น Native Mode แล้ว ไม่มีผลอะไรกับเครื่อง Windows 98 client เพราะว่า Mixed/Native Mode เป็นเรื่อง Backward Compatable ของ Domain Controller ไม่เกี่ยวข้องกับ Client

Domain Local Group
– This group scope is designed to contain Global Groups and Universal Groups, even though it can also contain user accounts and other Domain Local Groups. If you want to follow a logical nesting rule pattern, you will not put user accounts into Domain Local Groups. As you design and create Domain Local Groups, you should be considering “What the group is designed to do at the resource.” Examples might be “Read SQL DB,” “Full Control HR Data,” or “Modify Finance Group Membership.”

Note:
Domain Local Groups can only be seen and used on domain controllers if the domain is still in mixed mode. Mixed mode also eliminates the capability of nesting Domain Local Groups into other Domain Local Groups. This is due to the fact that NT4 domain controllers don’t understand the concept of Domain Local Groups, so they are simply seen as Local Groups.

Global Groups
– This group scope is designed to contain user accounts. Global Groups can contain user accounts and other Global Groups. Global groups are designed to be “global” for the domain. After you place user accounts into Global Groups, the Global Groups are typically placed into Domain Local Groups or Local Groups (which reside on member servers in the Security Accounts Manager (SAM)). As you design and create Global Groups, you should be considering “What type of user belongs in this group.” Examples might be “Salesreps,” “HR Managers,” or “Finance Managers.”

Note:
Global Groups can only contain user accounts if the domain is in mixed mode. Like group nesting is not available in mixed mode due to legacy NT4 domain controllers.

Universal Groups
– This group scope is designed to contain Global Groups from multiple domains. Universal Groups are designed to help “group” groups in a multi-domain enterprise. Universal Groups can contain Global Groups, other Universal Groups, and user accounts. After the Global Groups from the different domains are placed into the Universal Group, the Universal Group is typically placed into a Domain Local Group or Local Group. As you design and create Universal Groups, you should be almost mimicking the concepts of the Global Group, but from an enterprise standpoint. So, you might have a Universal Group named “All HR Managers” or “All Finance Managers.” Within each of these Universal Groups, you will have the “HR Managers” or “Finance Managers” from each domain as members.

Note:
Universal Groups cannot be used as Security Groups if the domain is in mixed mode. This means that they can’t be used for controlling access to resources via permissions. Again, this is because NT4 domain controllers don’t understand the concept of Universal Groups.

Security Groups
– This type of group has a unique characteristic in that it has a Security Identifier (SID) assigned to it from Active Directory. This SID enhances the function of the group so that it can be used for assigning and controlling permissions to a resource. In essence,
Security Groups can be placed on an ACL of a resource. Security Groups can also be used for email distribution lists.

Distribution Groups
– This type of group is limited in capabilities, because it does not have a SID assigned to it. Distribution Groups are designed to work with email, but not for the assignment or control of permissions to a resource.

Wednesday, June 20, 2007

วิธีเปลี่ยนความกว้างของ Template Blogger

เข้าไปแก้ที่ Template / Edit HTML

ค่าความกว้างที่เหมาะสมของ Template Rounders 3

ส่วนที่เป็น http:/// เป็นการเอากรอบโค้งที่ทำจาก image ออกเพราะว่าขยายความกว้างแล้วทำให้ไม่พอดี

/* Page Structure
----------------------------------------------- */
/* The images which help create rounded corners depend on the
following widths and measurements. If you want to change
these measurements, the images will also need to change.
*/
#outer-wrapper {
width:850px;
margin:0 auto;
padding:10px;
text-align:left;
font: $bodyFont;
}
#main-wrap1 {
width:600px;
margin-left: 20px;
float:left;
background:$mainBgColor url("http:///") no-repeat left bottom;
margin:15px 0 0;
padding:0 0 10px;
color:$mainTextColor;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
#main-wrap2 {
float:left;
width:100%;
background:url("http:///") no-repeat left top;
padding:10px 0 0;
}
#main {
background:url("http:///") repeat-y;
padding:0;
}
#sidebar-wrap {
width:240px;
float:right;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

.main .widget {
margin-top: 4px;
width: 568px;
padding: 0 13px;
}

.main .Blog {
margin: 0;
padding: 0;
width: 600px;
}

วิธี Add Google Analytics ใน Blogger

ตอนนี้ Blogger หรือ Blogspot ยังไม่มี module statistic หรือ counter มาให้ เราสามารถนำเอา Google Analytics มาใส่เพิ่มเข้าไปเองได้ ง่ายๆตามนี้

1. สมัคร Google Analytics ได้ที่ http://www.google.com/analytics/ ทำตามขั้นตอนไปเรื่อยๆจะได้ Code มาอันนึง copy เก็บเอาไว้
2. ไปที่ Template / Page Elementของ Blog ของเราแล้ว ไปที่ Footer เพิ่ม HTML/JavaScript element ใส่ code ของเราเข้าไป ตรง Title ปล่อยว่างไว้ เสร็จแล้ว save
3. หรืออีกวิธีจะ add html code ลงไปตรงๆเลยก็ได้โดยไปที่ Dashboard / Settings / Template / Edit HTML หา tag /body ให้เจอจะอยู่ล่างๆ แล้ว paste code ของเราลงไป ก็ได้เหมือนกัน

ISA: Publish Website with DNS name and public IP

Concept

1. ไปเพิ่ม DNS record ของ DNS server ภายนอกใช้ชี้ไปที่ public ip ที่เรามีเช่นให้ชื่อว่า webmail.my.com = 203.155.33.142
2. add secondary public ip ใน external interface ของ ISA เช่น 203.155.33.142
3. ใน ISA สร้าง Web Server Publishing Rule ขึ้นมาโดยมีค่า setting ที่สำคัญๆตามนี้
From => External
To => คือ Internal IP ของ Server ที่ต้องการ Publish เช่น 192.168.0.203
=> เลือก Forward the original host header instead of the actual one. <- เพื่อให้มีการใช้ host header ในการแยกความแตกต่างของ website ที่ต้องการ publish หรือในกรณีนี้เราต้องการให้เข้า webmail ได้จากการใส่ url http://webmail.my.com/ ตามนี้เท่านั้น ถ้าไม่เลือก option นี้ host header จะกลายเป็น 192.168.0.203 แทน
=> เลือก Requests Appear to come from the ISA Server Computer <- ที่ web server จะเห็น request ว่ามาจาก ISA แทนที่จะเป็น ip ของ client ที่ request เข้ามาจริงๆ
Traffic => HTTP
Listener => สร้าง HTTP Listener ขึ้นมาทาง External Interface
Public Name => เลือก Requests for the following websites เพื่อให้ Listerner ตรวจสอบ host headers ว่าเรียกมายัง website ที่เรา publish เอาไว้จริง
=> ตรง Website and IP address ให้เพิ่มชื่อ website ของเราที่ต้อง publish สามารถเพิ่มได้หลายชื่อตามต้องการ

Tuesday, June 19, 2007

Example of Subnet on Cisco Router

สมมุติว่าเช่า lease line มา 1 link ความเร็ว 1Mb ISP ได้ให้ public ip มา 1 block เช่น

203.155.33.136/29 จะมี ip ที่เราสามารถนำมาใช้ได้ดังนี้

จะเห็นว่า IP ที่สามารถนำมาใช้ได้คือ .137 - .142 เท่านั้น และเป็น directly connected กับ eth0 ดังนั้นdestination ip ที่อยู่ใน subnet นี้สามารถเอาไปใช้กำหนดให้กับ server ภายในบริษัทได้เลย ในกรณีที่ไม่มี firewall มาคั่น

ถ้าที่ router มีการทำ NAT เช่น

ip nat pool mypool 203.155.33.138 203.155.33.140 netmask 255.255.255.248
ip nat inside source list 7 pool mypool overload

จะเหลือ ip ที่นำมาใช้งานได้คือ .137, .141, .142 เท่านั้น
ถ้าเรามี Firewall ภายในที่ไม่ได้ใช้งานใน mode Transparent (bridge mode) เราก็จะเสียไปอีก 1 ip เช่น .141

เราจะเสียไปอีก 1 ip สำหรับ ethernet0 เช่น .137

interface Ethernet0
description LAN
ip address 192.168.1.1 255.255.255.0 secondary <--- ทำเอาไว้ bypass firewall เผื่อพัง
ip address 203.155.33.137 255.255.33.248
ip accounting output-packets
ip nat inside
no ip route-cache
no ip mroute-cache
ip policy route-map RAGserver

สรุปว่าจะเหลือแค่ .142 เอาไว้ใช้สามารถ publish server ภายในได้
แต่ในความเป็นจริงเราสามารถใช้ ip firewall .141 เพียง ip เดียว publish server ภายในได้เป็นสิบๆ

Monday, June 18, 2007

การเปลี่ยน Cisco Router Password

การเปลี่ยน Password ที่ใช้เข้าสู่ enable mode
Router> en
Router# config t
Router(config)# enable secret [passwd2550]

การเปลี่ยน Password ที่ใช้ในการ Telnet เข้า Router
Router(config)# line vty 0 4
Router(config-line)# login
Router(config-line)# password [passwd2550]

การเปลี่ยน Password ที่ใช้ในการเข้า Router จาก console
Router(config)# line con 0
Router(config-line)# login
Router(config-line)# password [passwd2550]

เมื่อเปลี่ยน password เสร็จแล้วสั่ง save config โดยใช้คำสั่ง
Router# copy run start

สั่ง Reboot Router โดยคำสั่ง
Router# reload

คำสั่งดู routing table
Router# show ip route

Saturday, June 16, 2007

Video Clip สอนการเข้าห้วแบบต่างๆของ AMP

อันนี้เป็นวิธีการเข้าหัวของ SL Series ที่จะมาแทนการเข้าหัวโดยใช้ Impact Tool

http://www.ampnetconnect.com/support_center_literature_search.asp?keyword=sl+series&DTP_ID=532

Friday, June 15, 2007

วิธีแก้ไข Network Parameter ของ Linux โดยตรง

เข้าไปแก้ที่นี่
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1

คำสั่งดู ip address ของแต่ละ interface
#ifconfig <--- ดูหมดทุก interface
#ifconfig eth1 <--- เลือกดูเฉพาะ interface eth1 เท่านั้น

Sunday, June 10, 2007

Differential VS Incremental Backup

Incremental backs up all the files modified since the last full backup, differential or incremental backup.

Restoring from incremental backup, you need the most recent full backup as well as EVERY incremental backup you've made since the last full backup.

Differential backs up everything that's different since the last full backup.

Restoring a differential backup is a faster process than restoring an incremental backup because only two backup container files are needed: the latest full backup and the latest differential.

For example, if you did a full backup on Friday and incrementals on Monday, Tuesday and Wednesday, and the PC crashes Thursday morning, you would need all four backup container files: Friday's full backup plus the incremental backup for Monday, Tuesday and Wednesday. As a comparison, if you had done differential backup on Monday, Tuesday and Wednesday, then to restore on Thursday morning you'd only need Friday's full backup plus Wednesday's differential.

Thursday, May 10, 2007

Remote Desktop User Group

โดย Default แล้ว user ที่มีสิทธิในการใช้ Remote Desktop เข้าไปที่เครื่อง Server ได้ก็คือ Administrators Group แต่บางทีเราต้องการให้ user ทั่วไปสามารถ remote เข้าไปได้ด้วย สามารถทำได้อย่างง่ายๆแค่ไป add user นั้นให้เข้าไปอยู่ใน Remote Desktop User Group แค่นั้นเอง

แต่จริงๆแล้วสิทธิของ RDP Group จะมาจาก Group Polocy ที่ชื่อว่า Allow log on through Terminal Services ที่อยู่ใน Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\ นั่นเอง

ซื่งการ แก้ไข Policy นี้สำหรับเครื่องที่เป็น Domain Controller มีอยู่หลายวิธีเช่นใช้ Domain Controller Group Policy จะมีผลกับ DC ทุกตัวใน Domain หรือจะสามารถแก้ไขจาก Local Group Policy (เรียกจากคำสั่ง gpedit.msc) ซึงจะมีผลกับ Server ที่เราแก้ Policy นี้เท่านั้น

Monday, May 07, 2007

วิธีการเรียก Local System Account ขึ้นมาใช้งาน

1. เปิด Command Prompt
2. ตั้งเวลาเรียก task manager ขึ้นมา
EX: at 3:11pm /interactive taskmgr.exe
3. Kill task explorer.exe
4. New task explorer.exe คราวนี้ explorer จะ run โดย Local System Account แล้ว
5. ทดสอบโดยการสั่งเปิด program อะไรก็ได้ขึ้นมาแล้วดูจาก task manager จะเห็นว่า run โดย System

Sunday, April 29, 2007

Reboot Router from wget command line

ทดสอบใช้ได้กับ router Zyxel ส่วนยี่ห้ออื่นก็ไม่ต่างกัน

http://gnuwin32.sourceforge.net/packages/wget.htm
http://www.ieinspector.com/httpanalyzer/download.html
download version standalone มาจะดีกว่าเพราะสามารถดูผลได้จากการสั่งผ่าน IE หรือ Command line ก็ได้

วิธีที่ 1
wget --user=username --password=password --post-data IsReset=1 http://192.168.15.2/Forms/DiagGeneral_2
ข้อดีของการใช้ option --user ,--passwd ก็คือจะไม่มีปัญหากับ user หรือ password ที่มีตัวอักษรแปลกๆ

หรือ
wget --post-data IsReset=1 http://username:password@192.168.15.2/Forms/DiagGeneral_2

วิธีที่ 2 กรณีที่ไม่ต้องการให้รู้ว่า user/pass คืออะไรโดยทำการ encode user/pass ก่อน (แต่ก็มีวิธีการ decode ได้)
wget -E --header="Authorization: Basic ZnJlZDp0aGF0cyBtZQ==" --post-data IsReset=1 http://192.168.15.2/Forms/DiagGeneral_2

วิธีที่ 3 ใช้ autoit script

AutoItSetOption("WinTitleMatchMode",2)
AutoItSetOption("SendKeyDownDelay",50)

Run("cmd.exe","",@SW_MAXIMIZE)
sleep(1000)

WinActivate("cmd.exe")
WinWaitActive("cmd.exe")

Send("telnet 192.168.1.1{ENTER}")
Sleep(500)
Send("password{ENTER}")
Sleep(500)

Send("24{ENTER}")
Sleep(500)
Send("8{ENTER}")
Sleep(500)
Send("sys reboot{ENTER}")

Friday, April 27, 2007

ประโยชน์ของ IP Alias หรือ Secondary IP ของ Router

Example 1 Bypass Firewall (Basic) Example 2 Bypass Firewall + Separate Network (Complex)

Monday, March 19, 2007

การแก้ Dependency ของ php กับ php-pear ใน CentOS 4.4

จะทำให้ yum update ไม่ผ่าน แก้โดย
yum remove php
หรือ rpm -e php
rm -rf /var/cache/yum/

enable centosplus ใน repo

download php 5 จาก http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS
wget http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-5.1.6-1.2.1.centos.x86_64.rpm

ถ้า install โดยใช้คำสั่ง rpm -ivh php-5.1.6-1.2.1.centos.x86_64.rpm มันจะ error เราต้อง install php-pear พร้อมๆกันเลย โดยเอา php-pear มาเก็บไว้ก่อน
wget http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-pear-1.4.9-1.2.centos.noarch.rpm

แล้วสั่งใหม่ rpm -ivh rpm -ivh php-5.1.6-1.2.1.centos.x86_64.rpm php-pear-1.4.9-1.2.centos.noarch.rpm

เสร็จแล้วสั่ง yum update -y

อีกวิธีสั่ง rpm -Uvh
http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-5.1.6-1.2.1.centos.x86_64.rpm http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-pear-1.4.9-1.2.centos.noarch.rpm

Wednesday, March 14, 2007

Public DNS Server

Google DNS
8.8.8.8
8.8.4.4

OpenDNS
208.67.222.222
208.67.220.220

Level 3
4.2.2.2

True Intenet
203.144.207.29
203.144.207.49

Cat Telecom
61.19.245.245
61.19.245.246
202.129.27.133

KSC
203.155.33.1

Monday, March 12, 2007

Yum Yum

ก่อนที่จะใช้ yum ได้จะต้อง import GPG ก่อน
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
สำหรับ CentOS4 ใช้
rpm --import /usr/share/rhn/RPM-GPG-KEY-centos4

เสร็จแล้วก่อนอื่นสั่ง
yum update -y ก่อนเลย

วิธีการเพิ่ม Repository ให้กับ yum

import gpg key เพื่อตรวจสอบว่าข้อมูลของ package ไม่ได้ถูกแก้ไข
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt

cd /etc/yum.repos.d
สร้างไฟล์ชื่อ dag.repo แล้วเพิ่มข้อมูลดังนี้เข้าไป

[dag]
name=Dag RPM Repository for CentOS
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

ลองสั่ง yum install pine lynx -y ดู

ถ้าต้องการเอา package ออกให้สั่ง yum remove pine
ถ้าต้องการค้นหา package สั่ง yum search perl*
yum list available
yum list installed <- ดูว่า install อะไรอยู่บ้าง หรือ rpm -q
yum clean all <- clear disk space yum info lynx สั่ง schedule update โดยให้ yum ตอนกลางคืน
chkconfig yum on <- สั่งให้ yum ทำงานที่ run level ไหนบ้าง แต่ยังไม่ได้สั่งให้ทำงานจริงๆ service yum start <- สั่งให้ yum ทำงานNote
ส่วนใหญ่แล้ว Package ของ 3rd party จะใหม่กว่าของ Official แต่เราต้องการความ stable ของ Package จาก official จึงไม่แนะนำให้ update ทับ package ของ Official วิธีการทำแบบนี้ได้ต้องอาศัย pluginyum install yum-plugin-protectbaseแก้ไขไฟล์ /etc/yum.conf เพิ่มบันทัด plugins=1 เข้าไปแก้ไขทุกๆไฟล์ .repo ที่อยู่ใน /etc/yum.repos.d โดยเพิ่ม
protect=1 ให้กับ Official Repository
protect=0 ให้กับ 3rd party Repositaryเพราะว่า protect=0 จะไม่สามารถ update protect=1 ได้ถึงแม้ว่ามันจะใหม่กว่าก็ตามถ้าใน .repo มีการใส่ repository อยู่หลายแห่ง น่าจะต้องใส่เพิ่ม protect=0 ให้กับทุกๆที่Yum 3rd part: List of other repositorieshttp://www.ducea.com/2006/10/22/yum-3rd-part-list-of-other-repositories/

Tuesday, March 06, 2007

OpenVZ VS Xen, Vmware

The operating system level architecture(OpenVZ) has low overhead that helps to maximize efficient use of server resources. Due to a single-kernel approach, this type of virtualization introduces only a negligible overhead and allows running hundreds of virtual private servers on a single physical server. In contrast, approaches such as emulation (like VMware) and paravirtualization (like Xen or UML) cannot achieve such level of density, due to overhead of running multiple kernels. On the other hand, operating system-level virtualization does not allow running different operating systems (i.e. different kernels), although different libraries, distributions etc. are possible

Since there is a single OS kernel which maintains all the partitions, isolation and resource management become very important. Without proper isolation security can be compromised, and without proper resource management an application from one partition can abuse resources and thus cause a denial of service for other partitions. Resources controlled and limited can include: CPU time, disk space, I/O bandwidth, network access, and all the other finite resources like RAM, shared memory, locked pages, number of processes, socket buffers etc. For example, OpenVZ provide a set of more than 20 finite resources that are accounted and limited on a per-partition basis.
Compared to the hardware-assisted virtualization solutions (like IBM's LPAR), OS-level virtualization has the benefit of running on inexpensive commodity hardware

OS level virtualization solutions initially gained popularly with service providers who needed a very low overhead, customizable, cost effective solution to provide hosting services to customers. The technology is now becoming more widely deployed as many different industries and customers are recognizing the benefits and differences between OS virtualization and hardware virtualization. The common uses and scenarios now include server and OS consolidation, business continuity (disaster recovery and high availability) and centralized desktop virtualization.

An owner (root) of OpenVZ physical server (also known as Hardware Node) can see all the VE processes and files. That makes mass management scenarios possible. Consider that VMware or Xen is used for server consolidation: in order to apply a security update to your 10 virtual servers you have to log in into each one and run an update procedure – the same you would do with the ten real physical servers.
In OpenVZ case, you can run a simple shell script which will update all (or just some selected) VEs at once.

http://wiki.openvz.org/Introduction_to_virtualization

http://en.wikipedia.org/wiki/Operating_system-level_virtualization

Saturday, January 27, 2007

Removing Old Network Card

Create environmental variable:
DEVMGR_SHOW_NONPRESENT_DEVICES=1
Reboot, then go into device manager and VIEW\SHOW HIDDEN DEVICES.
You will then see all of the hardware ghosts. Right click and uninstall under network adapters.