วันจันทร์ที่ 2 มิถุนายน พ.ศ. 2557

การปิด ping ไม่ให้ทำการ ping หาเครื่องเราได้

windows xp
   start >Control Panel >Windows Firewall > Tab General
   ให้เลือก check “On (recommended)”

   แล้วให้ไปที่ Tab Advanced
   start >Control Panel >Windows Firewall > Tab Advanced

   เลือกหัวข้อ ICMP click to “Settings…”
   เอาเครื่งหมายถูกช่อง allow incoming echo request ออก

   Test ping ว่าปิดได้ไหมครับ
#ping ip_address


windows Server 2003
   start >Control Panel >Windows Firewall > Tab General
   ให้เลือก check “On”

   แล้วให้ไปที่ Tab Advanced
   start >Control Panel >Windows Firewall > Tab Advanced

   เลือกหัวข้อ ICMP click to “Settings…”
   เอาเครื่งหมายถูกช่อง allow incoming echo request ออก

   Test ping ว่าปิดได้ไหมครับ
#ping ip_address


Windows Server 2008 จะถูกตั้งค่าให้ปิด Ping Reply อยู่แล้ว
   วิธีการตั้งค่า Windows Server 2008 ให้สามารถ Ping Reply ได้ให้ดูข้อมูลได้ที่เว็บsosweets.net ซื่งอธิบายรายละเอียดทุกขึ้นตอน


windows 7
   -


linux Redhat/CentOS
   พิมพ์คำสั่งตามข้างล่าง
   [root@RD ~]# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
   ถ้าต้องการให้สามารถ ping ได้เหมือนเดิม ให้เปลี่ยนการ echo 1 เป็น echo 0 แทนครับ

ที่มาhttp://group.wunjun.com/hospital/topic/420422-13602

วันอังคารที่ 26 กุมภาพันธ์ พ.ศ. 2556

แก้ไข login rnet2007 ไม่ทำงาน

กรณีเปลี่ยน ip server
#service chilly restart
#service network restart
#chmod 755 /var/www/cgi-bin/hotsport.cgi
#reboot -n
ลองใหม่

วันพุธที่ 6 กุมภาพันธ์ พ.ศ. 2556

เปลี่ยน ip centOS


เปลี่ยน ip วงใหญ่
[root@log ~]# service iptables restart
[root@log ~]# service radiusd restart
[root@log ~]# nano /var/www/cgi-bin/hotspotlogin.cgi
[root@log ~]# nano /etc/raddb/radiusd.conf
[root@log ~]# service squid restart
[root@log ~]# nano /etc/chilli.conf
[root@log ~]# nano /var/www/html/net2007/config.php
[root@log ~]# chkconfig chilli on
[root@log ~]# service chilli restart


ip 1000 user
255.255.252.0
10.0.1.1/22

วันจันทร์ที่ 12 พฤศจิกายน พ.ศ. 2555

ลบ cache ใน Authen

ตรวจสอบ Memory
root@34d30y [~]# free -m
total       used       free     shared    buffers     cached
Mem:          8881       4744       4136          0        296       3567
-/+ buffers/cache:        880       8000
Swap:         4095          0       4095
root@34d30y [~]# sync
root@34d30y [~]# echo 3 > /proc/sys/vm/drop_caches
root@34d30y [~]# free -m
total       used       free     shared    buffers     cached
Mem:          8881        533       8347          0          1         19
-/+ buffers/cache:        512       8368
Swap:         4095          0       4095

=========
ลบในเคื่อง Authen ครับ
#/etc/init.d/squid stop
#rm -Rf /var/spool/squid/*
#/etc/init.d/squid start

วันพุธที่ 24 ตุลาคม พ.ศ. 2555

ลบ cache


[root@log showsita]# /etc/init.d/squid restart
Stopping squid: ................                           [  OK  ]
Starting squid: .                                          [  OK  ]

วันเสาร์ที่ 13 ตุลาคม พ.ศ. 2555

ln -s /var/www/mrtg/

ln -s /var/www/mrtg/

ลบ link

rm -rf NAME

วันอังคารที่ 25 กันยายน พ.ศ. 2555

block download centos

#cp /etc/squid/squid.conf /etc/squid/squid.conf.backup

#nano /etc/squid/squid.conf

edit at
mark @ All line

delay_poll

#service squid restart
[OK]
[OK]