Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
jb-vpn.uk Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
OpenVPN:Integration
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This document describes how the OpenVPN server integrates with the reverse proxy system. == Integration Overview == The OpenVPN server is essential for the reverse proxy system: === '''Synology NAS connects''' via VPN (10.8.0.2) for DSM, Plex, and SSH === == '''Caddy reverse proxy''' forwards public hostnames to local VPS services or to 10.8.0.2 via VPN == == '''Services are accessible''' via HTTPS without exposing the NAS directly to the internet == == '''All traffic is encrypted''' through the VPN tunnel == == Network Flow == <pre> Internet β VPS (87.106.61.62) β Caddy β (local) MediaWiki / WebApp on 127.0.0.1 β (VPN) OpenVPN tun0 β 10.8.0.2 β DSM / Plex </pre> == How It Works == === Client accesses a public subdomain (e.g., <code>dsm.jb-vpn.uk</code> or <code>wiki.jb-vpn.uk</code>) === == DNS resolves to VPS public IP (87.106.61.62) == == Caddy receives the request on port 443 (HTTPS) and terminates TLS == == For VPS-hosted services (wiki, WebApp), Caddy proxies to <code>127.0.0.1</code> == == For Synology services (DSM, Plex), Caddy proxies through the OpenVPN tunnel to <code>10.8.0.2</code> == == The backend responds; Caddy returns the response to the client == == Benefits == * '''No Direct Exposure''': Synology NAS is not directly accessible from the internet * '''Encrypted Tunnel''': All traffic between VPS and NAS is encrypted via OpenVPN * '''Secure Access''': Services are accessible via HTTPS while remaining isolated * '''Centralized Management''': All services accessible through a single VPS == Requirements == For the integration to work: === '''OpenVPN server must be running''' on the VPS === == '''Synology NAS must be connected''' to the VPN (10.8.0.2) for DSM/Plex/SSH forwards == == '''VPN tunnel must be active''' (tun0 interface up) for Synology-backed hostnames == == '''Caddy must be configured''' in <code>/etc/caddy/Caddyfile</code> == == Verification == Check that the integration is working: <pre class="lang-bash"> === Check VPN is running === systemctl status openvpn == Check VPN interface == ip addr show tun0 == Check Synology is connected == ping -c 2 10.8.0.2 == Check wiki on VPS == curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8010/ == Check DSM on Synology (via VPN) == curl -k -sI -m 5 https://10.8.0.2:5001/ | head -1 </pre> == Related Documentation == * [System Overview](index.md) - Overall system architecture * [Server Configuration](server-configuration.md) - OpenVPN server setup * [Adding Services](index.md) - Configuring services [[Category:Documentation]] [[Category:Documentation/OpenVPN]]
Summary:
Please note that all contributions to jb-vpn.uk Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Jb-vpn.uk Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
OpenVPN:Integration
Add topic