SSH-Kanal 3: Tunnelverbindung abgelehnt


0

Ich versuche ein Spiel zu benutzen, Discord durch meinen SSH-Tunnel. Also habe ich den Tunnel via Socks-Protokoll mit ssh erstellt:

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

Wenn ich Firefox verwende, indem ich den Proxy in den Einstellungen konfiguriere, funktioniert es einwandfrei. Aber um ein Programm wie Dofus auszuführen, verwende ich Proxychains-ng https://github.com/rofl0r/proxychains-ng

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

Das Spiel startet, aber zur gleichen Zeit auf dem Server habe ich die folgenden Zeilen:

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

Ich habe überprüft, ob AllowTcpForwarding aktiviert ist.

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

Ich weiß nicht, was ich tun soll, ich glaube, ich muss etwas über iptables öffnen oder weiterleiten, aber ich weiß nicht, wie ich es wirklich tun soll. Und ich möchte nicht jeden Port für jedes Programm öffnen.

Vielen Dank im Voraus für Ihre Antworten.


Es sieht so aus, als ob die Anwendung einige Ports auf localhost öffnet, die mit Ihrem proxychainsan den Remote-Server weitergeleitet werden. Dies schlägt jedoch fehl, da dies nicht zulässig ist.
Jakuje

@ Jakuje und wie kann ich das auf meinem Server zulassen?
Limmy
Durch die Nutzung unserer Website bestätigen Sie, dass Sie unsere Cookie-Richtlinie und Datenschutzrichtlinie gelesen und verstanden haben.
Licensed under cc by-sa 3.0 with attribution required.