I want to set up my Raspberry pi as a proxy server for one pc on my network.
This is the scenario:
I have a virgin media superhub (UK), I want any device that can connect to this with the wifi to have a normal connection not through the proxy.
From the hub, I have a switch which extends a wired connection to one pc running ubuntu.
I want the user of this pc to have root access and be able to change anything on their computer, but I want any web connection to go through a raspberry pi. This raspbery pi would then block access to certain websites.
Complications. The pc is used as a webserver and I want to make sure people can access that computer through ssh and things like teamviewer from external sites.
How do I physically set up the network? I need to make sure that the ubuntu pc cant just change a setting to directly access the internet through the router. So I am assuming that just plugging the pi into the switch might not work.
Once the network is physically set up, what would be the software configuration to enable this?
I realize this will not be completely secure because the user of the pc could use a vpn to tunnel their connection past the proxy, but I want to ignore this possibility at the moment.