I'm able to proxy requests via SSH SOCKS, when doing:
ssh -fqN -D 127.0.0.1:8080 [email protected]
curl --proxy socks5h://127.0.0.1:8080 -d '{my: parameter}' -H "Content-Type: application/json" http://10.0.30.10
I would like to be able to just type:
curl -d '{my: parameter}' -H "Content-Type: application/json" http://10.0.30.10
As I also need to use the proxy in other applications where I cannot add --proxy socks5h://127.0.0.1:8080 (such as jQuery JavaScript http requests etc.).
Is it possible to add the proxy as a route or in iptables so I can use the proxy in other applications?