Posts

Showing posts from January, 2010

Squid : Custom error page

Image
หน้าตาสำหรับแสดงผลกรณีมี error ของ squid เช่น กรณีถูกบล็อก(ERR_ACCESS_DENIED) แก้ไขได้ที่ /usr/share/squod/errors/ โดยสามารถใช้ Variable ได้ด้วย ดังนี้ %B URL with FTP %2f hack %c Squid error code %d seconds elapsed since request received (not yet implemented) %e errno %E strerror() %f FTP request line %F FTP reply line %g FTP server message %h cache hostname %H server host name %i client IP address %I server IP address %L contents of err_html_text config option %M Request Method %m Error message returned by external auth helper %p URL port %P Protocol %R Full HTTP Request %S squid default signature %s caching proxy software with version %t local time %T UTC %U URL without password %u URL with password (Squid-2.5 and later only) %w cachemgr email address %z dns server error message ตัวอย่าง ERR_ACCESS_DENIED ERROR: The requested URL could not be retrieved Web นี้ถูก block ในช่วงเวลา 8:00-12:00 น. และ 13

Squid : Custom error page

Image
หน้าตาสำหรับแสดงผลกรณีมี error ของ squid เช่น กรณีถูกบล็อก(ERR_ACCESS_DENIED) แก้ไขได้ที่ /usr/share/squod/errors/ โดยสามารถใช้ Variable ได้ด้วย ดังนี้ %B URL with FTP %2f hack %c Squid error code %d seconds elapsed since request received (not yet implemented) %e errno %E strerror() %f FTP request line %F FTP reply line %g FTP server message %h cache hostname %H server host name %i client IP address %I server IP address %L contents of err_html_text config option %M Request Method %m Error message returned by external auth helper %p URL port %P Protocol %R Full HTTP Request %S squid default signature %s caching proxy software with version %t local time %T UTC %U URL without password %u URL with password (Squid-2.5 and later only) %w cachemgr email address %z dns server error message ตัวอย่าง ERR_ACCESS_DENIED ERROR: The requested URL could not be retrieved Web นี้ถูก block ในช่วงเวลา 8:00-12:00 น. และ 13

JavaScript : 1 Form 2 Target

Logon Script : Map Network Drive

' MapNetworkDrive.vbs ' VBScript to map a network drive to a UNC Path. ' Author Guy Thomas http://computerperformance.co.uk/ ' Version 2.3 - September 2005 ' -----------------------------------------------------------------' Option Explicit Dim objNetwork Dim strDriveLetter, strRemotePath strDriveLetter = "P:" strRemotePath = "\\server2\public_data" ' Purpose of script to create a network object. (objNetwork) ' Then to apply the MapNetworkDrive method. Result J: drive Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive strDriveLetter, strRemotePath WScript.Quit ' End of Example VBScript.

Service ports for firewall configuration

DHCP *UDP 67, 2535 DNS *UDP 53 *TCP 53,139, 445 Symantec Systen Center *TCP 2967

Squid and Active Directory

acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 # https acl SSL_ports port 563 # snews acl SSL_ports port 873 # rsync acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl Safe_ports port 631 # cups acl Safe_ports port 873 # rsync acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT acl webblocked url_regex '/etc/squid/webblocked.txt' acl day_am time 08:00-12:00 acl day_pm time 13:00-17:40 http_access deny webblocked day_am http_access d

Axapta : Firewall config

Image
เราสามารถตั้งค่า Axapta ให้ใช้งานผ่าน Windows Firewall ได้โดยตั้งค่า port ที่ AOS ดังรูป ในส่วนของ Client Config ก็ตั้งค่าในส่วนของ advance ดังรูป แล้วก็ไป add port เพิ่มใน Windows Firewall