Nyr / openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
MIT License
19.1k stars 4.9k forks source link

Chain 2 OpenVPN servers #983

Closed sahand12 closed 2 years ago

sahand12 commented 2 years ago

first, I must say I don't know if here is the right place or not to raise this issue, but I don't know any other way. so here we go: I live in a place where outside access is restricted and only a handful of data centers have heavily censored access to the outside world and normal users only have access to the local network. So I need to have 2 servers to enable my friends and family to use internet. One in a local data center and another one in the outside world. Is it possible for you to guide me how to do this, or at least push me in the right direction? I have the 2 servers in place, both running the OpenVPN using your script, but I don't know how I can forward all the traffic from the local server to the other server. thanks for everything you have done.

Iranian users ---> local OpenVPN server in a data center in Iran ---> OpenVPN server in Germany (for example) ---> outside world

Nyr commented 2 years ago

Is the domestic internet so filtered nowadays in Iran that you are unable to use V2Fly to connect directly to the outside? I understand this is not possible with OpenVPN traffic, but you should have better luck with V2Fly, which is a proper tool for the job.

An alternative to this would be to use my OpenVPN installer normally to set up your IR VPN server. You connect to your IR server over OpenVPN, and from the client use V2Fly to a server outside.

V2Fly also has the advantage of letting you do split routing for domestic traffic using lists like this.