29
votes
Accepted
How to create a SOCKS proxy with ssh?
tl;dr -- seek the bold text below.
Note: I use $ prefix for strings you have to substitute with your desired values. This syntax is not meant to be fully compatible with variables in any shell.
Usage ...
24
votes
SSH Reverse socks tunnel
local$ ssh -R 1080 remote
remote$ curl --socks5 localhost https://example.com
since OpenSSH 7.6
ssh(1): add support for reverse dynamic forwarding. In this mode,
ssh will act as a SOCKS4/5 proxy ...
21
votes
Convert HTTP requests to SOCKS5
You can also use Privoxy. Add this line to its config.txt file:
forward-socks5 / 127.0.0.1:9050 .
(Don't forget the small dot at the end.)
Then use the HTTP or HTTPS proxy at 127.0.0.1:8118
11
votes
Convert HTTP requests to SOCKS5
HTTP Proxy to Socks5
Install python-proxy
$ pip3 install pproxy
$ pproxy -r socks5://127.0.0.1:9150 -vv
Usage
http://127.0.0.1:8080
https://127.0.0.1:8080
8
votes
How can I use SSH with a SOCKS 5 proxy?
tsocks (http://tsocks.sourceforge.net/) is a nice wrapper that uses LD_PRELOAD to make any program use SOCKS proxy transparently:
tsocks ssh example.com
Just works, remember to configure SOCKS proxy ...
5
votes
How to create a virtual interface from a socks proxy?
You need tun2socks, it is part of BadVPN project (https://github.com/ambrop72/badvpn). There is already an answer here recommending tun2socks, but it lacks examples.
You can either build tun2socks ...
4
votes
Accepted
Does Chromium not support SOCKS5H (with the "H" in the end)?
This convention originated in curl :
When socks5 is used the domain name is resolved locally and the
resolved IP is passed to the proxy server.
This is usually undesirable, since it leaks DNS requests,...
3
votes
Accepted
Internet Explorer 11 as a SOCKS5 Proxy Client Resolves Hostnames Locally, not on the Proxy
there is no version of IE that supports SOCKS5 (not even Edge), they are all SOCKS4 which doesn't support server-side DNS resolution.
If you want a SOCKS5 browser, then Firefox does it (but doesn't ...
3
votes
OpenVPN client as SOCKS 5 server?
I did this. It took me a long time. In short,
Set up OpenVPN client such that only programs that use its network interface use the VPN.
Set up a local SSH server (freesshd) and force it to the VPN ...
2
votes
SSH as socks proxy through multiple hosts
For AWS EMR Sock Proxy, below are the applied steps. Assuming we have two hops scenarios as below
[your-laptop] --<ssh key1>--> [Jump-Box] --<ssh key2>--> [EMR-Master]
And you have ...
2
votes
Convert HTTP requests to SOCKS5
Fiddler also allows a conversion from http request to a socks tunnelled request.
I did this to push some Windows Updates to run through a socks connection (via Amazon EC2 and Putty).
From this page ...
2
votes
SSH Reverse socks tunnel
Newer versions of OpenSSH (>= 7.6) support natively the reverse dynamic TCP forwarding.
From the (current) manual at the -R option:
... if no explicit destination [is] specified, ssh will act as a ...
2
votes
How can I use SSH with a SOCKS 5 proxy?
ssh is able to understand ALL_PROXY environment variable so apparently something like this
ALL_PROXY=socks5://127.0.0.1:9150 ssh example.com
does the trick also for me at least.
2
votes
How can I use SSH with a SOCKS 5 proxy?
Just to make it more simple, you could put these in ~/.ssh/config
host = example.com
ProxyCommand nc -X 5 -x 127.0.0.1:9150 %h %p
Any ssh command in terminal will now get through this proxy.
2
votes
How can I use SSH with a SOCKS 5 proxy?
This following command will do, to just use nc:
ssh examplehost.com -o "ProxyCommand=nc --proxy localhost:7000 %h %p"
Default is HTTP proxy, there is an HTTP proxy running on port 7000.
2
votes
Reversed ssh tunnel w/ socks
Apparently nobody can answer this question, that's okay because I found the answer myself.
Here is the answers:
On victim: ssh -N -f -R 5555:localhost:22 -p <port_of_serv> <ip_of_serv>
...
1
vote
Route all traffic except Tor through an SSH connection
Run tor on the same system you're running redsocks on.
Make an exception for the tor socks port 9050 on your remote system - put an iptables rule above allowing it, etc.
Tell your browser to connect ...
1
vote
Is there a SOCKS proxy server program that supports a HTTP parent proxy?
You can use some open source software, here is some:
using Golang: https://github.com/stdupp/valuga
using Python: https://gist.github.com/zengxs/dc6cb4dea4495ecaab7b44abb07a581f
using Rust: https://...
1
vote
Accepted
Creating VPN "kill-switch" using SOCKS
Web browsing is based on 2 major protocols: DNS and HTTP(S).
DNS is used to translate a domain name (i.e. superuser.com) into an IP address (i.e. 123.45.67.89).
HTTP actually transports the web pages ...
1
vote
Can I use domain name instead of IP to connect SOCKS5 proxy server?
Yes, You can use send domain name to socks5 server.
you can setup dante socks client where you need to edit /etc/socks.conf
Set "resolveprotocol" to "fake" in the client configuration file. then ...
1
vote
UDP traffic through Socks
Short answer. No you can't.
SOCKS5 supports UDP Association, where you can get the SOCKS server to relay UDP data between a client and another endpoint. There are numerous problems with the design ...
1
vote
Accepted
Tunnel internet through ssh then through a proxy
Solution
Your first method was close try, this:
Open Putty
Host Name= 10.1.32.7
Port= 22
Go to Connection then SSH then Tunnels
Source port= 4567
Destination= 10.25.0.42:3128
Tick Local
Click Add
Go ...
1
vote
Accepted
exclude socket files during diff -r
I don't think this is possible with diff itself without code modifications. You will need to use find to list the required files, which you can then pass to diff without recursion:
find /var/ -type f ...
1
vote
Accepted
Debian Linux: How can I expose a SOCKS proxy as a HTTP proxy for the purpose of HTTP/HTTPS requests?
You can use TorSocks for this. It's a preloadable library that redirects programs to use a socks proxy. It's typically used to redirect to Tor, but it can redirect to anything.
1
vote
Certificate authentication over socks/ssh
You could try (if you are only going to a single internal site) setting up a TCP proxy that makes a SSL/TLS connection upstream. WinGate will allow you to do this, and also allows you to specify a ...
1
vote
Accepted
Pass Microsoft Edge traffic through proxifer
Install Fiddler (I have tested with 4.5.1 )
in Tools -> Win8 Loopback Exceptions
Check all or just the apps you like from the list
Click Save Changes (note: dialogue will be open after that)
now , ...
1
vote
How to set up a hotspot with socks5 proxy
I have a similar set up. wlan0 is connected to the internet (through my router) while wlan1 acts as a hotspot (Access Point) for my Android phone. wlan1 is set up with ipv4 address 10.0.0.1/24 that is ...
1
vote
Can I ping/send ICMP through TOR?
As the previous answer already mentioned: ICMP is not possible over Tor. But, nowadays Tor offers a SOCKS5 proxy by default.
But if you just want to test connectivity over Tor, you could use TCP-...
1
vote
How can I tell if a proxy is SOCKS or HTTP using a command in terminal?
Use the following shell command with curl to check:
ip=127.0.0.1
port=8080
(timeout 2 curl -x socks5://$ip:$port -qs -o/dev/null http://example.com/ && printf "socks5\t$ip\t$port\n") \
|| (...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
socks × 88proxy × 47
ssh × 36
linux × 19
socks-proxy × 18
networking × 16
tunnel × 13
socks5 × 12
ssh-tunnel × 11
vpn × 10
windows × 7
macos × 7
tor × 6
http × 5
routing × 4
putty × 4
openvpn × 4
iptables × 4
udp × 4
google-chrome × 3
openssh × 3
https × 3
tcp × 3
windows-10 × 2
mac × 2