I would like to assure my boss that port forwarding a raspberry pi is safe. I plan to be doing port forwarding the web port, so I can run an Apache server, and also port forwarding my own program (C command line socket server).
Q1: As I understand it, the only way to hack the raspberry pi (in this case) would be to hack the program that is being port forwarded. Is that true? Could the hacker get to another computer, or hack something else?
Q2: Is Apache unhackable if you port forward it?
Q3: Let's say that the only thing my program does is a ->ping->pong type program. Could there be a way that the program could be used to hack my pi?
Q4. If my pi is hacked, could the hacker then use it to gain access to other computers on the network? What could be done to prevent it?
Thank you very much for any response. If you are only able to answer one of my questions, that is perfectly fine.