Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [socks]

The tag has no usage guidance.

1
vote
1answer
68 views

managing multiple proxies in linux

I use different proxies for different purposes. I use shadowsocks proxy for my general purpose web surfing. For going to bank websites, I disable proxy. For accessing some websites related to my ...
0
votes
1answer
57 views

How does SSH used for dynamic port forwarding know where a request wants to go?

Dynamic port forwarding using SSH uses SOCKS protocol. How does SSH know where a request wants to go? For example if the request is a HTTP request, SSH doesn't understand HTTP, so where does it find ...
0
votes
0answers
103 views

default routing to tun interface though socks proxy

Here is my default (and working) route setup on my fedora workstation: [root@localhost ~]# ip route default via 192.168.0.1 dev enp0s3 proto dhcp metric 20100 192.168.0.0/24 dev enp0s3 proto kernel ...
0
votes
2answers
47 views

Using FirewallD as SOCKS server

On CentOS 7, can the FirewallD service be used as a SOCKS server? i.e. if I connect ISP line to server's port #1 and LAN to port #2? Using Squid allows LAN clients to browse only, but other things ...
1
vote
0answers
594 views

Use socks proxy in terminal

I am using selektor, which is similar to vidalia tor bundle. The default settings, use safe socks with port number 9054. It is fine and when I set the firefox proxy to "use system proxy", I can access ...
0
votes
1answer
53 views

Cannot get to 192.168.*.* addresses when using chromium with socks proxy

I'm running the following command on terminal: $ /usr/bin/chromium-browser --proxy-server="socks5://127.0.0.1:9050" --host-resolver-rules="MAP * ~NOTFOUND, EXCLUDE 127.0.0.1, EXCLUDE 192.168.1.106" 2&...
1
vote
1answer
1k views

SSH Tunnel Between Multiple Hosts

This is slightly different than the other SSH questions I have seen on here so here it goes. I have a complex setup for accessing a web application and unfortunately there is no way around it. Here is ...
14
votes
1answer
1k views

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 ...
1
vote
1answer
500 views

ssh as proxy server does not work

No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.0 (stretch) Release: 9.0 Codename: stretch I want to use ssh as a socks server through a free public ssh ...
1
vote
0answers
310 views

why TOR fails to connect?

I've installed tor on ubuntu. when I run it by torsocks bash, then I type tail -f /var/log/tor/log to get its statement and this is the result: May 05 21:56:46.000 [notice] Bootstrapped 10%: ...
1
vote
1answer
590 views

How do I force VPN clients to only go through a local SOCKS5 proxy?

I have a Raspberry Pi which establishes an SSH connection to a remote server (VPS) and opens a port on the Pi so I can use it as a SOCKS5 proxy. This is the command I use to establish the tunnel: ssh ...
3
votes
0answers
508 views

How do I use autossh to set up a no-frills socks proxy?

I use ssh -D 12345 joeuser@somewhere.com to set up dynamic port forwarding via host somewhere.com. I want to switch to using autossh to daemonize the thing and to make sure I don't need to manually ...
1
vote
1answer
170 views

Cannot reverse port forwarding with SSH as temporary user

I own linux machine A and have a limited access to linux machine B. Both machine have Internet access. Internet access on machine A is partially censored so I want to make a SOCKS proxy tunnel ...
0
votes
1answer
638 views

How can I verify if browsing using SOCKS5 proxy (via SSH -D) is TCP over TCP?

The link talks about TCP over TCP when http is used over SOCKS via SSH. I am trying to browse from Firefox (on Ubuntu 14.04) after setting up the SOCKS5 proxy option via localhost. I created a ...
1
vote
1answer
894 views

Dante authenticating user

I have this VPS that has 5 external/public ip addresses and, on only one of them I want to allow user 'someuser' to login in dante: internal: 122.231.9.3 port = 1080 external: 122.231.9.3 ...
3
votes
1answer
150 views

wait for chromium to exit before continuing a shell script

I'm trying to set up a script that I can call up easily in a WM. The idea is to establish a socks tunnel via ssh to a known-good server and then start chromium with the appropriate environment ...
0
votes
1answer
1k views

SSH - How To Make Three Computer Tunnel?

ComputerA connects though putty to Server at port 77, and there is a reverse tunnel set up from the Server at port 6666 to ComputerA at port 22. ComputerA also has a ssh server set up with a user ...
1
vote
0answers
97 views

Share socks5 connection to a 2nd NIC system wide

I'm trying to accomplish the following: I have a server with two NICs. One is wireless (wlan0) made as an access point (using hostapd) and the other one (eth0) is connected to a network that doesn't ...
0
votes
1answer
487 views

Start proxy on system boot

So I have tor installed and have it enabled with systemctl, so tor.service starts on boot and I can automatically just configure SOCKS5 proxies to 127.0.0.1:9050. Now, tor has a few minor annoyances. ...
0
votes
2answers
174 views

Can you fake a SOCKS5 proxy?

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 ...
1
vote
1answer
3k views

HOWTO: sshfs via socks proxy

I have some bridge host, which allows access to protected network. I connect to it using this command: ssh sergius@bridge_host -D 3128 Thus, I can turn on socks proxy in browser and it works. I can ...
5
votes
1answer
5k views

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 ...
3
votes
1answer
2k views

Create Wifi Hotspot for sharing SOCKS Proxy on Ubuntu Server

I'm using Ubuntu Server and I have a SOCKS Proxy server on my client which is created with ssh -D command. I want to create a Wifi Hotspot on this computer which passes the traffic through this SOCKS ...
1
vote
1answer
944 views

Which processes do the ports (as communication connection endpoints) belong to in SSH port forwarding?

(1) For remote forwarding: -R [bind_address:]port:host:hostport Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side. ...
0
votes
1answer
727 views

What's the relationship between SOCKS and socket?

SOCKS (socket secure) is a protocol for proxy. A socket is an endpoint of communication. Why is SOCKS named after socket? How are they related?
2
votes
1answer
358 views

Identical situation different results! cannot watch youtube over proxy

I use a socks5 proxy for daily Internet browsing to bypass Internet censors (actually it is a Windows application called freegate and I use it under Wine it doesn't need accounts or anything: it is ...
3
votes
1answer
3k views

About tun2socks (BadVPN) SOCKS proxy

I am not very experienced with socks proxy. Recently I found the tun2socks. If you open the link, in the 1st paragraph it says : It implements a TUN virtual network interface which accepts all ...
2
votes
1answer
1k views

How to route traffic through different proxy servers based on destination

Background I work on a corporate network that is behind a proxy server. I also work with some remote sites that I am able to access via a bastion / jump host ssh proxy. In my ~/.ssh/config I have a ...
2
votes
1answer
385 views

Configure Tor Browser to run over SSH SOCKS proxy?

I'd like to proxy all of my Tor Browser traffic through my home network remotely over SSH. If I have SSH access to a computer in my home network and a Tor Browser bundle here, how can I set up the ...
0
votes
1answer
873 views

Connect to internet through socks proxy where local DNS does not resolve

I have a local machine with CentOS 7. There is a Socks V5 proxy server on the local subnet that provides this machine with access to the internet. I am able to download files with, curl -x --proxy ...
6
votes
1answer
3k views

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 ...
1
vote
0answers
3k views

sftp using socks proxy command with password authentication

I am struggling to make a sftp connection.We need to make a sftp connection to download files. My requirement is that we are moving from ftp gateway to axway and We were using ftp before to download a ...
0
votes
1answer
164 views

Gnome Shell or Mutter makes X unusable when I kill/restart/etc. tor

I've configured the system to use Tor by setting the SOCK proxy to port 9050 in Settings -> Network -> Network Proxy. At times, Tor takes ages to reconnect after the wifi driver crashes or whatever. ...
1
vote
1answer
189 views

Unexpected netstat output in DNAT conditions

So, here I have a basic setup with SOCKS5 proxy listening on, oh, say 8123 I redirect TCP to the proxy via iptables From iptables perspective everything looks peachy, iptables -t nat -v -L shows ...
1
vote
0answers
339 views

How do I correctly configure Danted?

I have a debian droplet on digital ocean that I'm trying to get danted to work on. I know I have the right username and password and I want to set up a socks5 proxy with auth. Maxathon gives me a 130 ...
4
votes
1answer
17k views

SSH tunneling fails with “administratively prohibited: open failed” [duplicate]

I am trying to connect to internet via a server in local network. I don't have permissions to change server configuration. I want to do a ssh tunnel to that server and via that using socks proxy, I ...
1
vote
0answers
410 views

How to create a SOCKS only group?

I am currently trying to set up a user group that can connect to a server over SSH but only proxy through it. They can't see any files or run any commands. Users in the group would also be able to use ...
2
votes
0answers
2k views

how to open up socks/SSH on different network interfaces?

iptables -A PREROUTING -i usb0 -t mangle -p tcp --dport 8080 -j MARK --set-mark 1 iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD ...
2
votes
1answer
8k views

Proxychains, Tor, SSH and Danted. Connection denied

I'm trying to setup proxychains on Kali like this : User > Tor > SOCKS5 > Out I've created my SOCKS5 server with danted running on port 1080. I setup an SSH connection on my Kali distrib : ...
2
votes
0answers
2k views

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 ...
15
votes
1answer
7k views

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 ...
3
votes
2answers
1k views

run a local SOCKS proxy tunneled through SSH

I was going through this post and couldn't quiet follow what is being implied there. A great "feature" I use every day at work: The ability to have SSH listen on port 443 so I can create a ...
6
votes
1answer
2k views

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 ...
5
votes
1answer
2k views

Debian CLI torrent program through VPN

Has anyone successfully set up a CLI-only (no web UI's!) torrent client that can tunnel all of its traffic through a VPN? (Either by sending all traffic through a particular interface or a SOCKS proxy)...
6
votes
2answers
10k views

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 ...
1
vote
1answer
350 views

How do I run a sock proxy via ssh on a non-standard port?

I am running into a bit of trouble accessing a web application running on port 9293 on a remote server only accessible via ssh on port 5634. I've configured FoxyProxy to route all traffic meeting the ...
1
vote
0answers
108 views

ssh connection hangs when looking up a SERVFAIL domain

Scenario: I am browsing the internet through an ssh -D port-forwarding tunnel, both browsing (http, https, ...) connections and domain lookup queries are done using this SOCKS 5 local proxy. The ...
1
vote
0answers
1k views

How to redirect/forward between a tun/tap device and a socket using linux tools?

I have a socks5 proxy that is bind to eth0. It opens two ports, Port1 is used to connect to remote (for example a http server), Port2 is to listen for clients to connect. Then I created a tun device. ...
1
vote
2answers
1k views

Reverse socks5 using SSH

Setup: Server is a virtual machine Server have a local ip adress Server is restricted so that it can't reach the internet (not sure how) Client machine have access to both server via SSH Client have ...
2
votes
1answer
3k views

How can I configure OpenVPN to wait for slow SOCKS proxies?

I'm experimenting with OpenVPN connections routed through Tor, using pairs of Tor gateway and OpenVPN-hosting VMs. On the server side, link local ports are forwarded to Tor hidden-service ports on the ...