K
K
KALT882016-12-14 16:04:52
SSH
KALT88, 2016-12-14 16:04:52

Allow external network access to socks5 ssh tunnels, how?

I've been tinkering for a week already, I would have done it in a swoop in the windows, but I'm at odds with the console. I tell :
Given: Client, VPS1, Root shells, internal grids are different for everyone.
Required: VPS1 creates multiple ssh tunnels to shells listening on its own side socks5 ports that it opens for the external network, a client connects to these ports and drives traffic through the tunnels, about 20 ports.
I give VPS1 a command

$ ssh -D 8888:0.0.0.0 -f -C -q -N [email protected]

I log in, I scan ports from the external network - mute 8888. I tried in different ways, including through squid, to implement polypo - to no avail. It’s completely crooked and I’m doing something wrong, therefore I ask for help.
UPD: Earned!
Edited sshd_config by
$ sudo nano /etc/ssh/sshd_config
adding the line GatewayPorts yes
, the daemon was killed
$ killall –HUP sshd
and such a command connected
$ ssh -f -N -n -D 0.0.0.0:8888 -R 12345:0.0.0.0:12345 [email protected]

Now set a proxy to wrap the traffic of applications that do not support socks.
OpenVPN and a script for the whole thing, I still feel the hassle ..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question