Mentohust Use Tutorial

Source: Internet
Author: User

This article is the use of Mentohust tutorial, designed to introduce mentohust how to use, Mentohust is a support windows, Linux, MAC OS Ruijie certification program (with support Xaar certification), Windows Edition Mentohust supports all major versions of Windows, compared with the most important advantage of Ruijie official program is the low memory, has basically stopped updating, now Ruijie official program is also improving, so it is recommended to use the official program under Windows.

The Linux version of Mentohust is compatible with Windows, so if you are able to use Mentohust certification under Windows, you don't have to worry about not having to use the campus network after installing Linux (of course, with Ruijie's school).

Ruijie official Linux version for a long time no update, the use of official procedures many students can not pass certification, some will pass but easy to drop the line. Although on-line third-party Linux version of the Ruijie client a lot, but all the same, can not be through Ruijie client check. Linux Edition Mentohust is a certified client that is well-compatible with Ruijie under Linux and is easy to use with the campus network for Linux and Ruijie students. With the efforts of member Kkhaike, Mentohust now supports Ruijie's V3 client-side verification algorithm, which means that mentohust is fully compatible with all versions of Ruijie (whether or not a perverted V3 algorithm is turned on).

Mac OS version Mentohust was later compiled on the Linux version of Mentohust on Mac OS (gcc is very good and powerful, likes).

Main functions:

Supports Ruijie V2 and V3 client-side validation algorithms, fully compatible with Ruijie

Multi-NIC Support

Good simulation of all versions of Ruijie data, supporting all current versions of Ruijie

Supports static IP and DHCP (dynamic IP) authentication

Supports static IP user-defined IP (that is, binding IP is different from Internet IP)

Support for server message prompts and billing information tips

Certified successfully online, even if the wire can be automatically re-connected, support Ping An IP smart re-connect

Relevant tools support, customizable data files for the best possible compatibility with all versions without the need to modify the code

Support Xaar Certification

How to use:

Because Windows edition Mentohust has a good GUI interface, it is not in the scope of the discussion.

All of the following assume that you are downloading the latest version of the Linux version Mentohust (as of 2009.12.3) 0.3.3

The MacOS version of Mentohust is used the same way as the Linux version.

Installation:

This program relies on LIBPCAP, so the system must have libpcap.so.0.8, libpcap.so.0.9, libpcap.so.1.0, libpcap.so.1.1 One, now the mainstream distribution to meet this condition

It is recommended that Ubuntu users install with the Deb package and that Fedora users install it using the RPM package, and that they do not use other forms of installation.

Download Address: Http://code.google.com/p/mentohust/downloads/list

Use:

If you are sure that you can use XRGSU authentication successfully, open the terminal input sudo mentohust to run.

If you are unsure, use the CD command in the terminal to switch to Ruijie's directory, and then enter the following command:

sudo mkdir/etc/mentohust

sudo cp./8021x.exe/etc/mentohust

sudo cp./w32n55.dll/etc/mentohust

Then open the terminal input sudo mentohust to run. If authentication fails, then switch to Ruijie's directory and enter the following command:

sudo cp./suconfig.dat/etc/mentohust

Then open the terminal input sudo mentohust to run.

PS: Specifically which version needs SuConfig.dat is not sure, it seems that Ruijie 3.63 before the need for the future.

If the exact steps above or the authentication fails, download Mentohusttool, grab the package under Windows and save it as Data.mpf,

Then go back to Linux and use the CD command in the terminal to switch to the directory where the Data.mpf is located, enter the following command:

sudo cp./data.mpf/etc/mentohust

Then open the terminal input sudo mentohust-f/etc/mentohust/data.mpf-w to run. You will only need to enter Sudo mentohust later.

How to exit: When running Mentohust in background mode, press CTRL + C or close the terminal to exit, and use sudo mentohust-k to exit authentication when running in the background.

Start-up operation:

It is recommended that users who need to power on will use sudo mentohust-b3-y5-w to set Mentohust to daemon run and save output to/tmp/mentohust.log to turn on message notifications.

Ubuntu, Fedora User: Select Menu "System--preferences, Launch Application", click "Add", enter the name mentohust, command sudo mentohust, click "Add".

For users who have not modified the/etc/sudoers file so that sudo does not require a password, the above method is not able to implement the Mentohust boot automatically, can be modified/etc/rc.local or/etc/gdm/init/default and other files to achieve For example:

sudo gedit/etc/gdm/init/default

Then add the following in front of exit 0 (the last line):

if [-x/usr/bin/mentohust]; Then

/usr/bin/mentohust

Fi

Detailed parameters

Mentohust is rich in parameters to accommodate different schools in different Ruijie certification environments. This program uses a configuration file (/etc/mentohust.conf) to save parameters, although the configuration file is a standard INI format file, not complicated, but still someone because of extra space or, cause configuration problems, so it is not recommended to manually modify the configuration file to set parameters.

To open the terminal and enter Sudo mentohust-h, the following will be displayed:

Welcome to Mentohust Version: 0.3.3

Copyright (C) Hustmoon Studio

People to central China, there are sweet and spicy. Minde, a creative and innovative family.

Bug report to Http://code.google.com/p/mentohust/issues/list

Usage: mentohust [-options] [parameter]

Option:-H displays this help information

-K Exit Program

-W Save parameter to configuration file

-U user Name

-p password

-N Nic Name

-I ip[default native IP]

-M subnet mask [default native mask]

-G Gateway [default 0.0.0.0]

-S dns[default 0.0.0.0]

-O ping host [default 0.0.0.0, which means to turn off the feature]

-T authentication timeout (seconds) [default 8]

-e response interval (seconds) [default 30]

-R failed to wait (seconds) [default 15]

-A multicast address: 0 (Standard) 1 (Ruijie) 2 (xaar) [default 0]

-d DHCP mode: 0 (not used) 1 (two authentication) 2 (after certification) 3 (pre-certification) [Default 0]

-B Whether running in the background: 0 (NO) 1 (yes, off output) 2 (yes, reserved output) 3 (yes, output to file) [default 0]

-y Display Notification: 0 (NO) 1~20 (yes) [default 5]

-F Custom data file [not used by default]

-C DHCP Script [default Dhclient]

Example: Mentohust-uusername-ppassword-neth0-i192.168.0.1-m255.255.255.0-g0.0.0.0-s0.0.0.0-o0.0.0.0-t8

-e30-r15-a0-d1-b0-fdefault.mpf-cdhclient

When using, make sure to run with root privileges!

Each parameter is explained below.

-H or-?: Displays help information, which is what is above.

-k:mentohust Support daemon operation (that is, after the successful authentication can shut down the terminal and authentication will not be interrupted), when entering the daemon mode of operation, it is not like not to enter the model

When you exit with CTRL + C, you can use sudo mentohust-k if you need to exit.

-W: The parameters specified in the command line arguments are not saved to the configuration file by default, and if necessary, add this parameter, such as Sudo mentohust-uhust-p123456-w

The user name is updated to Hust and the password is updated to 123456.

-u,-p,-n: Specify the user name, password, network card respectively, these three parameters if not specified will automatically determine whether the input is required.

-i,-m,-g,-s: For static IP users to assign school assigned IP, subnet mask, Gateway, DNS, which seems to only IP will affect the success of authentication (to normal internet,

You must also set the IP, subnet mask, Gateway, and DNS in NetworkManager, which you can not set in Mentohust after you set it up in NetworkManager.

These parameters are not valid for dynamic IP users.

-O: Specifies the target IP used for ping when smart re-connects, for example, IP1.2.3.4 can not ping when not authenticated, after successful authentication, you can add parameter-o1.2.3.4, when

Line and does not receive the server offline notification will be in the lost line within 1 minutes of the re-connected (unless the network is not good, generally will not drop, dropped and received the server offline notification will be dropped immediately after the connection).

-T: Specifies the number of seconds after the authentication is still not received the server response is restarted authentication, generally remain the default.

-E: Specifies how many seconds to send data to the server once the authentication is successful to indicate that you are still online, usually by default.

-R: Because some schools will not allow certification after a certain period of time, so no matter how many data servers during this period will not respond, in order to reduce the

Garbage data, Mentohust will wait for a period of time after authentication failure or the server to request data from the client to re-authentication, this time is specified by this parameter, generally remain the default.

-r15 is not to say that certification fails 15 seconds after the authentication, if the server in 15 seconds to send a packet request to start certification, Mentohust will give up waiting, immediately start re-certification.

-A: Specifies the multicast address or client type,-A0 standard-A1, which corresponds to the standard and private in Ruijie, some schools can only use the standard, some schools can only use private

There is, so if the prompt "Cannot find the server" and the network card is not selected wrong, check whether the setting is wrong here. -A2 says Mentohust is used for Xaar certification (Xaar's-A0 standard is also OK).

-D: Specify the DHCP mode, the use of dynamic IP students should be correctly set here, generally not 1 is 2, if the use of 3 certification is not able to access the Internet, please change to 1 try.

Students using static IP should set this to 0.

-B: Specify the background (daemon) run mode,-b0 do not run in the background, then the authentication can not shut down the terminal,-B1,-B2 background operation, the former can not see the output, the latter retains the output;

-b3 the background runs and saves the output to/tmp/mentohust.log, you can open the file to view the output at any time.

-y: Specifies whether to display notifications (notify),-y0 not displayed, 1~20 display, where the number specifies the notification duration (since Ubuntu uses a new notification mechanism, so only in Fedora

Time will be valid). When this parameter is not 0 and there is libnotify.so.1 in the system (almost all systems have the file), you can display notifications for the following effects (on Ubuntu, under Fedora)

-F: Because the Mentohust built-in data is compatible with XRGSU (that is, if the XRGSU can be successfully authenticated with the Mentohust does not set this parameter can also be certified successful),

Some schools have closed the XRGSU certification (generally "disallowed client type"), and 8021x.exe and W32N55.dll can be copied to the/etc/mentohust directory.

If authentication fails, then copying the SuConfig.dat to the/etc/mentohust directory will generally be successful. If you fail, you need to grab the package and specify the parameter.

To http://code.google.com/p/mentohust/downloads/list download the Mentohust Grab Kit tool, and then run the Mentohusttool, depending on the situation check whether

"Integrated 8021x.exe" and "Integrated W32N55.dll" (recommended), click "Start", run "Ruijie", capture the Ruijie certification when the packet, waiting for the end of the package to save the file.

The data file path is then specified in this parameter under Linux, and if "Integrated 8021x.exe" and "Integrated W32N55.dll" are not checked, the 8021x.exe and

W32N55.dll is copied to the directory where the data files are located, then you can start the authentication. If the authentication fails, the SuConfig.dat is also copied to the directory to be certified successfully.

-C: Specifies a script that runs when dynamic IP users are DHCP, usually by default. If you feel this output too much affect harmony, you can change to-cdhclient>/dev/null.

MacOS users can try to change it to Ipconfig set en0 DHCP, where En0 is the same as the network card name (sudo mentohust-c ' ipconfig set en0 DHCP '-W).

Configuration and certification examples

A static IP (192.168.1.10) user, username hust, password 123456, want to ping192.168.1.254 smart re-connect, while Deamon way to save output to a file

First, configure the IP, Gateway, mask, DNS, and other information in the NetworkManager, and then

sudo mentohust-uhust-p123456-o192.168.1.254-b3-w

Only sudo mentohust is required for next certification

Exit sudo mentohust-k

A dynamic IP user (two authentication), username hust, password 123456, use data file/etc/mentohust/3_73.mpf

sudo mentohust-uhust-p123456-d1-f/etc/mentohust/3_73.mpf-w

Only sudo mentohust is required for next certification

Exit Button CTRL + C

have set up the relevant parameters, need to temporarily use the user name Hust@hust, password and the original password the same account authentication

sudo mentohust-uhust@hust

Support institutions

• For institutions that allow XRGSU certification, the use of official procedures Xrgsu or mentohust do not set up data files can be successful certification, such institutions are more, so this is not the case. Listed here are those institutions that do not allow XRGSU authentication but can be successfully certified by Mentohust to set up data files (supplemental: Mentohust The latest version of the default data in addition to XRGSU, there is also the Windows version of Ruijie, So in most cases there is no need to grab the package: If only the version has requirements such as power, just use the-v parameter to specify the version number of the simulation, such as-v3.35; if you need to verify the client such as Hefei, also need to copy the Ruijie several files to/etc/ Mentohust or use the-f parameter to specify the directory where Ruijie is located, such as-F '/media/program/ruijie/'). Welcome to have such experience of students to write their own school's name below to facilitate Yimeimei.

Xuzhou Normal University (multicast address: Ruijie Private DHCP Mode: Shutdown Client version: 3.22 effective in the teaching area)

• Sichuan University (multicast address: Standard DHCP mode: After authentication Client version: 3.73)

• Xidian University (multicast address: Ruijie DHCP mode: After authentication Client version: 3.35)

• Hefei University (multicast address: Standard DHCP mode: After authentication Client version: 3.35)

• Huaqiao University

Anhui University of Technology (multicast address: Ruijie DHCP: After authentication Client version: 3.50, need to copy 8021x.exe and W32N55.dll files to/etc/mentohust)

· Chang (replication 8021x.exe and W32N55.dll can be certified DHCP mode: After the Authentication Client version: 3.50) (Ruijie upgrade version 4.21, method one, apply for the use of Linux certification, but this will not win under the certification, method two, under the win certification clutch, need 8021x.exe,suconfig.dat, set by Mentohust instructions)

• Guangdong Business School (Sanshui Campus & Headquarters Campus) (copy 8021x.exe and W32N55.dll files to/etc/mentohust, multicast address: Ruijie DHCP: Pre-Authentication Client version: 3.50)

• Anhui Agricultural University (multicast address: Standard DHCP mode: After authentication or two authentication Client version: 3.54)

· (Chengdu) (Qing River Campus) A (copy 8021x.exe and W32N55.dll files to/etc/mentohust); B (Multicast address: Ruijie DHCP mode: Client version after authentication: 3.35); C ( Looks like you want to write down your IP in Windows and set it in Mentohust.

• Zhengzhou University (multicast address: Private DHCP Mode: Shutdown client version: 2.XX)

• Wuhan Institute of Technology (multicast address: Standard DHCP mode: Shutdown client version: 0.3.4)

• Central University (college South Campus) (Multicast address: Standard, DHCP, after authentication, client version 0.3.4)

Hunan University of Technology (Institute of Technology) multicast address: Standard client version 0.3.4

Harbin Institute of Technology (multicast address: Standard DHCP mode: after certification)

No support for institutions

Mentohust now supports Ruijie V2 and V3 client check algorithm, so at present whether the school does not allow XRGSU certification, whether to open the Ruijie V3 client check algorithm, Mentohust can be certified successful. So there is no support institutions, for the time being, the use of the latest version of the Mentohust certification failure is misconfigured results, welcome to have such experience of students to communicate with others so as soon as possible on the smooth use of the campus network on Linux.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.