r/WireGuard • • 2d ago

Need Help Best way to access to Java Web application from outside of my LAN

Hi,

In my company (7 users) need to access to java aplication web from a raspberry pi to access to the application.

I've configured Wireguard but I think it's too unsafe.

Based on your experience, what method would you recommend for providing this access? Please keep in mind that I’m not looking for anything expensive or complicated.

Or do you think the WireGuard method I mentioned is the right one?

Thanks!

2 Upvotes

8 comments sorted by

3

u/ErnLynM 2d ago

What is it that makes you think wireguard is unsafe? Could you implement a client side key that must also be present on the user's machine even if they're connected to wireguard?

1

u/defekas 2d ago

Thanks ErnLynM. Because if someone, for example, steals the computer or mobile phone containing the .conf file, they could attempt to connect to the LAN office.

4

u/arrowrand 2d ago

Look into Netbird.

3

u/ErnLynM 2d ago

Won't that be true of anything? Sounds like you're worried about direct physical access to a trusted machine more than the tunnel it's going to use

Don't let any connection be automated, I suppose. Through a human entered password or an NFC tag that the person carries and needs present when connecting. Then the would be thief would need the laptop and the security card

You can't really trust humans to not keep them together out of convenience though

3

u/Neco_ 2d ago

Secure the computer & phone with encryption

1

u/ivanjxx 2d ago

use disk encryption at least like bitlocker

2

u/k-mcm 2d ago edited 1d ago

It's weird that you got a web server running but haven't figured out networking.

Yes, Wireguard can do it.  Give everyone their own key so you can revoke stolen credentials without disruptions.  For extra security, don't configure LAN access/forwarding yet. Leave it peer-to-peer and have the Raspberry Pi connect to it.