Networkthai
กันยายน 08, 2010, 12:28:50 AM *
ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
ส่งอีเมล์ยืนยันการใช้งาน?

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
ข่าว: Networkthai.org --> My Free Services: Free Hosting for Educations
 
  • Main
  •    หน้าแรก   ช่วยเหลือ ค้นหา ปฏิทิน เข้าสู่ระบบ สมัครสมาชิก  
    หน้า: [1] 2 3 ... 10
     1 
     เมื่อ: สิงหาคม 29, 2010, 09:46:19 AM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย chusak
    Wireless Bridge



    HW: WRT54GL CL7C v1.1 FW: DDWRT v23 SP2 (dd-wrt.v23_wrt54g.bin)


    I couldn't set up the secondary router (client bridge) using the setup from the picture: I kept losing my connection to the router after disabling DHCP. I tried release and renew and even rebooting my PC, all to no avail. Holding the reset button seemed to be the only recovery.


    Instead of using the picture's configuration for my 2nd router, I did only the following in the order listed:


    [[ADMINISTRATION > FACTORY DEFAULTS]]

    1. Restore Factory Defaults : Yes (only if config was changed after last restore)


    [[WIRELESS > BASIC SETUP]]

    2. Wireless Mode : Client Bridge (Note: this automatically disables DHCP but comms with router is not disrupted, which is what seems to happen when explicitly disabling DHCP)

    3. WIRELESS NETWORK SETTINGS : match primary router setting

    4. Click Save settings button


    [[WIRELESS > WIRELESS SECURITY]]

    5. WIRELESS NETWORK SETTINGS : match primary router setting

    6. Click Save settings button


    [[WIRELESS > ADVANCED SETTINGS]]

    7. Authentication Type : match primary router setting / Shared Key if WEP

    8. Click Save settings button


    [[SECURITY > FIREWALL]]

    9. SPI Firewall : Disable

    10. Click Save settings button


    [[STATUS > WIRELESS]]

    11. Click Site Survey button

    12. Find primary router by SSID and click its Join button

    อ้างอิง : http://www.dd-wrt.com/wiki/index.php/Wireless_Bridge

     2 
     เมื่อ: สิงหาคม 22, 2010, 07:39:19 PM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย chusak
    การ config MS Outlook รับ gmail

    imap.gmail.com
    smtp.gmail.com
    Incoming Server: 993
    Incoming Server encrypted connection: SSL
    Outgoing Server: 587
    Outgoing Server encrypted connection: TLS

     3 
     เมื่อ: สิงหาคม 20, 2010, 10:07:19 AM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย chusak
    Shell Script Backup MySQL
    จาก howtoconfig.com

    #!/bin/sh

    export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin

    BACKUP_SRC=”/usr/home/mysql”
    BACKUP_DST=”/data/backup/mysql”
    LIMIT=7d

    ########################################
    HOSTNAME=`uname -n`
    DATE=`date +%Y%m%d`
    DATE_DELETE=`date -v-${LIMIT} +%Y%m%d`
    BACKUP_LOG=”${BACKUP_DST}/backup.log”
    ########################################

    echo “=============================” >> ${BACKUP_LOG}
    echo `date` >> ${BACKUP_LOG}
    echo -n “delete expire backup data..” >> ${BACKUP_LOG}
    rm -rf $BACKUP_DST/mysql-$DATE_DELETE 1> /dev/null 2> /dev/null
    echo ” done” >> ${BACKUP_LOG}

    echo -n “backup database..” >> ${BACKUP_LOG}
    cp -Rp $BACKUP_SRC $BACKUP_DST/$DATE
    echo ” done” >> ${BACKUP_LOG}

     4 
     เมื่อ: สิงหาคม 20, 2010, 09:48:02 AM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย chusak
    คำสั่งที่ใช้ทั่วไปส่วนใหญ่จะใช้ 2 คำสั่ง:

    tasklist = คำสั่งใช้ดู process
    taskkill = คำสั่งใช้ kill process

    ตัวอย่าง
    ต้องการ kill process ด้วยชื่อโปรแกรม เช่นต้องการ kill process โปรแกรม notepad.exe ทิ้ง

    TASKKILL /F /IM "notepad.exe"

    หรือใช้ tasklist ดู process ID เช่น notepad.exe process ID=1234 เมื่อรู้ process ID แล้วสามารถใช้คำสั่ง kill process ได้ดังนี้

    TASKKILL /F /PID 1234

    *** แนวการนำไปใช้สามารถนำไปประยุกต์ใช้ในการเขียน Scrip เพื่อปิดโปรแกรมต่างๆ ที่ทำงานเสร็จแล้วไม่ยอมปิดตัวเอง ***

    ดู Help เพิ่มเติม
    C:\>TASKKILL /?

    TASKKILL [/S system [/U username [/P [password]]]]
             { [/FI filter] [/PID processid | /IM imagename] } [/F] [/T]

    Description:
        This command line tool can be used to end one or more processes.
        Processes can be killed by the process id or image name.

    Parameter List:
        /S    system           Specifies the remote system to connect to.

        /U    [domain\]user    Specifies the user context under which
                               the command should execute.

        /P    [password]       Specifies the password for the given
                               user context. Prompts for input if omitted.

        /F                     Specifies to forcefully terminate
                               process(es).

        /FI   filter           Displays a set of tasks that match a
                               given criteria specified by the filter.

        /PID  process id       Specifies the PID of the process that
                               has to be terminated.

        /IM   image name       Specifies the image name of the process
                               that has to be terminated. Wildcard '*'
                               can be used to specify all image names.

        /T                     Tree kill: terminates the specified process
                               and any child processes which were started by it.

        /?                     Displays this help/usage.

    Filters:
        Filter Name   Valid Operators           Valid Value(s)
        -----------   ---------------           --------------
        STATUS        eq, ne                    RUNNING | NOT RESPONDING
        IMAGENAME     eq, ne                    Image name
        PID           eq, ne, gt, lt, ge, le    PID value
        SESSION       eq, ne, gt, lt, ge, le    Session number.
        CPUTIME       eq, ne, gt, lt, ge, le    CPU time in the format
                                                of hh:mm:ss.
                                                hh - hours,
                                                mm - minutes, ss - seconds
        MEMUSAGE      eq, ne, gt, lt, ge, le    Memory usage in KB
        USERNAME      eq, ne                    User name in [domain\]user
                                                format
        MODULES       eq, ne                    DLL name
        SERVICES      eq, ne                    Service name
        WINDOWTITLE   eq, ne                    Window title

    NOTE: Wildcard '*' for the /IM switch is accepted only with filters.

    NOTE: Termination of remote processes will always be done forcefully
          irrespective of whether /F option is specified or not.

    Examples:
        TASKKILL /S system /F /IM notepad.exe /T
        TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
        TASKKILL /F /IM notepad.exe /IM mspaint.exe
        TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
        TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
        TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *
        TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"



     5 
     เมื่อ: สิงหาคม 19, 2010, 04:11:46 PM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย chusak

    route add <destination ip> mask <subnet> <gateway>

    ตัวอย่าง ถ้า add เครื่องเดียว
    route add 192.168.2.1 mask 255.255.255.255 192.168.1.1

    ถ้า add 24 bit (ทั้ง subnet)
    route add 192.168.2.0 mask 255.255.255.0 192.168.1.1

    ดูตัวอย่างได้จาก

    C:\>route add /?

    Manipulates network routing tables.

    ROUTE [-f] [-p] [command [destination]
                      [MASK netmask]  [gateway] [METRIC metric]  [IF interface]

      -f           Clears the routing tables of all gateway entries.  If this is
                   used in conjunction with one of the commands, the tables are
                   cleared prior to running the command.
      -p           When used with the ADD command, makes a route persistent across
                   boots of the system. By default, routes are not preserved
                   when the system is restarted. Ignored for all other commands,
                   which always affect the appropriate persistent routes. This
                   option is not supported in Windows 95.
      command      One of these:
                     PRINT     Prints  a route
                     ADD       Adds    a route
                     DELETE    Deletes a route
                     CHANGE    Modifies an existing route
      destination  Specifies the host.
      MASK         Specifies that the next parameter is the 'netmask' value.
      netmask      Specifies a subnet mask value for this route entry.
                   If not specified, it defaults to 255.255.255.255.
      gateway      Specifies gateway.
      interface    the interface number for the specified route.
      METRIC       specifies the metric, ie. cost for the destination.

    All symbolic names used for destination are looked up in the network database
    file NETWORKS. The symbolic names for gateway are looked up in the host name
    database file HOSTS.

    If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
    (wildcard is specified as a star '*'), or the gateway argument may be omitted.

    If Dest contains a * or ?, it is treated as a shell pattern, and only
    matching destination routes are printed. The '*' matches any string,
    and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
    Diagnostic Notes:
        Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
        Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
                 The route addition failed: The specified mask parameter is invalid.
     (Destination & Mask) != Destination.

    Examples:

        > route PRINT
        > route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2
                 destination^      ^mask      ^gateway     metric^    ^
                                                             Interface^
          If IF is not given, it tries to find the best interface for a given
          gateway.
        > route PRINT
        > route PRINT 157*          .... Only prints those matching 157*
        > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2

          CHANGE is used to modify gateway and/or metric only.
        > route PRINT
        > route DELETE 157.0.0.0
        > route PRINT



     6 
     เมื่อ: กรกฎาคม 21, 2010, 01:37:28 AM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย movieinw
     Grin Grin ขอบคุณจ้า  Grin Grin

     7 
     เมื่อ: กรกฎาคม 19, 2010, 10:10:28 AM 
    เริ่มโดย Abafebenfem - กระทู้ล่าสุด โดย Abafebenfem
    Some times we need to learn own IP address. But not all know how to do it. It is very simple, on the page http://cmyip.ws, you can learn your IP address and some other important information like: domain name, location, country, city, country code, timezone, latitude and longitude from your IP address

    But if you wish to get same information from other IP address, you need to use the next key ?ip=OTHER_IP_ADDRESS (http://cmyip.ws?ip=71.141.62.29)

    What to learn dialing code, timezone, city, name, area code, zip and etc, you can in the utilies section http://cmyip.ws/?page=utilites

    On the http://cmyip.ws/?page=additional you can learn some more information about your inthernet browser, your current IP and port, screen resolution, proxy information.

    May be some information will help you to protect youself from bad and died socks or proxy and check all what information other sites can learn about you Smiley

    HAND (Have A Nice Day)

     8 
     เมื่อ: มิถุนายน 22, 2010, 07:26:11 AM 
    เริ่มโดย chusak - กระทู้ล่าสุด โดย chusak
    เอา IP ที่ต้องการ Block ใสใน /etc/apf/deny_hosts.rules
    โค๊ด:
    ##
    # deny_hosts
    #
    # Trust based rule file to define addresses that are implicitly denied.
    #
    # Format of this file is line-seperated addresses, IP masking is supported.
    # Example:
    # 192.168.2.1
    # 192.168.5.0/24
    58.8.29.220
    110.164.250.203
    58.8.91.88
    113.53.27.165
    58.8.29.194
    58.8.29.83
    183.89.186.166
    58.8.23.1
    58.8.22.60
    58.8.29.83
    58.8.30.67
    58.8.23.68
    58.8.22.231
    58.8.86.246
    117.47.112.51
    183.89.171.103
    58.8.111.82
    58.8.25.153
    58.8.20.50
    115.87.215.99
    58.8.23.96
    58.8.30.218
    58.8.24.80
    58.8.23.232

    #
    # advanced usage
    #
    # The trust rules can be made in advanced format with 4 options
    # (proto:flow:port:ip);
    # 1) protocol: [packet protocol tcp/udp]
    # 2) flow in/out: [packet direction, inbound or outbound]
    # 3) s/d=port: [packet source or destination port]
    # 4) s/d=ip(/xx) [packet source or destination address, masking supported]
    #
    # Syntax:
    # proto:flow:[s/d]=port:[s/d]=ip(/mask)
    # s - source , d - destination , flow - packet flow in/out
    #
    # Examples:
    # inbound to destination port 22 from 192.168.2.1
    # tcp:in:d=22:s=192.168.2.1
    #
    # outbound to destination port 23 to destination host 192.168.2.1
    # out:d=23:d=192.168.2.1
    #
    # inbound to destination port 3306 from 192.168.5.0/24
    # d=3306:s=192.168.5.0/24
    #
    ##


    สั่งให้ Firewall ทำงานใหม่
    /etc/init.d/apf restart

    ตรวจสอบ log ได้จาก
    tail -f /var/log/apf_log

     9 
     เมื่อ: พฤษภาคม 30, 2010, 11:39:57 PM 
    เริ่มโดย moo - กระทู้ล่าสุด โดย moo
    การกำหนด Prosonal Floder ของ MS Outlook ใน Drive D:























     10 
     เมื่อ: พฤษภาคม 30, 2010, 11:27:36 PM 
    เริ่มโดย moo - กระทู้ล่าสุด โดย moo

    รูปที่1


    รูปที่2


    รูปที่3


    รูปที่4


    รูปที่5


    รูปที่6


    รูปที่7


    รูปที่8


    หน้า: [1] 2 3 ... 10
    Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Thai language by ThaiSMF Valid XHTML 1.0! Valid CSS!
    หน้านี้ถูกสร้างขึ้นภายในเวลา 0.303 วินาที กับ 17 คำสั่ง