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
System:Network Architecture
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 the network architecture of the jb-vpn.uk infrastructure. == Network topology == <pre> Internet β VPS (87.106.61.62) β Caddy (443) ββ 127.0.0.1 β Docker (WebApp, MediaWiki, phpMyAdmin) ββ OpenVPN (tun0) β NAS (10.8.0.2) β DSM, Plex, SSH </pre> == Network components == * '''VPS public IP''': <code>87.106.61.62</code> * '''VPN network''': <code>10.8.0.0/24</code> * '''VPN interface''': <code>tun0</code> (<code>10.8.0.1</code> on VPS) * '''NAS VPN IP''': <code>10.8.0.2</code> * '''Edge proxy''': Caddy (ports 80/443) * '''TLS''': Let's Encrypt (automatic via Caddy) == Traffic flow == # '''Client request''' β user opens a hostname (e.g. <code>wiki.jb-vpn.uk</code>) # '''DNS''' β record points to <code>87.106.61.62</code> # '''Caddy''' β receives HTTPS on port 443, terminates TLS # '''Routing''' β Caddy proxies to a local upstream or through <code>tun0</code> to <code>10.8.0.2</code> # '''Response''' β backend β Caddy β client Example (main wiki): <pre> Browser β wiki.jb-vpn.uk:443 β Caddy β 127.0.0.1:8010 (wiki-mediawiki) </pre> Example (DSM): <pre> Browser β dsm.jb-vpn.uk:443 β Caddy β https://10.8.0.2:5001 </pre> == Network diagram == <pre> βββββββββββββββ β Client β ββββββββ¬βββββββ β HTTPS (443) βΌ βββββββββββββββββββββββββββββββββββββββ β VPS (87.106.61.62) β β βββββββββββββββββββββββββββββββββ β β β Caddy (TLS + routing) β β β βββββββββββββ¬ββββββββββββββββββββ β β β β β ββββββββββ΄βββββββββ β β βΌ βΌ β β 127.0.0.1 tun0 β 10.8.0.2 β β Docker stacks NAS services β β - 8010/8011 Wiki - 5001 DSM β β - 8008/8009 App - 32400 Plex β β - 8080 phpMyAdmin β βββββββββββββββββββββββββββββββββββββββ </pre> == Ports == === Public (VPS) === {| class="wikitable" |- | Port || Purpose |- | 80 || HTTP β HTTPS redirect (Caddy) |- | 443 || HTTPS (Caddy) |- | 22 || SSH (VPS admin) |- | 1194/udp || OpenVPN server |- | 22222 || SSH forward to NAS (iptables) |} === Local (VPS <code>127.0.0.1</code>) === {| class="wikitable" |- | Port || Service |- | 8010 || Main MediaWiki |- | 8011 || Werbs MediaWiki |- | 3307 || Wiki MariaDB |- | 8008 || WebApp production |- | 8009 || WebApp beta |- | 8080 || phpMyAdmin |} === NAS (via VPN <code>10.8.0.2</code>) === {| class="wikitable" |- | Port || Service |- | 5001 || DSM (HTTPS) |- | 32400 || Plex |- | 22 || SSH |} == Related documentation == * [Components Components] β component details * [[Services:Current Services]] β hostname inventory * [[OpenVPN:Integration|OpenVPN Integration]] β VPN and proxy interaction [[Category:Documentation]] [[Category:Documentation/System]]
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
System:Network Architecture
Add topic