Я пытаюсь использовать какую-то игру, Discord через мой ssh-туннель. Поэтому я создал туннель по протоколу socks с помощью ssh:
sudo ssh -D 4343 -p 443 164.**.**.41 -v
Если я использую Firefox, настроив прокси в настройках, он работает нормально. Но для запуска любой программы, например Dofus, я использую proxychains-ng https://github.com/rofl0r/proxychains-ng
sudo proxychains4 -f ~/.proxychains.conf ~/games/Dofus/Dofus
Игра запускается, но в то же время на сервере появляются следующие строки:
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
Я проверил, включен ли AllowTcpForwarding, и это так.
grep Forwarding /etc/ssh/sshd_config
X11Forwarding yes
AllowTcpForwarding yes
Я не знаю, что делать, я думаю, что должен открыть или переслать что-то через iptables, но я не знаю, как на самом деле. И я не хочу открывать каждый порт для каждой программы.
Заранее спасибо за ваши ответы.