If the web server (or any server) gets compromised, how should I set it up as to avoid someone getting information about my home network?
If the web server (or any server) gets compromised, how should I set it up as to avoid someone getting information about my home network?
You need a separate device to act as a firewall. See if you can get a device running OpenWRT or pfSense to manage your whole network (search those terms on eBay to find cheap devices pre-flashed) and put the server on its own VLAN with minimal access to the outside world and no access to your trusted LAN.