Archive for June, 2007

security image

ภาพต้นฉบับจาก http://www.sbi-secureit.com/ จะพยายามทำให้มันเหมือนระบบ security ที่ห่อหุ้มระบบ It เมื่อระบบ ถูกจู่โจมก็จะมีการเตือน ..

ภาพต้นฉบับจาก www.thaiware.com ในส่วน wallpaper

setup dhcp Fedora core 5

วันนี้ได้ทดสอบติดตั้ง dhcp กับ fc5 ครับ โดยเป็นการทดสอบเครื่องผมเองครับ 2 เครื่อง
-dchp—–lan utp— switch —–lan utp— Com 1 -

ตามแผนผังครับ
1. ข้อมูลเบื้องต้น (ข้อมุลสมมุติใช้ในการทดสอบ)
- dhcp ip 10.10.10.1
- net id 10.10.10.0 netmask 255.255.255.0
- scope ip 10.10.10.2-10.10.10.200
- default gateway 10.10.10.254
- dns 10.10.10.1
2. install dhcp
- คำสั่ง yum install dhcp หรือ apt-get install dhcp
จากนั้นรอสักครู่ครับ
3. เมื่อติดตั้งเสร็จแล้ว ต้องทำการแก้ file /etc/dhcpd.conf
- ใช้ nano /etc/dhcpd.conf หรือ pico /etc/dhcpd.conf แล้วแต่ครับ
*ค่าบังคับที่เวอร์ชั้น 3.x ต้องมีคือ
ddns-update-style ad-hoc;
Read the rest of this entry »

วิธีการกรองเว็บไม่พึงประสงค์ที่ใช้ผ่าน Squid Proxy โดยใช้โปรแกรม SquidGuard

http://www.itwizard.info/technology/linux/squid_web_filter.html

วิธีการกรองเว็บไม่พึงประสงค์ที่ใช้ผ่าน Squid Proxy โดยใช้โปรแกรม SquidGuard

แนะนำ SquidGuard
squidGuard ทำงานร่วมกับ Squid Proxy เพื่อบล็อคการเข้าถึงไซต์ต่าง ๆ โดยการบล็อคสามารถบล็อคด้วยค่าของ โดเมน IP Address หรือแม้แต่ keyword นอกจากนี้สามารกกำหนดได้ว่าจะบล็อดในช่วงเวลาไหนของแต่ละวันและสามารถกำหนดกลุ่มในการบล็อคได้ แต่ในที่นี้จะเป็นตัวอย่างการบล็อคที่เป็นการบล็อคโดเมน และ URL ครับ

โปรแกรมที่ต้องติดตั้ง
1. Squid
2. BerkeleyDB
3. squidGuard

การติดตั้งและคอนฟิก squid
ดูตัวอย่างการติดตั้งได้จาก http://www.itwizard.info/technology/linux/squid_install_and_config.html

การติดตั้ง BerkeleyDB
ดาวน์โหลดได้จาก http://www.sleepycat.com มาไว้ในตำแหน่งที่เหมาะสม
ในที่นี้ผมดาวโหลดมาติดตั้งไว้ที่ /root (db-4.2.52.tar.gz)
ให้เข้าไปยังตำแหน่งที่ได้ดาวน์โหลดมาแล้วใช้คำสั่งดังนี้
Read the rest of this entry »

ความรู้เล็กๆน้อยเกี่ยวกับ tcp/ip netmask

Internet Protocol (IPv4) Subnet Chart

For more information on subnetting, see RFC 1817 and RFC 1812.

Class address ranges:

  • Class A = 1.0.0.0 to 126.0.0.0
  • Class B = 128.0.0.0 to 191.255.0.0
  • Class C = 192.0.1.0 to 223.255.255.0

Reserved address ranges for private (non-routed) use (see RFC 1918):

  • 10.0.0.0 -> 10.255.255.255
  • 172.16.0.0 -> 172.31.255.255
  • 192.168.0.0 -> 192.168.255.255

Other reserved addresses:

  • 127.0.0.0 is reserved for loopback and IPC on the local host
  • 224.0.0.0 -> 239.255.255.255 is reserved for multicast addresses

Read the rest of this entry »

รวบรวม Windows Registry สำหรับคนชอบปรับแต่งครับ

Windows Registry ก็คือโปรแกรมที่ใช้ปรับแต่งค่าต่างๆของ windows เช่นการ เปลี่ยน Title internet explorer (ie) เป็นต้น หรืออีกหลายอย่างแล้วแต่คนชอบแต่งครับ แต่ก็ควรระวังด้วยนะครับเพราะถ้าทำไม่ถูกหรือผิดพลาดมาอาจจะทำให้ boot windows ไม่ได้เลยก็ได้ครับวิธีการเข้าโปรแกรม Registry Editor ก็ไปที่ start -> run พิมพ์ regedit กด Enter

1. Disable CD Auto Run for Home -ยกเลิกการ Auto Run ของซีดีสำหรับเอ็กซ์พีโฮม

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer]

“NoDriveTypeAutoRun”=dword:0×000000FF

2. Disable CD Auto Run for Pro -ยกเลิกการ Auto Run ของซีดีสำหรับเอ็กซ์พีโปร

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Cdrom]

“AutoRun”=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\policies\Explorer\NoDriveTypeAutoRun]

“NoDriveTypeAutoRun”=dword:000000b1

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer]

“NoDriveTypeAutoRun”=dword:000000b1

Read the rest of this entry »