博文

目前显示的是标签为“wireguard排除ip”的博文

wireguard 分流 openwrt连接wireguard使用passwall插件的v2ray服务端实现wireguard分流模式

OpenWrt 連接 WireGuard 使用 passwall 插件的 V2Ray 伺服器端實現 WireGuard 分流模式 YouTube视频: https://youtu.be/DlisuFKSgWI WireGuard 分流需要的资料 wireguard配置信息 openwrt 有 wireguard插件 passwall插件 用于连接wireguard和配置v2ray服务 openwrt固件下载地址: https://www.wanuse.com/2023/07/openwrtvps.html 任意 v2ray客户端连接 本次使用v2rayN测试 https://cowtransfer.com/s/cc8ca4679d574a  点击链接查看 [ v2rayN-Core.zip ] wireguard配置模板 代码 config interface 'wg' option proto 'wireguard' option private_key 'Q6RVD2GuIxlSadasd3nS2WSssRLl2ivS3lnpj2u9c=' list addresses '172.0.0.3' list dns '1.1.1.1' option mtu '1420' config wireguard_wg option public_key 'bmXOC+F1F2xEhqed1afUtzH0JuVo51h2wPfgyo=' option endpoint_port '4500' list allowed_ips '0.0.0.0/0' option route_allowed_ips '1' option endpoint_host '162.159.193.3' option persistent_keepalive '25' wireguard 分流 openwrt连接wireguard使用passwall插件的v2ray服务端实现wireguard分流模式 00:00 视频影片开始 欢迎各位网友订阅我的频道 非常感谢。 02:00 打开open...

Python脚本WireGuard配置排除ip 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8局域网段 在线生成wireguard排除的ip地址段

  [Interface] PrivateKey = 本地私钥 Address = 172.0.0.2/32 DNS = 8.8.8.8, 114.114.114.114 [Peer] PublicKey = 对端公钥 #排除 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8 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 = 对端地址:端口 -------------------------------------------------------------------------- Python脚本 #!/usr/bin/python from ipaddress import ip_network start = '0.0.0.0/0' exclude = ['192.168.0.0/16','172.16.0.0/12','10.0.0.0/8'] result = [ip_network(start)] for x in exclude:     n = ip_network(x)     new = []     for y in result:         if y.overlaps(n):        ...