I've set up a squid forward proxy to cache all internet requests. I have a public ip and opened port 3128. Now I just need to set my ubuntu server to force all internet connections to pass through this proxy, using the ip address and port number.
I know this command which will make ubuntu access the internet via a proxy, but I was told it wasn't permanent.
Which command do I need to use to force ubuntu to go through this proxy regardless of reboots or sessions?