Questions tagged [socks]

89 questions
60
votes
7 answers

How to use socks proxy for commands in Terminal such as youtube-dl?

I connect to a remote ssh server by running this command: ssh -D 12345 [email protected] This creates a socks proxy that I can use with Firefox to bypass censorship in my country. However, I can't take advantage of it to in the command line. Let's…
user1098135
  • 603
  • 1
  • 6
  • 5
30
votes
1 answer

How does a transparent SOCKS proxy know which destination IP to use?

There are two SOCKS proxies that I know about that support transparent proxying for any outgoing TCP connection: Tor and redsocks. Unlike HTTP proxies, these SOCKS proxies can transparently proxy any outgoing TCP connection, including encrypted…
hololeap
  • 643
  • 1
  • 5
  • 9
25
votes
4 answers

On-demand SSH Socks proxy through systemd user units with socket-activation doesn't restart as wished

To reach an isolated network I use an ssh -D socks proxy. In order to avoid having to type the details every time I added them to ~/.ssh/config: $ awk '/Host socks-proxy/' RS= ~/.ssh/config Host socks-proxy Hostname pcit BatchMode yes …
Alex Stragies
  • 5,857
  • 2
  • 32
  • 56
14
votes
3 answers

SOCKS proxy without ssh command

Currently I create a ssh tunnel using: ssh user@server -D 1234 to use SOCKS proxy. How do I configure server so I can directly connect to socks server? I want to set firefox socks host to server ip and port, instead of 127.0.0.1 and the port…
NPK
  • 433
  • 3
  • 5
  • 12
9
votes
2 answers

Redirect ALL packets from eth1 & eth2 through a SOCKS proxy

Is there a way to redirect all traffic, UDP and TCP, coming to and from eth1 and eth2 through a SOCKS proxy (Tor) which then passes it through eth0? eth0: Internet in - leads to the main router, then the cable modem eth1: A USB Ethernet port setup…
Timberwolf
  • 243
  • 1
  • 2
  • 5
8
votes
2 answers

how do I use rtorrent with a socks5 proxy?

How do I get rtorrent to use a socks5 proxy? I've tried to get socks5 to work with rtorrent, but it doesn't seem to have any impact. Setup the socks5 proxy on port 9800: ssh -ND 9800 user@otherhost in…
chovy
  • 2,039
  • 4
  • 16
  • 18
8
votes
1 answer

SSH over Socks proxy without username or password

I have a list of SOCKS proxy servers from this site. I've read about creating a dynamic tunnels with ssh -D and to be honest i've tried that already. Unfortunately for some reason I cannot connect to any of the proxy servers from the list. I am…
mnmnc
  • 737
  • 7
  • 14
7
votes
2 answers

System wide SOCKS5 Proxy

I connect to my Server on the internet using ssh -D 3128 [email protected]. If I am right I thereby open a SOCKS v5 Proxy to my Server. Using Firefox and FoxyProxy I can now add this to my proxys and tunnel my HTTP-Traffic over it. Howsoever I'd…
Momo
  • 745
  • 1
  • 9
  • 17
7
votes
1 answer

Run SSH over a SOCKS proxy?

I need VPN-like behavior locally, without using a VPN. I've created a SOCKS proxy to a given server which is reachable from the WAN, and I want all of my traffic forwarded through that proxy so I can reach hosts inside of that network. My SOCKS…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
6
votes
2 answers

SSH jumping over socks(4/5) proxy chain. Host -> socks proxy -> socks proxy -> destination

I got a great answer for my previous question about connecting from Machine A to Machine C via Socks proxy located on Machine B. Say Machine B Ip is 218.62.97.105 and it is listening on port 1080 The command for that: ssh -o ProxyCommand='socat -…
mnmnc
  • 737
  • 7
  • 14
6
votes
1 answer

How to create a SSH tunnel over 2 servers?

I have 2 servers, A and B. I want to create a tunnel from my system to server B but I have some limits to do this. So I have to first tunnel to server A and from server A to server B. My goal is to have a SOCKS Proxy to browse the web. How can I do…
hpn
  • 1,431
  • 7
  • 18
  • 21
6
votes
1 answer

is it possible to check whether a local socks proxy works with shell script?

Say I have a SOCKS connection at local (established by ssh -D8888). I use this to do many things, like bypass the internet censorship. But sometimes the ssh would unexpectedly broken. Then the socks is down. Is there anything that I can used to…
AGamePlayer
  • 7,415
  • 16
  • 46
  • 55
6
votes
2 answers

How can I force SOCKS proxy(Danted) to open UDP port

I nearly waste my 1 day for this issue. I have 2 PCs; 1. Windows as a client, 10.20.30.20 2. Debian(latest) as a server, 10.20.30.10 I install Dante(SOCKS proxy) and configure/restart it. I can use this SOCKS proxy(10.20.30.10/1080TCP) from "1".…
Whe3z3y
  • 61
  • 1
  • 2
6
votes
1 answer

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as explained by this guide. This works…
timonsku
  • 171
  • 6
5
votes
1 answer

Socksifying a qemu-kvm using tsocks

I'm trying to socksify a qemu-kvm using tsocks, but I have no success. I don't know if qemu access directly the hardware, skipping the OS or something like that, but I wasn't able to do this feat. I need a solution which socksify the kvm on host…
manoelhc
  • 161
  • 2
  • 5
1
2 3 4 5 6