Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /www/wwwroot/qq.wanuse.com/wp-includes/functions.php on line 6114

Notice: 函数 _load_textdomain_just_in_time 的调用方法不正确bravada 域的翻译加载触发过早。这通常表示插件或主题中的某些代码运行过早。翻译应在 init 操作或之后加载。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 6.7.0 版本添加的。) in /www/wwwroot/qq.wanuse.com/wp-includes/functions.php on line 6114
vps安装openwrt 快速配置 wireguard 服务连接 适合旁路由openwrt22.03 - DDD网络科技
使用互联网记录分享(Wide Area Network use :更好地使用互联网。)
vps安装openwrt 快速配置 wireguard 服务连接 适合旁路由openwrt22.03

vps安装openwrt 快速配置 wireguard 服务连接 适合旁路由openwrt22.03

vps安装openwrt 快速配置 wireguard 服务连接 适合旁路由openwrt22.03

YouTube:
bilibili:
GitHub:https://github.com/wandduse/openwrt_server
openwrt旁路由和VPS固件下载地址: https://d.wanuse.com/openwrt

vps安装openwrt命令

代码: 全选

bash -c "$(wget -O- https://d.wanuse.com/op)"

修改network网路配置
文件路径:etc/config/network

config interface '123'
option proto 'wireguard'
option private_key 'wPZ2RMlRCAR/nPDwGKEVX6laKASQzVHvISRkUnMHXXc='
option listen_port '18889'
list addresses '192.168.11.1/24' config wireguard_123
list allowed_ips '192.168.11.0/24'
option public_key 'KKP5NxpShE/nxEUcixCsbFsioPHOKy2gE1BZoz3qORk='

添加防火墙配置
文件路径:etc/config/firewall

config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
list network 'lan'
list network '123'
config nat
option target 'MASQUERADE'
list proto 'all'
option src 'lan'

电脑wireguard配置文件
AllowedIPs = 0.0.0.0/0 (做内网穿透 可用)
下面配置排除的ip段(192.168.0.0/16,172.16.0.0/12,10.0.0.0/8)

[Interface]
PrivateKey = 本地私钥
Address = 192.168.11.2/32
DNS = 8.8.8.8, 114.114.114.114
[Peer]
PublicKey = 对端公钥
AllowedIPs = 0.0.0.0/5,8.0.0.0/7,11.0.0.0/8,12.0.0.0/6,16.0.0.0/4,32.0.0.0/3,64.0.0.0/2,128.0.0.0/3,160.0.0.0/5,168.0.0.0/6,172.0.0.0/12,172.32.0.0/11,172.64.0.0/10,172.128.0.0/9,173.0.0.0/8,174.0.0.0/7,176.0.0.0/4,192.0.0.0/9,192.128.0.0/11,192.160.0.0/13,192.169.0.0/16,192.170.0.0/15,192.172.0.0/14,192.176.0.0/12,192.192.0.0/10,193.0.0.0/8,194.0.0.0/7,196.0.0.0/6,200.0.0.0/5,208.0.0.0/4,224.0.0.0/3
Endpoint = 对端地址:端口

在线生成wireguard排除的ip地址段:
https://www.procustodibus.com/blog/2021 … alculator/

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注