如何在局域网中共享LANTERN来翻墙?
这里的局域网是指无线局域网,我想让我的智能手机利用电脑上的LANTERN来翻墙。我搞了一下,未成功。项目作者可否写篇WIKI文章,详细说明一下? 非常感谢! PS:我在电脑上利用LANTERN来翻墙,没任何问题。
最好说英文
@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,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 我在局域网共享成功了,先运行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 非常感谢~
@czmecho 不客气,好东西大家一起分享!有问题希望大家一起探讨解决
hi. 我用win+r运行%AppData%Lantern出错,应为%AppData%\Lantern,不过打开了这个目录,我的为 C:\Users\Administrator\AppData\Roaming\Lantern,未找到扩展名为.yaml的配置文件,怎么回事? 它是隐藏的文件? 谢谢。
@daerdai 这是吧这台PC当作http 代理服务器来使用吧,我看到有lantern deb包 我想如果用Raspberry运行lantern 并且按照你的办法将其作为代理服务器使用或许也可以,而且不会改变原有网络结构。不过树莓派本身没有网口,不知道能不能移植到openwrt上面跑呢
@luckypoem不好意思,写的时候没注意,少了\。关于你的问题,我还没遇到,你打开的文件夹里有哪些文件呢?
@yasteora Hi,感谢你的提问,不过你说的方法,我还没尝试过,你可以自己尝试一下,如果可以的话,将教程与经验分享到这里来,让大家学习学习!谢谢!
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.
~/Library/Application Support/Lantern/lantern-2.0.1.yaml
@daerdai thank you so much !!!
@daerdai 如果设置为代理服务器似乎 把 配置文件里的 addr 哪项 “127.0.0.1”改为“0.0.0.0 ”似乎是不行的,似乎设置为本机局域网IP地址 才可行。
@daerdai ,终于知道什么原因了,原来我用的是较老的1.5.7版,根本没有YAML文件。卸载后,安装最新版,就有YAML文件了,刚装好后,我看到的YAML文件为lantern-2.0.0-beta8.yaml,第二天后,发现多出现了一个lantern-2.0.1.yaml文件,这个文件也需要修改。
@luckypoem 不用,只用改最新的那个就可以了
nice, very good!!!
@daerdai but every time I reopened the YAML file, I would find the ip changed to 127.0.0.1 again....
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 It's under ~/.lantern