Comments (10)
流量少一点(1.5倍流量)适合网络较好的脚本
from wireguardforgame.
用法:
wget https://github.com/lmc999/WireguardForGame/files/9996797/wg-for-game.zip
unzip wg-for-game.zip
chmod +x wg-for-game.sh
./wg-for-game.sh
from wireguardforgame.
yum install -y wget && wget https://raw.githubusercontent.com/lmc999/WireguardForGame/master/wg-for-game.sh && chmod +x wg-for-game.sh && ./wg-for-game.sh
chmod 600 /etc/wireguard/wg0.conf
from wireguardforgame.
修改/etc/wireguard/wg0.conf mtu为1200比较稳定。
from wireguardforgame.
启动wg0
wg-quick up wg0
#关闭wg0
wg-quick down wg0
from wireguardforgame.
winpcap,Tunsafe软件包下载链接
Uploading 20221109.zip…
from wireguardforgame.
from wireguardforgame.
服务端配置例子:
[Interface]
PrivateKey = 8Dp1EzZb1wQ/ZLvc3tLGFgTt15Reh7cXMJYYRVtSqlE=
Address = 10.100.0.1/24
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ListenPort = 1195
DNS = 8.8.8.8
MTU = 1200
[Peer]
PublicKey = rkMAQ3Il7DtA0ueJbUIMgjfowcsP4l+bE81TJPXASkU=
AllowedIPs = 10.100.0.2/32
[Peer]
PublicKey = 3DH7o/QlTMzr2n0ljkg+hgQzG69tBXL6j4VN+SE2eTM=
AllowedIPs = 10.100.0.3/32
from wireguardforgame.
客户端配置
[Interface]
PrivateKey = wInyYiytSq8DOsalJ+HYfEKccSby8h+QVbcLDI08BEQ=
Address = 10.100.0.2/24
PreUp = start D:\software\TunSafe\bat\start.bat
PreUp = ping -n 4 127.1 >nul
PostUp = start D:\software\TunSafe\bat\routes-up.bat
PostDown = start D:\software\TunSafe\bat\routes-down.bat
PostDown = start D:\software\TunSafe\bat\stop.bat
DNS = 8.8.8.8
MTU = 1200
[Peer]
PublicKey = DqWnFFxDJHnZTkoMJioTBxD6YG9ZBgtm6+/6tsp4tHU=
Endpoint = 127.0.0.1:2099
AllowedIPs = 0.0.0.0/0, ::0/0
PersistentKeepalive = 25
from wireguardforgame.
[21:49:26] Retrying handshake, attempt 2...
[21:49:32] Retrying handshake, attempt 3...
[21:49:38] Retrying handshake, attempt 4...
[21:49:43] Retrying handshake, attempt 5...
[21:49:48] Retrying handshake, attempt 6...
[21:49:53] Retrying handshake, attempt 7...
[21:49:59] Retrying handshake, attempt 8...
[21:50:05] Retrying handshake, attempt 9...
[21:50:10] Retrying handshake, attempt 10...
[21:50:15] Retrying handshake, attempt 11...
[21:50:21] Retrying handshake, attempt 12...
wireguard握手就不成功。。。估计被屏蔽的太厉害把,但愿是我设置不对。
from wireguardforgame.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireguardforgame.