歡迎您光臨本站 註冊首頁

redhat linux 中用銳捷客服端實現上網

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

redhat linux中用銳捷客服端實現上網

開學了我們學校用的是銳捷的客服端連接外網,window下安裝銳捷客服端實現上網很隨意,但linux下卻不是那麼如魚得水.我們校的很多同學都想用linux系統,但都因為安裝銳捷客服端問題,不能上網,望而卻步.

如今linux系統越來越火,為了攻破以上問題,結合網路上和自身的知識,總結出下方法:

1.剛開始一直用xrgsu-1.1.1.i386.tar.gz應該是銳捷官方提供的,搞了半天一直不成,錯誤結果是:

[root@localhost xrgsu1.1]# ./xrgsu -a
XRGSupplicant 1.0.1
RuiJie Network CopyRight 2004
Please input your user name:20087780338
Please input your password:
Use DHCP,1-Use,0-UnUse(Default: 0):
You have 3 Nic:
0. eth0 Desc: (null)
1. vmnet1 Desc: (null)
2. vmnet8 Desc: (null)
Please select which NIC will be used(0-2,Default:0)
Use default auth parameter,0-Use 1-UnUse(Default: 0):
Searching server...
Connecting server...
Authenticating...
??????ʹ?õĿͻ???????!
Authenticate FAIL!
xrgsu exit!
想必大家也出現過以上的結果吧,有可能是軟體版本與服務端不兼容或系統內核沒有編譯好的原因.之在這裡提出來是給大家一個參考.這種方法不行那我們就換一種方法.

2.換一個客服端軟體ruijieclient安裝

其功能:

  1. 支持靜態認證和3種DHCP認證
  2. 支持2種伺服器發現包
  3. 支持客戶端版本欺騙
  4. 支持偽造IP
  5. 支持智能重連
  6. 支持後台daemon駐留,可以加入Linux啟動腳本
  7. 支持伺服器消息讀取和轉碼

  8. 良好的embeded特性
  9. 支持2種文件配置和命令行傳參配置

所需軟體:ruijieclient-0.8.2.tar.bz2

下載地址:http://code.google.com/p/ruijieclient/downloads/list

下載后編譯安裝:

tar xvf ruijieclient-0.8.2.tar.bz2

cd ruijieclient-0.8.2

./configure && make && make install

注意:以上步驟不能出錯!

然後:

vim /etc/ruijie.conf

#加入一下內容
<?xml version="1.0" encoding="UTF-8"?>
<ruijie.conf version="0.7.9">
<!--This is a sample configuration file of RuijieClient, change it appropriately according to your settings.-->
<account>
<Name>輸入你的帳號</Name>
<Password>輸入你的密碼</Password>
</account>
<settings>
<!--Network Adapter Name-->
<NIC>eth0</NIC>
<!--0: Standard, 1: Private-->
<AuthenticationMode>0</AuthenticationMode>
<EchoInterval>25</EchoInterval>
<!--英特爾ligentReconnect: 0: Disable 英特爾ligentReconnect, 1: Enable 英特爾ligentReconnect -->
<英特爾ligentReconnect>1</英特爾ligentReconnect>
<!--AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient) -->
<AutoConnect>0</AutoConnect>
<!--Fake Version for cheating server-->
<FakeVersion>3.35</FakeVersion>
<!--Fake IP for cheating server-->
<FakeAddress></FakeAddress>
<!--DHCP mode 0: Disable, 1: Enable DHCP before authentication, 2: Enable DHCP after authentication 3: DHCP after DHCP authentication andre-authentication(You should use this if your net env is DHCP)-->


<DHCPmode>0</DHCPmode>
<!--Add if you don't want ruijieclient to ping the default gateway-->
<PingHost></PingHost>
</settings>
</ruijie.conf>
保存退出

3.參數解釋
Name= #用戶名
Password= #密碼
#This is settings
#Network Adapter Name 網卡設備名稱
NIC=eth0
#0: Standard, 1: Private 伺服器發現包類型 0 標準發現包 1 銳捷私有發現包
AuthenticationMode=1
#保活延時 單位秒
EchoInterval=25
#英特爾ligentReconnect: 0: Disable 英特爾ligentReconnect, 1: Enable 英特爾ligentReconnect
#智能重連
英特爾ligentReconnect=1
#AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient)
#自動連接
AutoConnect=0
#Fake Version for cheating server
#版本偽裝
FakeVersion=3.99
#Fake IP for cheating server
#IP地址偽裝
FakeAddress=
#DHCP mode 0: Disable, 1: Enable DHCP before authentication, 2: Enable DHCP after authentication 3: DHCP after DHCP authentication andre-authentication(You should use this if your net env is DHCP)
#DHCP認證模式 0 關閉 1 認證前DHCP 2 認證后DHCP
DHCPmode=0
#Add if you don't want ruijieclient to ping the default gateway
#自動重連使用的測試主機地址
PingHost=

4.啟動ruijieclient

第一次啟動還要輸入用戶名,密碼

以後啟動就不需要用戶名,和密碼了,驗證成功結果如下:

[root@localhost ~]# ruijieclient

>> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
@@ Password valid, SUCCESS:
## Server Message:


然後就可一通過firefox上網了,心動了吧,你也試一試吧!!!

5.另一些問題

a.有一些大學(如鄭大),伺服器端不支持客服端多網卡.解決方法一:自己可以上網搜一搜這個軟體UltraEdit-32及其使用在這裡不做介紹 法二:ifconfig ethx down 如果安裝虛擬機了還要ifconfig vmnet1 down ifconfig vmnet8 down 最好把lo 也down了

b.如果裝上後過兩三分鐘后又掉線了,且不能重連,解決方法:

crontab -e

#add

*/2 * * * * /usr/local/bin/ruijieclient

其意思:每隔兩分鐘連接一次


[火星人 ] redhat linux 中用銳捷客服端實現上網已經有744次圍觀

http://coctec.com/docs/linux/show-post-50549.html