• 1 Post
  • 101 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle
  • I had the same setup and the same problems with VPN (in my case Wireguard) server availability. While looking for a solution I realized I was trying to solve an architecture problem with software.

    Instead of trying to find a software solution to work around my WG server uptime issues, I moved the Wireguard endpoint to an OpenWRT router. Now if my router is up, my WG endpoint is up and my network is accessible. I’ve been running this configuration for years and it has been 100% accessible.

    I’m comfortable with the security of WG - open ports for WG endpoints are invisible to network scanners because they do not respond at all and appear closed unless they are sent the the correct key. Even if an attacker has some way of know a WG peer is listening on a specific port, cracking a 256-bit key would take trillions of years. I was then free to choose a remote access application without worrying about remote attackers gaining access to my servers because of some company’s failed security.

    FOSS VNC server apps work OK, but I found them somewhat limited so I added NoMachine as my primary option and run both. It’s a commercial app but it’s free, and is one of the only closed source app I use. It can be run 100% locally (although they have a paid option that uses their servers). It allows full control over your servers including file transfer and audio.

    Doesn’t check all your boxes, but it comes close.



  • I did this using a router to handle traffic for about a year between sites 240 miles apart. The only downside was it used a lot of bandwidth. Maybe it can be done with some IP cameras, but I expect they’d be expensive commercial models. OpenWRT compatible routers can be dirt cheap.

    If your MIL’s router supports OpenWRT or you can replace it with one that does, you can use a VPN and PBR (Policy Based Routing) to your home router or server and do exactly what you want with any camera that supports RSTP (Real Time Streaming Protocol). That includes most cheap wired TP-Link cameras and plenty of others. PBR on the router at your MIL’s home would be used to route all traffic from camera IP addresses to your server.

    I used Frigate software and Home Assistant for occupancy detection/alerts and Wireguard for transport. It worked perfectly but I eventually got around to adding 2nd server.













  • An excerpt from the Wireguard Whitepaper:

    One design goal of WireGuard is to avoid storing any state prior to authentication and to not send any responses to unauthenticated packets. With no state stored for unauthenticated packets, and with no response generated, WireGuard is invisible to illegitimate peers and network scanners. Several classes of attacks are avoided by not allowing unauthenticated packets to influence any state.

    After opening an SSH port and watching the number of attacks I understand the concern about opening any port on a router, but it seems the worry about opening a port for WG is way overblown.

    As of now I can find zero reports of a properly configured open WG port ever being successfully used by attackers to access a network.

    Anyone have better/more recent info?




  • spaghettiwestern@sh.itjust.workstoSelfhosted@lemmy.world•VPN Tradeoffs
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 months ago

    I’m like you and did not want any kind of corporate entity involved in my network if it could be avoided. I settled on Wireguard and rather than deal with management constantly I set up 3 times as many peer configurations as initially needed. When a new device is added I just copy a spare configuration to the device and change the name of the config on the server. Tasker is used to connect the WG tunnel on our phones whenever home wifi is not connected. The open port on the router looks closed to the outside and only responds when the correct key is received so there’s no known way to breach the network.

    Everything from my phone is run through WG and it only uses a tiny amount of additional mobile data. Syncthing adds nothing of consequence except when syncing big files. Battery life is fine even with both WG and Syncthing running.

    Once set up it’s required zero attention or maintenance.