title: how a proxy server can be local?
body: <p>i have a server and i setup vpn server on it,
  in our country some websites are blocked.
  but with this proxy server users can not surf websites because the websites URL are still blocked and they see block page ,</p>
  
  <p>programs like Freegate , Gpass , how can make it for us to surf websites ? it means what happens after connecting to server so we set 127.0.0.1 in our browser as proxy server and why localhost is proxyserver in users computer .
  i want to know this way to write a program like it .</p>
  
  <p>regards , bye</p>