作者归档:我叫小台灯

Tunnelblick 更新mountain lion之后出现重复断开连接的解决办法

笔者在更新mountain lion之后,Tunnelblick出现了一些问题,具体表现为Tunnelblick刚连接成功之后几秒钟便断开,于是再次重复连接,笔者的情况是卡在了重复连接的过程中。搜索了一下,找到了解决办法,原文如下:

Reported by project member jkbull…@gmail.com, Mar 26, 2012

On OS X 10.8.1 or 10.8.2 (“Mountain Lion”) some configurations that use “Set nameserver” causes Tunnelblick to continuously disconnect and reconnect the configuration.

The disconnect/reconnect will appear in the log as something similar to:

2012-03-26 22:17:33 *Tunnelblick process-network-changes: SearchDomains changed from

*

*                     to

*                    <array> {

*                    0 : openvpn

*                    }

*                    pre-VPN was

*

To work around this problem while still using “Set nameserver”, you can do the following:

Click the “Advanced” button on the “Settings” tab for the configuration, then select the “While Connected” tab. Change the setting for “Search domain” in the right-hand column (the “When changes to anything else” column) from “Restart connection” to “Ignore”. That will ignore the changes to “Search domain”.

Anyone with a similar problem on Mountain Lion but not involving “SearchDomains”, please post the extract from the log that is similar to the above extract, including the name of the item that changed.

 

 

 

也就是当你查看你的连接日志,里面如果有:

*

*                     to

*                    <array> {

*                    0 : openvpn

*                    }

*                    pre-VPN was

*

这些字段的话,那么上述英文内容的解决方法就很可能适用你了,原文作者是用英文描述了整个过程,为了方便读者操作,笔者简单的将中文版的图文说明贴出来。

 

[flagallery gid=8 skin=green_style_pro_3_demo name=Gallery]

实战经验:通过刷有mentohust的DD-WRT来分享需要锐捷认证的校园网

前言: 众所周知,现在许多高校为了有效的管理校园网络以及防止私自分享学生自己的网络,许多都采用了锐捷认证的方法,也就是用锐捷这个软件,通过绑定mac地址和学号的方式,实现学生一机一号的上网方式。然而,随着信息时代的到来,越来越多的设备需要介入wifi网络,而且大多数同学会花相当一部分时间在宿舍呢,所以,没有免费的wifi接入可就不好受了,更糟糕的是,许多宿舍楼由于密集度很高,导致宿舍内的移动/联通信号非常差,即使用手机的2G/3G来上网也是慢如龟速。作为新一代宅男,怎么能受得了这等憋屈,于是通过潜心搜索和不断尝试,总算总结出了一套适合笔者所就读学校网络的方法,今天特地写一篇小文分享给大家,如有不足之处,望各位看官不吝赐教。

方法一: 通过下载网络分享软件(如connectify me),利用笔记本的无线网卡,在利用笔记本锐捷认证后分享自己的校园网。操作简单,也比较容易使用,但是有一个缺点:就是一直要保持电脑开着。

方法二: 也就是这次主要想阐述的方法,通过刷有mentohust的DD-WRT来分享需要锐捷认证的校园网。

必须物品:

  1. 一台可以刷入带有mentohust的DD-WRT的无线路由器。
  2. 有效的校园网帐号和密码
Q&A:

Q:什么是mentohust?

A:mentohust是由华中科技大学首先是在Linux系统下开发出来,而后扩展到支持Windows、Linux、Mac OS下的锐捷认证的程序(附带支持赛尔认证),目前兼容Windows、Linux和MacOS所有主流版本,完美代替锐捷认证。

Q:什么是DD-WRT

A:一种自制的路由器固件,功能强大且界面友好,但注意并不是所有的路由器都可以刷入DD-WRT。

Q:有什么路由器推荐吗?

A: 笔者用的是buffalo G300V2,价格100元左右,做工和性价比都不错,具体可以点这里

准备工具完成后,就要进入路由器的设置了

  1. 刷入带有mentohust的DD-WRT的固件
  2. 进入路由器设置页面,如下图所示。修改连接类型为”自动配置-DHCP”(DHCP针对学校是自动分配IP地址,如果是固定IP地址,则选择“固定IP”)
  3. 修改MAC地址为你的学号绑定的MAC地址,一般就是你的笔记本/台式机的以太网卡MAC地址,如下图。
      4.进入  服务-锐捷认证-点击启用,然后填上用户名、密码、DHCP方式等等(如果你是JNU的同学,只要按照截图的信息填上就可以了)。如下图

5.进入 管理-命令 然后保存下面的指令为启动指令

ifconfig eth0 down
ifconfig eth0 hw ether 这里填上你的网卡地址
ifconfig eth0 up
stopservice wan
startservice wan

然后保存下面的指令为防火墙指令

mentohust -u帐号 -p密码

6.一切就绪之后,重启路由器,插上网线,然后进入管理-命令页面 运行一下如下命令,试试能不能上网。

mentohust -u帐号 -p密码

如果提示mentohust已经运行,但是还不能上网,请运行如下指令。 mentohust -k 之后再次 运行

mentohust -u帐号 -p密码

如果还是不能上网,请检查MAC地址是否克隆正确,校园网帐号密码是否正确。

[音乐分享]Eternal Flame-Bangles

最近在看吸血鬼日记,第二季某一集里面Caroline给Matt唱了一首情歌,听着挺有感感觉,搜索了一下,是叫eternal flame。分享给大家

 

歌词:

Close your eyes, give me your hand, darling
Do you feel my heart beating
Do you understand
Do you feel the same
Am I only dreaming
Is this burning an eternal flame

I believe it’s meant to be, darling
I watch you when you are sleeping
You belong with me
Do you feel the same
Am I only dreaming
Or is this burning an eternal flame

Say my name sun shines through the rain
A whole life so lonely
And then you come and ease the pain
I don’t want to lose this feeling

[音乐分享]Hurts Like Heaven-Coldplay-320kbps mp3

很喜欢的一首音乐,节奏欢快明朗,尤其是歌词部分,写的很有诗意…有一句:and you use your heart as a weapon, and it hurts like heaven.  把妹必备。

点此下载

歌词:

[ti:hurts like heaven]
[al:mylo xyloto]
coldplay – hurts like heaven
written in graffiti on a bridge in a park
‘do you ever get the feeling
that you’re missing the mark?’
it’s so cold, it’s so cold
it’s so cold, it’s so cold
written up in marker on a factory sign
‘i struggle with the feeling
that my life isn’t mine’
it’s so cold, it’s so cold
it’s so cold, it’s so cold
see the arrow that they shot,
trying to tear us apart
fire from my belly and the beat from my heart
still i won’t let go
still i won’t let go
you
ooohooh
’cause you do
oh you, use your heart as a weapon
and it hurts like heaven
on every street, every car,
on every surface are names
and at the streets arise, i’ll be rather insane
don’t let them take control
no we won’t let take control
yes, i feel a little bit nervous,
yes, i feel nervous and i cannot relax,
how come they’re out to get us?
how come they’re out when they don’t know the facts?
so on concrete canvas under cover of dark
on concrete canvas, i’ll go making my mark
armed with a spray can soul
i’ll be armed with a spray can soul
you
ooohooh
oh, you
ooohooh
’cause you
you use your heart as a weapon
and it hurts like heaven
woho-ooh
woho-oooh
it’s true
when you
use your heart as a weapon
and it hurts like heaven
end

【320kpbs mp3 音乐分享】Every Teardrop Is A Waterfall-Coldplay

去年听的一首coldplay的歌曲,整体节奏感很好,歌词写的也很有感觉。

歌词:

i turn the music up,
i got my records on
i shut the world outside
until the lights come on
maybe the streets alight,
maybe the trees are gone
i feel my heart start beating
to my favorite song
and all the kids they dance,
all the kids all night
until monday morning feels another life
i turn the music up
i’m on a roll this time
and heaven is in sight
i turn the music up,
i got my records on
from underneath a rubble,
sing a rebel song
don’t want to see another generation drop
i’d rather be a comma
than a full stop
maybe i’m in the black,
maybe i’m on my knees
maybe i’m in the gap
between the two trapezes
but my heart is beating
and my pulses start
cathedrals in my heart
and we saw oh this light i swear you,
emerge blinking into
to tell me it’s alright
as we soar walls,
every siren is a symphony
and every tear’s a waterfall
is a waterfall, oh
is a waterfall, oh, oh, oh
is a waterfall
every tear is a waterfall
oh, oh, oh
so you can hurt, hurt me bad
but i’ll still raise the flag
it was a wa, wa, wa, wa, waterfall
a wa, wa, wa, wa, waterfall
every tear
every tear
every teardrop is a waterfall
every tear
every tear
every teardrop is a waterfall

 

音源下载:Every Teardrop Is a Waterfall – Cold Play