I have a VPS and have configured it to run apache2 as a forward proxy:
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy vps_ip:80>
Order deny,allow
Deny from all
Allow from all
</Proxy>
</IfModule>
This allows me to use my VPS from my home machine to download resources from the web, using curl:
curl -x "vps_ip:80" http://www.someresource.com -o /tmp/mydown
However, I understand that this is considered an open proxy and I want to restrict its use just for my home machine. Apache configuration supports static IP whitelist for proxy clients like my home machine. However, my ISP assigns me different dynamic IPs every time I connect to the internet.
How can I prevent others from using my forward proxy on my VPS?