canal SSH 3: conexão do túnel recusada

0

Eu tento usar algum jogo, Discord através do meu túnel ssh. Então eu criei o túnel via protocolo de meias com ssh:

sudo ssh -D 4343 -p 443 164.**.**.41 -v

Se eu usar o Firefox configurando o proxy nas configurações, tudo bem. Mas para rodar qualquer programa, como o Dofus, eu uso o link do proxychains-ng

sudo proxychains4 -f ~/.proxychains.conf ~/games/Dofus/Dofus 

O começo do jogo, mas ao mesmo tempo no servidor eu tenho as seguintes linhas:

debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34692 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34694 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
channel 4: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34696 to 127.0.0.1 port 4343, nchannels 5
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34698 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34700 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34702 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34704 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34706 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34708 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34710 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34712 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34716 to 127.0.0.1 port 4343, nchannels 5
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34714 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
channel 4: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34718 to 127.0.0.1 port 4343, nchannels 5
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34720 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34722 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34724 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34726 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34728 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34730 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34732 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34734 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34736 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34738 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34740 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34742 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34744 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34746 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34748 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34750 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34752 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34754 to 127.0.0.1 port 4343, nchannels 4

Eu verifiquei se AllowTcpForwarding está habilitado e é.

grep Forwarding /etc/ssh/sshd_config 
X11Forwarding yes
AllowTcpForwarding yes

Eu não sei o que fazer, acho que tenho que abrir ou encaminhar algo via iptables, mas não sei como realmente funciona. E eu não quero abrir cada porta para cada programa.

Agradecemos antecipadamente por suas respostas.

    
por Limmy 29.04.2017 / 00:44

0 respostas