因为现在运营商都拿不到公网了,导致PT上传少的可怜,用有服务器的公网转发。 前置条件是:[使用RouterOS建立PPP虚拟线路进行内网穿透替代FRP][1] 首先在RouterOS上将访问PT站点的链接通过路由标记从虚拟线路出去。 ``` /ip/firewall/address-list/add list=pt_list address=pt.example.com /ip/firewall/mangle/add action=mark-routing chain=prerouting \ comment="tracker forward proxy" connection-type="" \ disabled=yes dst-address-list=pt_list \ new-routing-mark=wg-out-cloud-route passthrough=no \ protocol=tcp src-address=192.168.88.5 ``` 接着在远程服务器上开启地址伪装,这样回程路由才能正常。 ``` iptables -t nat -A POSTROUTING --source 192.168.88.5 --destination pt.example.com -j MASQUERADE ``` [1]: https://www.simaek.com/archives/316/ Loading... 因为现在运营商都拿不到公网了,导致PT上传少的可怜,用有服务器的公网转发。 前置条件是:[使用RouterOS建立PPP虚拟线路进行内网穿透替代FRP][1] 首先在RouterOS上将访问PT站点的链接通过路由标记从虚拟线路出去。 ``` /ip/firewall/address-list/add list=pt_list address=pt.example.com /ip/firewall/mangle/add action=mark-routing chain=prerouting \ comment="tracker forward proxy" connection-type="" \ disabled=yes dst-address-list=pt_list \ new-routing-mark=wg-out-cloud-route passthrough=no \ protocol=tcp src-address=192.168.88.5 ``` 接着在远程服务器上开启地址伪装,这样回程路由才能正常。 ``` iptables -t nat -A POSTROUTING --source 192.168.88.5 --destination pt.example.com -j MASQUERADE ``` [1]: https://www.simaek.com/archives/316/ 最后修改:2024 年 11 月 22 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 3 如果觉得我的文章对你有用,请随意赞赏