Announcement

Collapse
No announcement yet.

Mikrotik Club

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by ekk2 View Post
    วานผู้รู้ช่วยตอบทีครับ...ทำอย่างไรจะทำให้การสร้าง user ใน userman โชว์ error เป็นภาษาไทย เหมือนสร้าง user ใน winbox ได้ครับ..ช่วยตอบทีครับ
    แก้ error เป็นภาษาไทย
    ใน hotspot จะมี errors.txt แก้เป็นไทยได้ตามต้องการครับเช่น

    invalid-username = invalid username or password.

    แก้เป็น
    invalid-username = คุณกรอก Username หรือ Password ไม่ถูกต้อง


    error.txt
    ลองแปลดูครับ ยิ้ม


    # This file contains error messages which are shown to user, when http/https
    # login is used.
    # These messages can be changed to make user interface more friendly, including
    # translations to different languages.
    #
    # Various variables can be used here as well. Most frequently used ones are:
    # $(error-orig) - original error message from hotspot
    # $(ip) - ip address of a client
    # $(username) - username of client trying to log in

    # internal-error
    # It should never happen. If it will, error page will be shown
    # displaying this error message (error-orig will describe what has happened)

    internal-error = internal error ($(error-orig))

    # config-error
    # Should never happen if hotspot is configured properly.

    config-error = configuration error ($(error-orig))

    # not-logged-in
    # Will happen, if status or logout page is requested by user,
    # which actually is not logged in

    not-logged-in = you are not logged in (ip $(ip))

    # ippool-empty
    # IP address for user is to be assigned from ip pool, but there are no more
    # addresses in that pool

    ippool-empty = cannot assign ip address - no more free addresses from pool

    # shutting-down
    # When shutdown is executed, new clients are not accepted

    shutting-down = hotspot service is shutting down

    # user-session-limit
    # If user profile has limit of shared-users, then this error will be shown
    # after reaching this limit

    user-session-limit = no more sessions are allowed for user $(username), มีผู้ใช้งาน user นี้อยู่แล้ว

    # license-session-limit
    # Depending on licence number of active hotspot clients is limited to
    # one or another amount. If this limit is reached, following error is displayed.

    license-session-limit = session limit reached ($(error-orig))

    # wrong-mac-username
    # If username looks like MAC address (12569a:bc), but is not
    # a MAC address of this client, login is rejected

    wrong-mac-username = invalid username ($(username)): this MAC address is not yours

    # chap-missing
    # If http-chap login method is used, but hotspot program does not receive
    # back encrypted password, this error message is shown.
    # Possible reasons of failure:
    # - JavaScript is not enabled in web browser;
    # - login.html page is not valid;
    # - challenge value has expired on server (more than 1h of inactivity);
    # - http-chap login method is recently removed;
    # If JavaScript is enabled and login.html page is valid,
    # then retrying to login usually fixes this problem.

    chap-missing = web browser did not send challenge response (try again, enable JavaScript)

    # invalid-username
    # Most general case of invalid username or password. If RADIUS server
    # has sent an error string with Access-Reject message, then it will
    # override this setting.

    invalid-username = invalid username or password , user หรือ password ผิด

    # invalid-mac
    # Local users (on hotspot server) can be bound to some MAC address. If login
    # from different MAC is tried, this error message will be shown.

    invalid-mac = user $(username) is not allowed to log in from this MAC address

    # uptime-limit, traffic-limit
    # For local hotspot users in case if limits are reached

    uptime-limit = user $(username) has reached uptime limit
    traffic-limit = user $(username) has reached traffic limit

    # radius-timeout
    # User is authenticated by RADIUS server, but no response is received from it,
    # following error will be shown.

    radius-timeout = RADIUS server is not responding

    # auth-in-progress
    # Authorization in progress. Client already has issued an authorization request
    # which is not yet complete.

    auth-in-progress = already authorizing, retry later

    # radius-reply
    # Radius server returned some custom error message

    radius-reply = $(error-orig)


    ทำสองที่ครับ
    ในหน้า login.html set <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    แล้วเปิดไฟล์ error.txt แก้ไขภาษาไทยให้เรียบร้อย ตอนเซฟให้เลือก save as แล้วตั้งตามรูปครับ


    uptime limit reached ไม่มีใน error.txt ที่บอร์ดฝรั่งใช้ java script แปลงเอาครับ

    <script type="text/javascript">
    var error = "$(error)";

    if (error == "credit limit reached") {
    document.write("บัตรนี้หมดชั่วโมง หรือวันใช้งานแล้ว");
    }
    </script>

    เพิ่มลงใน login.html นะครับ
    cr.http://wifi-speed.blogspot.com/

    Comment


    • Originally posted by panthdech View Post
      อยากทราบว่า ถ้าไม่ใช้ userman เราจะกำหนดเวลาการใช้งานแบบกลุ่มของ user ในwinbox ยังไงครับ เช่น

      -กลุ่มรายวัน ใช้ได้ 1 วัน

      -กลุ่มรายเดือน ใช้ได้ 30 วัน

      เราจะไปกำหนดเวลาการใช้งานแบบกลุ่ม ตรงส่วนไหนใน winbox----->>> user profile ครับ



      ขอบคุณครับ
      อยากให้สะดวกต่อการเพิ่ม user แล้วจะได้เลือกกลุ่มโดยไม่ต้องมานั่งเซ็ตที่ละ user ใช่ไหมครับ เท่าทีดูเหมือนจะไม่ได้นะ ต้องทำที่ menu users อย่างเดียว หรือใน userman ครับ ไม่ก็ radius นอกเลยครับ แต่จริงๆผมว่า userman ก็โอนี่ครับ

      Comment


      • Originally posted by nirvanaaa View Post
        ขอความช่วยเหลือครับLog มันขึ้นแบบนี้แล้วเนทก็ช้าครับเป็นเพราะอะไรครับ[ATTACH=CONFIG]3037559[/ATTACH]
        ลองไปที่ terminal> /interface ethernet >monitor>จะขึ้น number : (ใส่ port ที่เป็นปัญหา คือ 5 ) ลองแคปมาดูหน่อยครับ

        Comment


        • Originally posted by [~DREAM~] View Post
          อยากให้สะดวกต่อการเพิ่ม user แล้วจะได้เลือกกลุ่มโดยไม่ต้องมานั่งเซ็ตที่ละ user ใช่ไหมครับ เท่าทีดูเหมือนจะไม่ได้นะ ต้องทำที่ menu users อย่างเดียว หรือใน userman ครับ ไม่ก็ radius นอกเลยครับ แต่จริงๆผมว่า userman ก็โอนี่ครับ



          ขอบคุณมากครับ ตอนนี้ผมกำลังทำ api อยู่ครับยังขาดหรือแต่จัดการเวลาในกลุ่ม สงสัยต้องหาวิธีเข้า script php ก่อนครับ ว่าจะดึงฐานข้อมูลจากไหนไปไหนแล้วค่อยนำไปแก้ไข เดี๋ยวเสร็จแล้วจะนำให้ทุกท่านได้ทดสอบครับ
          14-11-2557 12-01-57.jpg

          14-11-2557 12-09-36.jpg

          Comment


          • Originally posted by panthdech View Post
            ขอบคุณมากครับ ตอนนี้ผมกำลังทำ api อยู่ครับยังขาดหรือแต่จัดการเวลาในกลุ่ม สงสัยต้องหาวิธีเข้า script php ก่อนครับ ว่าจะดึงฐานข้อมูลจากไหนไปไหนแล้วค่อยนำไปแก้ไข เดี๋ยวเสร็จแล้วจะนำให้ทุกท่านได้ทดสอบครับ
            [ATTACH=CONFIG]3039543[/ATTACH]

            [ATTACH=CONFIG]3039549[/ATTACH]
            คือเพิ่มใน winbox หรือ userman อะครับ น่าสนใจ

            Comment


            • รบกวนสอบถามหน่อยครับพอดีว่าผมอยากเดินไฟเบอร์400ม.ไปอีกไซร์งานแล้วต้องการใช้ตัวmikrotik RB2011LSIN เป็นเหมือนสวิตฮับ ต้องsetค่ายังไงครับ

              โจทคือผมมีเราเตอร์ซึ่งเซ็ตPPOEไว้แล้วต่อสายแลนเข้าportที่1ของตัวmikrotik RB2011LSIN ต้นทางแล้วจะให้เน็ตมันออกไปทางport fiberต้นทางเสร็จแล้วเดินไฟเบอร์ไปต่อเข้าตัวmikrotik RB2011LSIN ปลายทางโดยให้มันออกเน็ตวงเดียวกันได้ทั้ง2ตัวเพราะต้องการใช้ระบบแชร์ไฟล์Serverในวงเดียวกันโดยไม่ต้องใช้VPNหรือระบบย
              ิงไวไฟข้ามฟาก
              ขอบคุณครับ

              Comment


              • สอบถามหน่อยครับ
                ตรงแถบ Limits ใน user
                limit uptime คือ เวลาที่ user ใช้งานได้

                limit Bytes In คือ อะไรครับ
                limit Bytes Out คือ อะไรครับ
                limit Bytes total คือ อะไรครับ

                แล้วเราจะกำหนดวันหมดอายุของ user ใน winbox ได้ที่ไหนครับ

                ขอบคุณครับ

                Comment


                • Originally posted by [~DREAM~] View Post
                  คือเพิ่มใน winbox หรือ userman อะครับ น่าสนใจ
                  จำลองใน appser แล้วดึงข้อมูลจาก winbox มาจัดการในหน้าเว็บครับ

                  Comment


                  • Originally posted by panthdech View Post
                    ขอบคุณมากครับ ตอนนี้ผมกำลังทำ api อยู่ครับยังขาดหรือแต่จัดการเวลาในกลุ่ม สงสัยต้องหาวิธีเข้า script php ก่อนครับ ว่าจะดึงฐานข้อมูลจากไหนไปไหนแล้วค่อยนำไปแก้ไข เดี๋ยวเสร็จแล้วจะนำให้ทุกท่านได้ทดสอบครับ
                    [ATTACH=CONFIG]3039543[/ATTACH]

                    [ATTACH=CONFIG]3039549[/ATTACH]
                    ขอทดสอบด้วยคนครับ

                    Comment


                    • Originally posted by fukpudee View Post
                      มันก้อตรงกันแล้วน่ะครับแต่มันก้อยังไม่ได้ งง จังเลย...
                      เหมือนแบบนี้แล้วก้อยังไม่ได้ครับ มันก้อยังขึ้น RADIUS server is not responding อยู่ดี

                      Comment


                      • Originally posted by no_coke View Post
                        มันยังไม่คุยกับ Radius ลองตรวจสอบการตั้งค่าตรงนี้ก่อนครับ

                        ใน winbox
                        [ATTACH=CONFIG]2431423[/ATTACH]

                        ใน userman
                        [ATTACH=CONFIG]2431424[/ATTACH]
                        เหมือนแบบนี้แล้วก้อยังไม่ได้ครับ มันก้อยังขึ้น RADIUS server is not responding อยู่ดี

                        Comment


                        • พอจะมีวิธีกำหนดวันหมดอายุเลยไหมครับ เช่น กำหนดให้หมด 31/12/2014 พอมีวิธีไหมครับ ขอบคุณครับ

                          Comment


                          • Originally posted by [~DREAM~] View Post
                            ลองไปที่ terminal> /interface ethernet >monitor>จะขึ้น number : (ใส่ port ที่เป็นปัญหา คือ 5 ) ลองแคปมาดูหน่อยครับ
                            ขอบคุนครับ ช่วยดูหน่อยนะครับ
                            Attached Files
                            Last edited by nirvanaaa; 17 Nov 2014, 11:18:10.

                            Comment


                            • Originally posted by panthdech View Post
                              สอบถามหน่อยครับ
                              ตรงแถบ Limits ใน user
                              limit uptime คือ เวลาที่ user ใช้งานได้

                              limit Bytes In คือ อะไรครับ
                              limit Bytes Out คือ อะไรครับ
                              limit Bytes total คือ อะไรครับ

                              แล้วเราจะกำหนดวันหมดอายุของ user ใน winbox ได้ที่ไหนครับ

                              ขอบคุณครับ
                              limit Bytes In คือ ค่า download หรือ rx ของ user ครับ
                              limit Bytes Out คือ ค่า upload หรือ tx
                              limit Bytes total คือ อันนี้น่าจะเป็นค่ารวมของทั้งสองครับ โดยที่เราสามารถกำหนดทั้งหมดนี้เหมือนกันค่ายมือถือที่ทำกันครับ เช่น สามารถใช้ได้ 4 gb อะไรประมาณนั้น พอครบกำหนดก็จะเล่นไม่ได้ครับ

                              แล้วเราจะกำหนดวันหมดอายุของ user ใน winbox ได้ที่ไหนครับ<< session-timeout ครับ จริงๆอยากแนะนำให้ทำใน userman ดีกว่าครับ

                              Comment


                              • Originally posted by nirvanaaa View Post
                                ขอบคุนครับ ช่วยดูหน่อยนะครับ
                                เอ่อ เหมือนมันไม่ได้ต่อไว้เลยอ่ะครับ เอ่อผมลืมไปมันนับ ether1 เป็น port 0 อ่ะครับ ลองใหม่เป็น number 4 หน่อยครับ

                                ลองไปติ๊กที่ interfaces>ether5ของท่าน>tab status > ติ๊กตรง Full Duplex ครับ

                                Comment

                                Working...
                                X