forward ports automatic for users (PHP script)
Posted: Mon Jan 04, 2016 9:34 pm
Dear community,
I've edited the auth of my openvpn server to use a simple php script to check if the account exists. Now I want to forward ports to the users. For this I've edited database too, so each user has a port associated with the username.
I've searched openvpn forums and found this tutorial:
topic7823.html#p10663
What I don't get at the moment is the connection between a username and the port. How can I get something done using PHP? I just need some sample code, like how to retrieve the username at this moment using PHP. I'm not that good in batch to understand the function of this script.
-All the best;
I've edited the auth of my openvpn server to use a simple php script to check if the account exists. Now I want to forward ports to the users. For this I've edited database too, so each user has a port associated with the username.
I've searched openvpn forums and found this tutorial:
topic7823.html#p10663
What I don't get at the moment is the connection between a username and the port. How can I get something done using PHP? I just need some sample code, like how to retrieve the username at this moment using PHP. I'm not that good in batch to understand the function of this script.
-All the best;