I'm accessing my Ubuntu machine using RDP from a Windows desktop, in the same wifi network (that is, I'm only using RDP locally, not through the internet). I want to disable all internet traffic, but still allow WLAN traffic, because I need it to control the machine via RDP.
Is there a simple option/rule in RDP to make that happen? If possible, I'd like to create a script or have some easy option to quickly block all internet/allow all internet again.
The reason I want to do this is that I often leave the machine on and don't attend it, update it etc. The security config is also not the best, since it's more of a test machine. It's a good idea I think to disable the internet in these cases just to avoid any attacks.
Related question: block internet access and keep LAN access - firewall (it uses iptables directly, but I'm not savvy enough to handle them, I'd prefer to use UFW)
ufw
as a whole but not a set of rules. I have not used profiles withufw
. – user68186 May 19 '22 at 19:32