This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
要做你想做的事,你不需要使用 VPN...我想你的服务器有 openSSH。所以你可以做的是 SSH 隧道
在你的浏览器配置中,将“socks”设置为 localhost:1080
尝试继续 http: //whatsmyip.com 宾果,您服务器上的所有流量都将重定向到您的计算机
To do what you want you don't need to use a VPN... I suppose your server has openSSH. SO what you can do is a SSH tunnel
The in your broswer config, set the "socks" to localhost:1080
try to go on http://whatsmyip.com and bingo all the trafic on your server will be redireected to yours machine
CentOS 中需要进行一些更改:
首先,需要在 CentOS 服务器上启用转发:
将网关更改为 LAN 网关。在 OpenVPN 配置中输入:
和 DNS:
最后,对 VPN 网络使用 NAT/MASQUERADE(通过 eth0 输出到互联网)
There are some changes to do in CentOS:
First, forwarding needs to be active on the CentOS server:
Change the gateway to the LAN gateway. In OpenVPN configuration put:
And the DNS:
And finally, use NAT/MASQUERADE for the VPN network (output to Internet via eth0)