Using ssh, I can use another computer as a proxy, for ex.
$ssh -D 9999 username@ip-address-of-ssh-server
Now, I can configure my application to use socks proxy on port 9999 at the above given up address.
If I own a web server, can i make a php script which also listens from connections on a particular port (preferably access provided through password)?