วันพฤหัสบดีที่ 6 มกราคม พ.ศ. 2554

What is SSL and what are Certificates

The Secure Socket Layer protocol was created by Netscape to ensure secure transactions between web servers and browsers. The protocol uses a third party, a Certificate Authority (CA), to identify one end or both end of the transactions. This is in short how it works.

1. A browser requests a secure page (usually https://).
2. The web server sends its public key with its certificate.

3. The browser checks that the certificate was issued by a trusted party (usually a trusted root CA), that the certificate is still valid and that the certificate is related to the site contacted.

4. The browser then uses the public key, to encrypt a random symmetric encryption key and sends it to the server with the encrypted URL required as well as other encrypted http data.
5. The web server decrypts the symmetric encryption key using its private key and uses the symmetric key to decrypt the URL and http data.

6. The web server sends back the requested html document and http data encrypted with the symmetric key.

7. The browser decrypts the http data and html document using the symmetric key and displays the information.

Several concepts have to be understood here.

Refer
http://tldp.org/HOWTO/SSL-Certificates-HOWTO/x64.html

วันจันทร์ที่ 20 ธันวาคม พ.ศ. 2553

TTL (Time To Live)

ค่า TTL ก็คือค่าการบอกว่า จำนวน hop ที่วิ่งจากเครื่องที่ ping ไปยัง hostปลายทาง ซึ่งค่าเลวร้ายที่สุดน่าจะประมาณ 40 นะ

Reply from 222.123.23.55: bytes=32 time=8ms TTL=62

TTL 64 จะบอกว่าเป็น linux, Routerเล็ก
TTL 128 จะบอกว่าเป็น Windows

TTL 254 จะบอกว่าเป็น Router ระบบใหญ่ๆ

หากสังเกตลักษณะ ที่เกิดขึ้นคือเมื่อเราทำการ ping ออกไปแล้วค่ามันไม่เท่ากับค่าข้างต้นนั้นหมายถึงมันวิ่งผ่าน Routerไป

อย่างเช่น
Pinging www.xxx.com [222.123.23.55] with 32 bytes of date:

Reply from 222.123.23.55: bytes=32 time=8ms TTL=62
หมายความว่า วิ่งผ่าน Routerไปสองตัวนั้นคือ 64-2

วันเสาร์ที่ 11 ธันวาคม พ.ศ. 2553

Kiwi SyslogGen 2.2.0


หลายครั้งที่เราทำ Syslog Server ขึ้นมาแล้วบางทีกว่าจะ test ได้ต้องเข้าไป config device ให้ pointมาที่ Server เรา แล้วก็ต้อง ทำหลายตัวด้วยซิเพื่อให้ได้ผลที่น่าพอใจ พอดีด้วยความอยากได้ Generator syslog ก็เลยลองหาดูปรากฏว่าเจอตัวนี้ น่าสนใจทีเดียว


การใช้งานค่อนข่างง่าย และมาพร้อมกับ document เป็น PDF
วิธีปรับแต่งค่าเริ่มต้น
Target IP address: เป็นไอพี Syslog Serve
Source IP address : IP address of this machine
Facility เลือกตามที่ใช้งาน: อาจจะเป็น local0
Message text to send: This is Syslog test message number ####
Send options : Send continuosusly
Inter-message delay (ms): เป็นระยะเวลา การหน่วงเวลาในการส่งแล้วแต่ความต้องการครับ
สุดท้ายก็กด Send เป็นอันเสร็จ

Cisco Command Summary



อันนี้เป็น Link แนะนำเกี่ยว command คำสั่งของ Cisco ซึ่งเว็บก็ สรุปทำให้อ่านง่ายขึ้นนะครับ




GRUB Hard Disk Error

มีบางครั้งที่เราใช้งาน Desktop หรือ Server ที่เป็น linux แล้วเกิดข้อความ " GRUB Hard Disk Error"
นั้นแสดงให้เห็นว่า เกิดความเสียหายขึ้นกับ GRUB program ใน loader เราก็สามารถทำการแก้ไขได้ดังนี้ครับ

ใช้แผ่น CentOS 5.5 แล้ว boot เข้า Linux rescue
เข้าหน้า boot แล้วกด F2 มันจะมี menuให้เลือก พิมพ์ข้อความ "Linux rescue" แล้ว Enter
Boot ขึ้นมาแล้วให้พิพม์ตามนี้นะครับ

grub
grub>root (hd0,0)
grub>setup (hd0)
grub>root (hd1,0)
grub>setup(hd1)
grub>quit

ตัวอย่างนี้ในกรณีที่มี HDD สองก้อนครับ

Review เล็กๆ Linksys By Cisco รุ่น WRT160NL Wireless-N Broadband Router With Storage Link





วันนี้ผมก็จะมา Review เล็กๆนะครับ เกี่ยวกับ Linksys By Cisco รุ่น WRT 160NL ว่าทำอะไรได้บ้างพอดีใช้อยู่ก็เลยอยากรู้ว่ารุ่นนี้ทำอะไรได้บ้างครับ

เริ่มกันเลยครับกับ Wireless-N Power

ด้วยพลังของตัว Wireless N ตอนนี้เจ้าตัว WRT160NL เนี้ยก็รองรับการใช้งานแบบ multiple user รวมถึงการแชร์ internet ในที่บ้านหรือที่ทำงานได้สบายเลยนะครับ และด้วยความเร็วของมันก็สามารถแชร์ priter ทำงานได้ดีเกี่ยวกับ gaming, video, voice-over-IP แต่ก็ยังทำงานร่วมกับ Wireless-G และ Wireless-B ได้สบายๆ อยู่นะครับ

Reliable Coverage

ด้วยตัว Wireless-N นี้จะมีเทคโนโลยี Mulitiple in, Multiple out หรือ MIMO สามารถให้เราใช้สัญญาณ wireless ได้ทั้วทั้งบ้าน

Storage for All

ความสามารถ Storage for All นี้ผม ชอบมากเพราะเราสามารถ เสียบ hard drive หรือ flash drive USB แล้วเราสามารถ share file media ได้ ซึ่ง WRT160NL นี้ ทำการ Built-in DLNA 1.5 ซึ่งสามารถทำงานร่วมกับ media server streams จนถึง PC หรือ UPnP AV digital media adapters







Connect to More

เจ้าตัว WRT160NL นี้มี port 10/100 Ethernet มาให้ 4 port กับอีก 1 port Internet ครับ