I have a VPS server with Openvpn installed and I rent VPN accounts (.ovpn files) monthly.

I use this script : https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh for management.

When someone asks for an account I have to :

  • Collect the money
  • Run the script
  • Download .ovpn file
  • Send to the user

And next month I have to check and collect again, if user doesn’t answer or doesn’t pay I have to run the script again and delete the account.

I need to automatize this process and I was thinking about using woocommerce to achieve it, but I have no real idea about where to start.

I think the easiest way is to find some kind of digital products plugin, and configure to auto-run the script each time a user buys an account, but then I need to deactivate, so I think I will be needing a subscriptions plugin to control this.

The only thing I found is this old topic : https://forums.openvpn.net/viewtopic.php?t=13051 but I didnt get it at all.

Any kind of advice or start point is appreaciated, it can be any kind of e-commerce platform btw.


Read more here: Openvpn accounts as digital product


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: