1) Summarize the problem
I am struggling to figure out how to set up Ubuntu 22.04 so it acts as a LAN router gateway for several PCs connected to it and VPN into the LAN from outside the network?
2) Provide details and any research
I've Googled, searched on YouTube, gone through several 'networking' sections in Ubuntu books (such as Mastering Ubuntu Server - Fourth Edition ), and I've tried various online suggestions to try and figure out a solution, but so far all I've gotten this far:
3) When appropriate, describe what you’ve tried
- Installed Ubuntu Server
- Edited the netplan yaml file to assign a static IP address to the NICs
- Configured NAT by using ip tables
- Installed a DHCP server
- Installed OpenVPN (doesn't seem to work when I try to use Remote Desktop)
- Installed Guacamole Remote Desktop (doesn't seem to pick up the Windows PCs in the LAN)
I've got 2 Windows PCs connected to the Ubuntu 22.04 server (Windows 10 Pro, the other Windows 11 Pro), and two other PCs with Linux distros (Debian and Oracle Linux), and a TP-Link router with dd-wrt for WiFi.
The use case is that I want to learn about creating a network and system admin (I'm a total noob and have only realy played around with Windows Server), however I still need to have the Windows PCs working for very specific apps that only work on Windows. I need to be able to VPN into the LAN from the internet so I can remote desktop with both the Windows 11 Pro and Windows 10 Pro PCs. So far I've only got SSH working with Ubuntu Server, but I cannot remote access the other Linux PCs so maybe my NAT isn't working properly (I'm very much lost with it). I figure if I can get the VPN working I could Telnet into the Linux PCs.
I'm really motivated to learn this stuff so while I would appreciate a 'do this and that' answer so I can get things working, any learning resource suggestions would be greatly appreciated.