
战士
不好好学习,玩你妹的游戏
- 精华
- 0
- 帖子
- 874
- 威望
- 0 点
- 积分
- 988 点
- 种子
- 7 点
- 注册时间
- 2015-7-11
- 最后登录
- 2022-12-30
|
本帖最后由 悦哥 于 2015-7-30 13:48 编辑
该文章介绍如何通过***使路由器***联机网战的同时,又能直接使用国内adsl线路满速下载游戏和补丁
(PC访问国内网站使用国内ADSL,访问墙外智能使用***)
前提概要
你要有一台PS4 一台可刷openwrt的路由器 一个pptp的V.P.N账号
开始操作
路由器刷机这里就直接跳过了...
配置PPPOE拨号也直接跳了,
1:
下载https://github.com/hackgfw/openw ... p日n_0.2_all.ipk
删除连接中的日字,因为有屏蔽
上传gfw-***_0.2_all.ipk 到路由器 并使用 opkg install 命令安装它
如果显示ERROR ,请先在使用 opkg install 命令前执行一遍 opkg update 命令
在路由器LUCI界面中的 网络 - 接口 - 添加新接口 添加一个名为wall的pptp接口 并设置好你的***地址 账号 密码 mtu等 ,并关闭掉高级设置里的 使用默认网关选项 防火墙设置为wan 并保存应用.
如果你的路由器没有安装luci界面可直接使用ssh登录路由器添***.P.N连接,代码如下:
在 /etc/config/network 中添***.P.N连接
config interface 'wall'
option proto 'pptp'
option server 'server.example.com'
option username 'username'
option password 'password'
option defaultroute '0' #不设置默认网关
option auto '1' #设置开机启动
option mtu '1400'
替换上面的 server,username,password 为***服务器地址、用户名及密码,另外注意上面defaultroute设为0
在 /etc/config/firewall 防火墙的wan区域中加入V.P.N接口,找到类似
config zone
option name wan
list network 'wan'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
在 list network 'wan'下方添加一行list network 'wall'
改完后应该是这样:
config zone
option name wan
list network 'wan'
list network 'wall'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
2:
使用ssh登录路由器(我用的是putty)
输入vi /etc/config/gfw-v日p日n (删除左边的日字) 将里面的内容替换如下
下方显示v日p日n都需自己删除日字
config 'gfw-v日p日n' 'general'
option 'enabled' '1'
# http
config 'rule'
# interface of v日p日n
option 'interface' 'wall'
option 'proto' 'tcp'
option 'port' '80'
# https
config 'rule'
option 'interface' 'wall'
option 'proto' 'tcp'
option 'port' '443'
# *** streaming
config 'rule'
option 'interface' 'wall'
option 'proto' 'tcp'
option 'port' '1935'
# dns
config 'rule'
option 'interface' 'wall'
option 'proto' 'udp'
option 'port' '53'
# PS4 START
config 'rule'
option 'interface' 'wall'
option 'proto' 'tcp'
option 'port' '3478'
config 'rule'
option 'interface' 'wall'
option 'proto' 'udp'
option 'port' '3478'
config 'rule'
option 'interface' 'wall'
option 'proto' 'tcp'
option 'port' '3479'
config 'rule'
option 'interface' 'wall'
option 'proto' 'udp'
option 'port' '3479'
config 'rule'
option 'interface' 'wall'
option 'proto' 'tcp'
option 'port' '3480'
config 'rule'
option 'interface' 'wall'
option 'proto' 'udp'
option 'port' '61457'
#PS4 END
#如果你发现某些你需要的协议和端口没有使用***线路,可参照上面的格式自己添加
PS:不要添加你的P2P和BT端口,否则会影响你的下载速度
修改完毕后保存.
3:
最后在参照论坛dnsmasq的帖子添加你访问最快的IP 重启路由器即可
连接:https://bbs.a9vg.com/thread-4549081-1-1.html
最后放一张成功的效果图:
完成了以上步骤你会发现PS4下载依然走国内CDN速度最快的线路,联机或PS4测速时使用的V.P.N线路 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|