-
背景跟随 透明代理(TPROXY)的Guide,我配置了透明代理,使WIFI和局域网接入的设备自动规则进行留学功能,额外配置了dns分流。但是如果在外面使用4g的时候,想使用wireguard接入回去家里网络,实现相同的效果。 根据透明代理的Guide,当前的局域网nftables是
而wireguard的nftables是
按照想法,wireguard分配client的ip是10.10.1.1,而10.10.0.0/23会打标记 请教如何配置nftables,或有更好的方案建议。谢谢 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
我在外面时候,手机使用wireguard网络,配合fakedns就可以使用。 |
Beta Was this translation helpful? Give feedback.
-
Updated: 2023-01-18 临时解决方案,路由接v2fly,v2fly转发到wireguard就可以了。routing加端口规则,由dokodemo-door出 nftables只需要masquerade 的规则就好了。 |
Beta Was this translation helpful? Give feedback.
Updated: 2023-01-18
此问题我已经自行解决了。有需要的参见V2Ray与Wireguard的nftables共存实验
临时解决方案,路由接v2fly,v2fly转发到wireguard就可以了。routing加端口规则,由dokodemo-door出
nftables只需要masquerade 的规则就好了。