Module for the WHMCS system. For manage Mikrotik secrets users as a product VPN.
Functions:
Admin area:
Client area:
Testing:
WHMCS: 8.1.3
Mikrotik: CHR 7.3.1
git clone https://github.com/PUQ-sp-z-o-o/PUQ_WHMCS-Mikrotik-VPN.git
Copy "puqMikrotikVPN" to "WHMCS_WEB_DIR/modules/servers/"
Create new server Mikrotik in WHMCS (System Settings->Products/Services->Servers)
Create a new Products/Services
Enabling HTTPS Create your own root CA on your router
/certificate
add name=LocalCA common-name=LocalCA key-usage=key-cert-sign,crl-sign
Sign the newly created CA certificate
/certificate
sign LocalCA
Create a new certificate for Webfig (non-root certificate)
/certificate
add name=Webfig common-name=XXX.XXX.XXX.XXX
Sign the newly created certificate for Webfig
/certificate
sign Webfig ca=LocalCA
Enable www-ssl and specify to use the newly created certificate for Webfig
/ip service
set www-ssl certificate=Webfig disabled=no
Enable api-ssl and specify to use the newly created certificate for Webfig
/ip service
set api-ssl certificate=Webfig disabled=no