System config
Configuring Web Interface Redirection on PUQVPNCP Panel for Increased Security
Order now | Download | FAQ
If you want to hide the web interface of the PUQVPNCP panel for security reasons, you have the option to configure the redirection of the web interface to another address.
To make this work, you need to enable the AllowedWebIP option in the configuration file /etc/puqvpncp/puqvpncp.conf by filling in the IP address from which you will have access. Then restart the PUQVPNCP service with the command: "service puqvpncp restart".
nano /etc/puqvpncp/puqvpncp.conf
AllowedWebIP=xxx.xxx.xxx.xxx
Restart the PUQVPNCP service
service puqvpncp restart
After this, you need to log in to the web interface of the PUQVPNCP panel, go to the "Settings" tab, select "System config", and in the "Security" section, enter the URL to which all requests, except those originating from the IP address specified in AllowedWebIP, will be redirected.
In the same section, you can configure the robots.txt file as per your own discretion. By default, it is configured to ignore indexing by search engines.
puqvpncp.conf
Order now | Download | FAQ
Below is the configuration file of the PUQVPNCP panel
The configuration file is /etc/puqvpncp/puqvpncp.conf
The configuration file is created automatically when the panel is launched for the first time.
If you need to recreate the config file with default options then delete the old config file and reload PUQVPNCP
# The port on which the WWW server will be set up. (Default: 8098)
WebPort=8098
# The IPv4 or IPv6 on which the WWW server will be set up. (Default: "0.0.0.0")
WebIP=77.87.125.200
# The IPv4 or IPv6 address from which you can login to the web console.
# Supports multiple IPs delimited by comma. (Default: 0.0.0.0)
AllowedWebIP=77.87.125.4,5.173.33.221
# Directory for log files (Default: /var/log/puqvpncp/)
LogDir=/var/log/puqvpncp/
# Directory for data files (Default: /usr/local/puqvpncp/)
DataDir=/usr/local/puqvpncp/
# SSL certificate support Let's Encrypt yes/no (Default: no)
# If this option is enabled, then the panel is accessible on the standard port 443.
# The port in the non-ssl protocol is not serviced
LetsEncrypSSL=yes
# Domain for SSL certificate generation
# Be sure to check that the domain resolves the IP address of this server
Domain=dev.puqvpncp.com
# Remove tabs in the Wireguard client configuration.
# Sometimes necessary to support non-official Wireguard clients.
DeleteTabsFromConfig=no