What I'm wondering if there's a possibility to do something like
curl --socks5-hostname 127.0.0.1:8080 url.com
Without actually going through any proxy, just your normal internet connection, meaning you have your normal IP etc.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Well, if you log in via ssh over loopback:
% ssh -D 8080 localhost
Then you'll have localhost:8080 socks proxy created for you over that'll use the same host/IP/routes that you already use.
-D [bind_address:]port Specifies a local ``dynamic'' application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server.
Otherwise, it's not very clear what were you expecting to use as the SOCKS5 proxy handler, if you don't want to have a SOCKS5 proxy.
You would need something running a proxy. Without a proxy, its like calling a phone number with no phone on the other end and expecting to somehow get through. In the same way, the applications are expecting something on your computer to be listening, respond, and talk the right protocol.
There are many simple (and efficient) proxies you could run, and would be no/low security risk if they only listen at 127.0.0.1
Also, while using ssh as a SOCKS proxy is certainly possible and often already installed, it is notably slower than dedicated proxy solutions (per my personal experience compared to port forwarding to squid on the same remote host, and per several of my acquaintances).