1

I’m running a server on my LAN. It’s setup as a Webserver that’s only listening to local connections and a WireGuard VPN server. When I’m not at home, I establish a connection to the vpn.

The webserver is using http only. I’ve set up an nftables rule that masquerades requests from my vpn ip to my webserver in order to access those pages.

WireGuard is left with default settings, so it just establishes a connection between server and client.

Since I’m entering sensitive information on these websites, I’m wondering if the connection is encrypted through the vpn tunnel or if https is necessary to be on the safe side.

My LAN is trustworthy. VPN server and webserver are running on the same machine.

closed as unclear what you're asking by schroeder Jul 19 at 11:46

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    You are not serving local HTTP over VPN, according to the details you provide. Can you clarify this point? – schroeder Jul 19 at 10:25
  • Can you explain "I do not route all traffic through that VPN, only DNS requests." – schroeder Jul 19 at 11:43
  • I'm beginning to think that the answer is: it depends on how you set it up. All we are doing is asking for details on how you set it up. Please provide the full details. – schroeder Jul 19 at 11:45
  • Again, this line "The vpn is not set to route all traffic through the tunnel." is the crucial one that you need to explain. What is sent through the tunnel? – schroeder Jul 19 at 13:14
2

You question isn't very clear. You wrote:

I'm connecting to that server via VPN (wireguard).

And after:

I do not route all traffic through that VPN, only DNS requests.

So, if the HTTP stream between your client and your server isn't routed throught VPN, then the connection isn't encrypted.

At contrary, if you route the traffic to your HTTP server throught the VPN, then it's encrypted.

Nevertheless, keep in mind that traffic between your VPN gateway and your HTTP server will remain clear.

  • 1
    That’s my question. When I connect to a Webserver that’s only accessible through that VPN, is that connection encrypted by the vpn? The Webserver that’s hosting the websites is also the VPN gateway – Unkn0wn Jul 19 at 11:34
  • 1
    @Unkn0wn accessed through VPN == encrypted by the VPN if the VPN encrypts its traffic. – Andrew Morozko Jul 19 at 11:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.