StreisandEffect / streisand

Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.
https://twitter.com/streisandvpn
Other
23.17k stars 1.99k forks source link

[ASK] Install on OpenVZ #821

Closed ghost closed 7 years ago

ghost commented 7 years ago

Sorry, not an issue, just curious is there any workaround for installing streisand on OpenVZ VPS? Thank you

chipitsine commented 7 years ago

OpenVZ does not allow creation of network interfaces (because it requires loading kernel modules) so, OpenVZ is not a proper solution for vpn gateway (even, you seem to have root rights)

I think, we should add a check "are we running inside OpenVZ container" and stop deploying with proper error message

ghost commented 7 years ago

I think, we should add a check "are we running inside OpenVZ container" and stop deploying with proper error message

Yeah I agree on this one. Or modular services that will install only vpn services that work with OpenVZ, like OpenVPN, ipsec, etc

chipitsine commented 7 years ago

OpenVPN requires "tap" (or "tun") kernel module.

ghost commented 7 years ago

Sure, many OpenVZ VPS provider have tun/tap enabled (or can be easily enabled in VPS control panel) :)

cpu commented 7 years ago

I think, we should add a check "are we running inside OpenVZ container" and stop deploying with proper error message

PR welcome!

Or modular services that will install only vpn services that work with OpenVZ, like OpenVPN, ipsec, etc

I think this is the best approach to a workaround for motivated users to deploy to OpenVZ. Please follow https://github.com/jlund/streisand/issues/746 for this work.

I'm going to close this issue since I think you have the information you were after. Thanks!