lantern icon indicating copy to clipboard operation
lantern copied to clipboard

如何在局域网中共享LANTERN来翻墙?

Open luckypoem opened this issue 11 years ago • 67 comments

这里的局域网是指无线局域网,我想让我的智能手机利用电脑上的LANTERN来翻墙。我搞了一下,未成功。项目作者可否写篇WIKI文章,详细说明一下? 非常感谢! PS:我在电脑上利用LANTERN来翻墙,没任何问题。

luckypoem avatar Aug 13 '15 16:08 luckypoem

最好说英文

XhstormR avatar Aug 13 '15 23:08 XhstormR

@luckypoem Your method is useful but somewhat limited because it requires computer to keep running. We are working on Lantern mobile which is a general circumvention tool on Android (iOS later), please stay tuned.

fffw avatar Aug 14 '15 01:08 fffw

@fffw,actually I didn't succeed at all in this way.to keep the pc running is no problem for me,bcoz my mobile phone is in wireless lan.so can u write a wiki page explaining how to use lantern on pc for mobile phone to cross the gfw?

luckypoem avatar Aug 14 '15 12:08 luckypoem

@luckypoem 我在局域网共享成功了,先运行lantern,用win+r运行%AppData%Lantern来找到.yaml的配置文件,用记事本打开,查找127.0.0.1(一共两处)修改第一处的为0.0.0.0。保存后,退出lantern。然后再重新运行lantern。现在局域网共享成功了。手机,平板或其他pc都可以通过配置来上网了! 具体配置方法:就是将手机连接同一局域网中的Wi-Fi,将代理设置改为手动,服务器地址改为你运行lantern的电脑的IP地址,端口为8787。done!!!,

enjoy!!!

daerdai avatar Aug 21 '15 05:08 daerdai

@daerdai 非常感谢~

EchoChan314 avatar Aug 21 '15 06:08 EchoChan314

@czmecho 不客气,好东西大家一起分享!有问题希望大家一起探讨解决

daerdai avatar Aug 21 '15 06:08 daerdai

hi. 我用win+r运行%AppData%Lantern出错,应为%AppData%\Lantern,不过打开了这个目录,我的为 C:\Users\Administrator\AppData\Roaming\Lantern,未找到扩展名为.yaml的配置文件,怎么回事? 它是隐藏的文件? 谢谢。

luckypoem avatar Aug 24 '15 11:08 luckypoem

@daerdai 这是吧这台PC当作http 代理服务器来使用吧,我看到有lantern deb包 我想如果用Raspberry运行lantern 并且按照你的办法将其作为代理服务器使用或许也可以,而且不会改变原有网络结构。不过树莓派本身没有网口,不知道能不能移植到openwrt上面跑呢

yasteora avatar Aug 24 '15 14:08 yasteora

@luckypoem不好意思,写的时候没注意,少了\。关于你的问题,我还没遇到,你打开的文件夹里有哪些文件呢?

daerdai avatar Aug 25 '15 12:08 daerdai

@yasteora Hi,感谢你的提问,不过你说的方法,我还没尝试过,你可以自己尝试一下,如果可以的话,将教程与经验分享到这里来,让大家学习学习!谢谢!

daerdai avatar Aug 25 '15 12:08 daerdai

I'm using OS X, and I couldn't find that yaml file. Anyone knows the location of that config file? Thanks. I'm using lantern 2.0.

dac6acc4f avatar Aug 27 '15 10:08 dac6acc4f

~/Library/Application Support/Lantern/lantern-2.0.1.yaml

myleshorton avatar Aug 27 '15 18:08 myleshorton

@daerdai thank you so much !!!

Norra123 avatar Aug 28 '15 01:08 Norra123

@daerdai 如果设置为代理服务器似乎 把 配置文件里的 addr 哪项 “127.0.0.1”改为“0.0.0.0 ”似乎是不行的,似乎设置为本机局域网IP地址 才可行。

yasteora avatar Aug 28 '15 11:08 yasteora

@daerdai ,终于知道什么原因了,原来我用的是较老的1.5.7版,根本没有YAML文件。卸载后,安装最新版,就有YAML文件了,刚装好后,我看到的YAML文件为lantern-2.0.0-beta8.yaml,第二天后,发现多出现了一个lantern-2.0.1.yaml文件,这个文件也需要修改。

luckypoem avatar Aug 29 '15 11:08 luckypoem

@luckypoem 不用,只用改最新的那个就可以了

ZJsnowman avatar Oct 07 '15 02:10 ZJsnowman

nice, very good!!!

zruibin avatar Dec 16 '15 08:12 zruibin

@daerdai but every time I reopened the YAML file, I would find the ip changed to 127.0.0.1 again....

AnimaSting avatar Dec 18 '15 08:12 AnimaSting

windows下已經清楚了.請問在linux下怎麼處理呢, 似乎沒有這樣的文件. 假設機器是 linux使用的是Ubuntu.

The issue has been solved in windows. But I can NOT find the file "lantern-2.0.0-beta8.yaml" in my Ubuntu Box. Any Help?

moonwater avatar Dec 26 '15 19:12 moonwater

@moonwater It's under ~/.lantern

fffw avatar Dec 28 '15 03:12 fffw