I am going to host a small server for small text-based webservice on a RPI as I dont have funds for a remote server. Someone might pehaps try to hack it someday, and as I am only a hobbyist, I assume we are in a scenario where the hacker has access to the whole RPI.
So, how do I make it difficult for the attacker to get access to my other devices and router on the system?. Like, what security practices should I incorporate? Like for instance use a vpn, proxy or something like that?
I have read this thread also: What should be done to secure Raspberry Pi?
I am thinking about running a spring-boot and some SQL program using an ordinary user account (no root privelages) with write and read permissions.