Tuesday, November 11, 2008

ส่งเมล์ผ่าน endian firewall มี error ดังนี้

สถานการณ์ส่งเมล์ด้วยโปรแกรม mail ใน vista ส่งถึงผู้รับชื่อ xxx@gmail.com ตรวจสอบใน endian ด้วยคำสั่ง mailq พบ error เช่นนี้แล885F718F3C8 3470 Wed Nov 12 13:25:05 MAILER-DAEMON(host mx5.isp.com[ipaddr] said: 452 Too many recipients received this hour (in reply to RCPT TO command))it_xx@xxx.co.thปัญหานี้ยังไม่ได้แก้ บันทึกไว้เป็นควา...

วันที่และเวลาใน log ของ squid

ความเห็น 1 Open your squid.conf and search for the line that starts with access_log or cache_access_log and looks like: Code: access_log /var/log/squid/access.log squidOf course the path to the logfile may vary in your case. Note the last keyword (in this case squid, but it could be common, combined, squidmime). Then look for the line that starts with logformat and change "%ts.%03tu" with "%tl" fro local time or "%tg" fro GMT time. If the line does not exist you should add it. For the above example it should changed from: Code: logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %st %rm="" %ru="" %un="" %sh="" %a="" %mtto:="" Code: logformat squid %tl %6tr %>a %Ss/%03Hs %st %rm="" %ru="" %un="" %sh="" %a="" %mtyou="" can="" take="" a="" look="" at="" squid.conf.default="" that="" comes=""...

Thursday, November 6, 2008

ผู้ใช้เปลี่ยนพาสเวิร์ดมี error

ในกรณีที่่ทำเป็น Authenticated ด้วย proxy แล้วให้ผู้ใช้งานสามารถเปลี่ยนพาสเวิร์ดด้วยตนเองโดยเข้าไปที่https://endian:10443/cgi-bin/chpasswd.cgi เมื่อคลิกเปลี่ยนพาสเวิร์ดแล้วกลับมี errorE R R O R E R R O R: Username does not existWhat problem and how to solved this...

Endian community กับปัญหาที่รอคำตอบ?????

1. ต่ออินเทอร์เน็ต 2 line คือ 1. True 2 MB 2. True 1 MB ต้องการให้เส้นทางเดินเป็นดังนี้1.1 port 8080/80/445 เป็นต้น วิ่งออกที่ 2 MB1.2 port 25/110 เป็นต้นวิ่งออกทาง 1 MB-------------------------------------2. hotspot function ใน Endian community3. IPcop update http blacklist จะถูก enable ตั้งแต่แรกติดตั้ง ส่วนใน endian จะ update โดยอัตนโนมัติได้อย่างไร ??คำตอบ BTW, this was posted to the nabble mail list archives:#!/bin/sh# update_blacklists.sh, 20070615# Mike Tremaine ################################### ####################################Set up variables################################### dansguardian_start="/etc/init.d/dansguardian start"dansguardian_stop="/etc/init.d/dansguardian stop"dansguardian_conf="/etc/dansguardian/"httpget="/usr/bin/curl"tarpath="/bin/tar"workdir="/tmp"blacklist="http://squidguard.mesd.k12.or.us/blacklists.tgz"...

วิธีป้องกัน SSH Brute Force บน Endian Firewall

การป้องกันการจู่โจมด้วย ssh brute force สำหรับ endian ให้เพิ่ม iptables สำหรับกฏ INPUTเพิ่มเติม มีวิธีการดังนี้1. เปิดไฟล์ /etc/rc.d/rc.firewall.localเพิ่ม iptables อีก 2 บรรทัดiptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --setiptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 600 --hitcount 2 -j DROPรูปแบบไฟล์หลังจากเพิ่มสองบรรทัดข้างบนแล้วจะเป็นดังนี้#!/bin/sh# Used for private firewall rules# See how we were called.case "$1" in start)iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --setiptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 600 --hitcount 2 -j DROP ## add your 'start' rules here ;; stop) ## add your 'stop' rules...

Wednesday, November 5, 2008

Set Endian Firewall ส่ง Log ไปเก็บไว้ที่ Log Server

Endian Firewall เวอร์ชั่น 2.2 RC3 ใช้ syslog-ng เป็นตัวจัดการ log ทำให้สามารถส่ง log จากเครื่อง endian ไปยัง Log Server เพื่อจัดเก็บตาม พรบ. ได้อย่างมีประสิทธิภาพเยี่ยม ในบทความนี้จะแสดงวิธีการ config แบบย่อ ๆ โดยมีรูปแบบการจัดวาง server ดังนี้1. Endian Firewall เป็นตัวกั้นกลางระหว่าง network ภายในกับ internet2. Router ที่ต่อเข้า internet เป็น ZyXEL 660H ต่อผ่าน RED ของ Endian โดย set เป้น Bridge3. Log Server ตั้งอยู่ที่ network ภายใน มีหมายเลข IP=192.168.2.249 ใช้ FC9 เป็น OS ใช้ syslog-ngเป็นตัวจัดการ Logในที่นี้้จะกำหนดให้ endian เป็น gateway ของระบบ และเป็นตัวผลิต log กำหนดให้ FC9 เป็น Log Server ..... หลังจากที่ท่านได้ติดตั้ง endian และ FC เสร็จแล้วทุกอยางผ่านหมด server ทั้งสองสามารถคุยกันได้แล้วต่อไปเรามาเริ่ม config โดยเริ่มจากเครื่อง Log Server ก่อน โดยแก้ไขไฟล์ /etc/syslog-ng/syslog-ng.conf...

Tuesday, November 4, 2008

Endian กับการติดตั้งโปรแกรมชุดพัฒนา

Endian Firewall ชุดติดตั้งไม่ได้ลงตัว library สำหรับกลุ่ม develop ให้ด้วย เช่น พวก gcc / kernel-header เป็นต้น ทำให้ไม่สามารถ compile โปรแกรมต่าง ๆ ที่ตัองติดตั้งเพื่อให้ endian มีความสามารถได้แต่ปัญหานี้ทีม endian ได้เห็นความสำคัญจึงได้มีชุด endian develop ให้ดาวน์โหลด และติดตั้งลงใน endian เพื่อให้สามารถ compile โปรแกรมเสริมอื่นๆ ได้อย่างลงตัว ผมได้ทดลอง โดยมีสถานการณ์ดังนี้1. ติดตั้งชุด endian develop ลงในเครื่อง endian firewall 2. ติดตั้งโปรแกรม imspector เพื่อกรอง และดักจับข้อมูลการใช้ msn ต่าง ๆโดยมีขั้นตอน ดังนี้1. ดาวน์โหลดชุด endian develop จาก www.endian.com EFW-COMMUNITY-2.2-rc3-devel-rpms.tar.gz2. นำไฟล์ไปวางไว้ใน endian firewall...

Twitter Delicious Facebook Digg Stumbleupon Favorites More