{% extends "base.html" %} {% block title %}My VPN Profile - Enterprise VPN Hub{% endblock %} {% block content %}

Welcome, {{ user['username'] }}

Here are your personal credentials and instructions to connect your devices to the Enterprise VPN Service.

Account Status: Active
Main Corporate Network: {{ main_subnet }}
Internet Access Mode: {% if internet_mode == 'vpn_server' %}Through VPN Server {% elif internet_mode == 'main_network' %}Through Headquarters Gateway {% else %}Split-Tunnel (Company Internal Only) {% endif %}
{% if user['allowed_wireguard'] == 1 %}
⚡

WireGuard VPN Connection

Fastest modern protocol with state-of-the-art cryptography

⬇️ Download {{ user['username'] }}-wireguard.conf

Connection Parameters:

Assigned Client IP: {{ user['wg_ip'] }}/24
Server Endpoint: {{ server_host }}:{{ wg_port }}
Protocol: UDP (WireGuard)

Setup Instructions:

📱 Mobile (iOS / Android):

1. Install the free WireGuard app from App Store or Google Play.

2. Tap (+) → Create from QR code.

3. Scan the QR code on the right and connect!

💻 Desktop (Windows / macOS / Linux):

1. Download the WireGuard client from wireguard.com.

2. Click Download .conf above.

3. Import the file into WireGuard and click Activate.

Scan QR Code (Mobile App):

{% if wg_qr_svg %}
{{ wg_qr_svg|safe }}
{% else %}

QR Code not available.

{% endif %}

Open WireGuard mobile app → Scan QR code

View Raw WireGuard Configuration Text
{{ wg_conf_text }}
{% else %}
⚡

WireGuard Protocol

Access not granted by administrator for your account.

Not Permitted
{% endif %} {% if user['allowed_openvpn'] == 1 %}
🔑

OpenVPN Connection

Industry-standard enterprise SSL/TLS VPN with inline certificates

⬇️ Download {{ user['username'] }}-openvpn.ovpn

Connection Parameters:

Assigned Client IP: {{ user['ovpn_ip'] }}/24
Server Endpoint: {{ server_host }}:{{ ovpn_port }}
Security: AES-256-GCM + TLS-Auth

Setup Instructions:

📱 Mobile & Desktop (OpenVPN Connect):

1. Download OpenVPN Connect app for Windows, macOS, Android, or iOS.

2. Click Download .ovpn above to save your profile.

3. Import the .ovpn profile into OpenVPN Connect and tap Connect.

🐧 Linux Terminal:

sudo openvpn --config {{ user['username'] }}-openvpn.ovpn

View Raw OpenVPN Profile Text
{{ ovpn_conf_text }}
{% else %}
🔑

OpenVPN Protocol

Access not granted by administrator for your account.

Not Permitted
{% endif %} {% endblock %}