Questions tagged [socks]

Socket Secure (SOCKS for short) is an Internet protocol that routes network packets between a client and server through a Proxy server.

Resources:

  • RFC 1928 SOCKS Protocol Version 5
  • RFC 1929 Username/Password Authentication for SOCKS V5
  • RFC 1961 GSS-API Authentication Method for SOCKS Version 5
  • RFC 3089 A SOCKS-based IPv6/IPv4 Gateway Mechanism
774 questions
5
votes
1 answer

Connecting with different Proxies to specific addresses

I am developing a Java webservice application (with JAX-WS) that has to use two different proxies to establish separated connections to internet and an intranet. As solution I tried to write my own java.net.ProxySelector that returns a…
Crazy Doc
  • 349
  • 1
  • 3
  • 11
5
votes
6 answers

Make Emacs access to HTTPS over Socks proxy

This issue drove me crazy. I have a local SOCKSv5 proxy which is a gateway for all application on the system. I'd like to make url-retrieve-synchronously go though the SOCKS. With the following settings: (setq socks-noproxy '("127.0.0.1")) (setq…
zweibaranov
  • 570
  • 4
  • 11
5
votes
1 answer

Hbase API through sock proxy

Is there a way to call HbaseAdmin/Htable through sock proxy? I want to use localhost:1080 socks proxy mapped to one of the boxes in cluster and then talk to Hbase(Zookeeper, Master, RegionServer). Is there a way to do that? Thanks.
Rishi Kesh Dwivedi
  • 643
  • 2
  • 7
  • 15
5
votes
5 answers

Why my script follows /etc/hosts but the browsers do not, when there is a SOCKS proxy?

My MacBook in office does not have internet access. So I set up an instant SOCKS Proxy over SSH to access stackoverflow. I mainly use my MacBook for development so I rely on /etc/hosts and virtual hosts to test some sites locally. However, when I…
ohho
  • 50,879
  • 75
  • 256
  • 383
5
votes
1 answer

Dynamic application-level port forwarding with SOCKS using paramiko library in python

I'm trying to connect to SSH server in the following way: import paramiko import socks sock = socks.socksocket() sock.setproxy(socks.PROXY_TYPE_SOCKS5, 'localhost', 22, True) sock.connect((**IP address of SSH server**, 22)) t =…
rok
  • 9,403
  • 17
  • 70
  • 126
5
votes
4 answers

Java Library for SSH SOCKS binding (Dynamic Port Forwarding)?

I'm looking for a way to connect to my remote server using ssh binding inside my java application. I enter the command like below inside my terminal to connect my server: ssh -D 1234 username@w.x.y.z then I can configure my browser socks ip & port…
Mehdi
  • 3,795
  • 3
  • 36
  • 65
5
votes
1 answer

public socks proxy over SSH

So I'm able to create a local socks proxy with sudo ssh -D 8080 user@server and I can access it only from my machine: nmap -p 8080 127.0.0.1 8080/tcp open http-proxy However this proxy is not accessible from my local network: nmap -p 8080…
Raman Shalupau
  • 171
  • 2
  • 9
5
votes
3 answers

Set proxy.socks.port selenium

I am used to setting http port like this: profile.set_preference("network.proxy.http_port", "PORTNUMBER") and that works . But now I need to connect with socks proxy and set the port, which it's not working …
rowasc
  • 320
  • 1
  • 3
  • 10
4
votes
1 answer

How can I extract HTTP data going over SOCKS with Wireshark?

I took a pcap trace when accessing a website using Opera Mini on my mobile, and as Opera Mini uses a socks proxy to tunnel http traffic, the wireshark trace shows most of the packets as socks packets. Is there a way to extract the http payload from…
Phillip
  • 5,366
  • 10
  • 43
  • 62
4
votes
0 answers

Are there any embeddable socks proxy servers that tunnels traffic through a remote host via ssh?

ssh -D 9191 ronald@ssh.somehost.com will create a socks proxy locally that will tunnel all traffic through the remote host. Is it possible to build this in to an application C++ or C and make it possible for this application direct all its traffic…
Per Arneng
  • 173
  • 1
  • 1
  • 4
4
votes
1 answer

Is SOCKS5 bind persistent, or one-time only?

I've been studying RFC 1928 and the description of the BIND operation wasn't clear to me. The setup sequence is described as follows, as I understand it: The client establishes connection to the SOCKS5 server The client performs the CONNECT…
Roman Dmitrienko
  • 3,375
  • 3
  • 37
  • 48
4
votes
2 answers

Can't send requests through socks5 proxy with Python

I was trying to send http/https requests via proxy (socks5), but I can't understand if the problem is in my code or in the proxy. I tried using this code and it gives me an error: requests.exceptions.ConnectionError:…
SAL
  • 547
  • 2
  • 8
  • 25
4
votes
1 answer

How do I configure RestAssured http client to use socks proxy?

Apparently rest-assured misses support for socks proxies: https://github.com/rest-assured/rest-assured/issues/934. Is there way to overcome this and despite all connect through proxy?
Radek Postołowicz
  • 4,506
  • 2
  • 30
  • 47
4
votes
1 answer

How to use multiple proxies (agents) at the same time in node.js

I'm using an HTTP request library that can use an http.Agent instance in order to route your requests through a specific proxy. Let me give you an example: const SocksProxyAgent = require('socks-proxy-agent') const HttpProxyAgent =…
Forivin
  • 14,780
  • 27
  • 106
  • 199
4
votes
0 answers

Can I use a SOCKS proxy (or any easy to implement proxy) only for specific domains?

I have a remote computer that I SSH into, forward a port and use a SOCKS proxy to resolve domains using the remote's network. On MacOS I have the ability to remove certain domains from being proxied, but not the ability to allow all domains except…
David Alsh
  • 6,747
  • 6
  • 34
  • 60