Linux (ubuntu) 數據進出站 #3664
Replies: 1 comment
-
Caution 無法實現 關閉此 comment |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note
問題描述
我在第三方提供商買了一個家庭網絡的OPENVPN,因OPENVPN內地已不適用,所以我在伺服器上面安裝了OPENVPN客戶端
連接完成之後會出現一個tun0的虛擬網卡.但是完成連接之後無法ping通伺服器,且部署的Xray以及nignx皆無法正常通信
我想要的預期效果是 internet (xray) => eth0 (public 8.8.8.8:23333) => tun0 (private 10.0.8.10:23333) => internet (xray)
使用xray時的IPV4將會變成為tun0 openvpn伺服器的IP 即下列openvpn檔中的IP ,而非原本的伺服器的IP
請問如何實現該效果?
xray的配置上沒有問題的,如果需要的話請在下列說明,只是在listen的地址變更為10.0.8.10
Caution
使用過的方法(皆無效)
1.設置路由規則
完成後 SSH / Xray / nignx皆無法正常通信
2.gost 本地轉發
Note
這是openvpn的配置檔
Beta Was this translation helpful? Give feedback.
All reactions