迷雾通各文件用途
-
geph4-client.exe
迷雾通核心命令行程序 -
gephgui-wry.exe
迷雾通的图形化用户界面 (Graphical user interface) -
MicrosoftEdgeWebview2Setup.exe
微软推出的一种新型浏览器控件,用于图形化界面 -
unins000.dat
软件的安装信息,用于卸载 -
unins000.exe
迷雾通的卸载程序 -
WinDivert.dll、WinDivert.lib、WinDivert32.sys、WinDivert64.sys
这四个文件用于在windows平台下,实现全局VPN功能 -
winproxy-stripped.exe
用于windows的代理设置
我们使用命令行操作时,只需要geph4-client.exe、WinDivert.dll、WinDivert.lib、WinDivert32.sys、WinDivert64.sys、winproxy-stripped.exe这6个文件
知道各文件用途后,我们来编写批处理脚本
在迷雾通根目录下新建一个文本文件,重命名为"代理模式.bat",然后右键选择编辑,将以下文本复制进去,根据自己的实际情况进行修改后保存,就可以运行了
每次查询服务器列表太麻烦,所以直接拷贝到批处理注释里面
geph4-client.exe connect --username "你的账号" --password "你的密码" --exit-server "2.waw.pl.ngexits.geph.io" --use-bridges --exclude-prc --force-protocol tls --socks5-listen 0.0.0.0:9909
--http-listen 0.0.0.0:9910
pause
::服务器列表,将双引号一并复制粘贴到--exit-server后面,实现地区的切换
::加拿大Free "1.mtl.ca.ngexits.geph.io"
::加拿大Free "2.mtl.ca.ngexits.geph.io"
::加拿大Free "3.mtl.ca.ngexits.geph.io"
::纽约Free "1.nyc.us.ngexits.geph.io"
::纽约Free "2.nyc.us.ngexits.geph.io"
::纽约Free "3.nyc.us.ngexits.geph.io"
::华沙Free "1.waw.pl.ngexits.geph.io"
::华沙Free "2.waw.pl.ngexits.geph.io"
::华沙Free "3.waw.pl.ngexits.geph.io"
::法国Free "2.par.fr.ngexits.geph.io"
::法国Free "3.par.fr.ngexits.geph.io"
::法国Free "4.par.fr.ngexits.geph.io"
::法国Free "5.par.fr.ngexits.geph.io"
::荷兰Free "1.ams.nl.ngexits.geph.io"
::荷兰Free "2.ams.nl.ngexits.geph.io"
::荷兰Free "3.ams.nl.ngexits.geph.io"
::荷兰Free "4.ams.nl.ngexits.geph.io"
::波特兰Free "1.pdx.us.ngexits.geph.io"
::波特兰Free "2.pdx.us.ngexits.geph.io"
::波特兰Free "3.pdx.us.ngexits.geph.io"
::波特兰Free "4.pdx.us.ngexits.geph.io"
::洛杉矶plus "1.sfo.us.ngexits.geph.io"
::新加坡plus "1.sgp.sg.ngexits.geph.io"
::瑞士plus "ch-zrh-01.exits.geph.io"
::台湾plus "1.rmq.tw.ngexits.geph.io"
::日本Plus "jp-tyo-01.exits.geph.io"
参数注解:
--username “填写你的用户名”
--password "填写你的密码"
--exit-server "填写服务器名称"
在迷雾通根目录下新建一个文本文件,重命名为"服务器列表.bat",然后右键选择编辑,将以下文本复制进去,根据自己的实际情况进行修改后保存
geph4-client sync --username "你的账号" --password "你的密码"
pause
这样就可以获得完整的服务器列表了,单击鼠标右键,全选,然后键盘Ctrl+C复制,粘贴到文本文件中,以备后续使用
这个页面可以查看迷雾通服务器的状态:
https://graphite.geph.io/public-dashboards/3941c01c0d7c4aba8848cc9658ff2f6c?orgId=0
一般挑选人数较少的服务器,付费会员选择plus服务器,可避免拥堵
--use-bridges
表示使用桥接,这个命令对于墙内用户无效,无论是否指定该命令,均会使用网桥连接
--exclude-prc
表示排除中国大陆流量,来自中国大陆的流量不走代理
--force-protocol
指定传输协议,可选择udp或tls
--socks5-listen 0.0.0.0:9909
设置socks5代理地址0.0.0.0,端口号9909
127.0.0.1表示本机ip地址,用于本机内app的代理
如果需要将翻墙流量共享给同一WIFI内其它电脑或手机使用,则需要允许来自任意局域网地址的访问
所以,用0.0.0.0表示
--http-listen 0.0.0.0:9910
同上,设置HTTP/HTTPS代理地址0.0.0.0,端口号9910
这样,运行以上脚本后,这台电脑就成为了一台翻墙服务器,同一路由器内其它电脑、平板或手机,只需要设置HTTP代理,指向这台电脑,就可以共享迷雾通流量了,且可以做到墙外流量走代理,墙内流量直连的效果
一键设置代理
使用代理模式时,每次手动设置地址和端口比较费时,可以通过以下脚本来实现
在迷雾通根目录下新建一个文本文件,重命名为"自动配置代理.bat",然后右键选择编辑,将以下文本复制进去,根据自己的实际情况进行修改后保存,就可以运行了
winproxy-stripped -proxy "http=127.0.0.1:9910;https=127.0.0.1:9910;socks=127.0.0.1:9909"
一键清除代理
在迷雾通根目录下新建一个文本文件,重命名为"自动清除代理.bat",然后右键选择编辑,将以下文本复制进去,根据自己的实际情况进行修改后保存,就可以运行了
winproxy-stripped -unproxy
启用VPN模式
我们已经熟悉了代理模式的使用,现在再来学习如何使用全局模式
在迷雾通根目录下新建一个文本文件,重命名为"全局模式.bat",然后右键选择编辑,将以下文本复制进去,根据自己的实际情况进行修改后保存
geph4-client.exe connect --username "你的账号" --password "你的密码" --exit-server "2.waw.pl.ngexits.geph.io" --use-bridges --vpn-mode windivert
pause
::服务器列表,将双引号一并复制粘贴到--exit-server后面,实现地区的切换
::加拿大Free "1.mtl.ca.ngexits.geph.io"
::加拿大Free "2.mtl.ca.ngexits.geph.io"
::加拿大Free "3.mtl.ca.ngexits.geph.io"
::纽约Free "1.nyc.us.ngexits.geph.io"
::纽约Free "2.nyc.us.ngexits.geph.io"
::纽约Free "3.nyc.us.ngexits.geph.io"
::华沙Free "1.waw.pl.ngexits.geph.io"
::华沙Free "2.waw.pl.ngexits.geph.io"
::华沙Free "3.waw.pl.ngexits.geph.io"
::法国Free "2.par.fr.ngexits.geph.io"
::法国Free "3.par.fr.ngexits.geph.io"
::法国Free "4.par.fr.ngexits.geph.io"
::法国Free "5.par.fr.ngexits.geph.io"
::荷兰Free "1.ams.nl.ngexits.geph.io"
::荷兰Free "2.ams.nl.ngexits.geph.io"
::荷兰Free "3.ams.nl.ngexits.geph.io"
::荷兰Free "4.ams.nl.ngexits.geph.io"
::波特兰Free "1.pdx.us.ngexits.geph.io"
::波特兰Free "2.pdx.us.ngexits.geph.io"
::波特兰Free "3.pdx.us.ngexits.geph.io"
::波特兰Free "4.pdx.us.ngexits.geph.io"
::洛杉矶plus "1.sfo.us.ngexits.geph.io"
::新加坡plus "1.sgp.sg.ngexits.geph.io"
::瑞士plus "ch-zrh-01.exits.geph.io"
::台湾plus "1.rmq.tw.ngexits.geph.io"
::日本Plus "jp-tyo-01.exits.geph.io"
windows下的迷雾通是通过windivert来实现VPN模式的,而不需要像某些VPN那样创建虚拟网卡
WinDivert是一种用户模式的数据包捕获和转移包,可用于windows vista、windows 2008、windows 7、windows 8 和 windows 10。WinDivert允许用户模式应用程序捕获、修改、丢弃从windows网络堆栈发送的网络数据包,而无需编写内核模式代码
注意:使用VPN模式时,需要赋予geph4-client.exe管理员权限!!!
对着geph4-client.exe右键属性,兼容性,勾选“以管理员身份运行”
如果你是Administrator用户,则可以忽略这一步
查看帮助信息,以了解更详细的使用方法
在迷雾通根目录下新建一个文本文件,重命名为"帮助信息.bat",然后右键选择编辑,将以下文本复制进去保存
geph4-client connect -h
pause
实现开机自动运行功能
上面,我们通过命令行实现了迷雾通所有的图形化功能,我们最后实现一个GUI无法实现的功能:开机自动运行
1.如果你想开机自动运行代理模式,就对着“代理模式.bat”单击右键,创建快捷方式
如果你想开机自动运行全局模式,就对着“全局模式.bat”单击右键,创建快捷方式
2.按下windows+R 输入:shell:startup,回车
将刚才创建的快捷方式复制到这里,如果想取消开机自动运行,删除快捷方式即可
附bat文件,解压后,拷贝到迷雾通安装文件根目录即可
geph4.zip (3.3 KB)
Linux和macOS操作系统用法参见:https://community.geph.io/t/topic/1694