SSHトンネル「チャネルx:オープン失敗:接続失敗:接続タイムアウト」

SSHトンネル「チャネルx:オープン失敗:接続失敗:接続タイムアウト」

私はこの問題に対する一種の「解決策」を検索して広範囲に検索しましたが、私が得た最高の答えは「何もできません」でした。もちろんこれは満足できないので、次のようになります。

自宅にSSHデーモンが設定されており、SSHトンネルを介してここに接続したいと思います。 SSHは問題なく動作します。トンネルにも問題はないようです。ローカルで実行されるコマンドは次のとおりです。

~$ ssh [email protected] -p 53256 -D11323

自宅のものには、ポート53256を私のSSHサーバーのポート22に転送するルーターがあります。すべてがうまく接続されており、トンネルもうまく機能しているようです。マシンで127.0.0.1:11323のSOCKSプロキシを設定し、Webサイトに正常にアクセスできます。ただし、ubuntuforums.orgやfedoraforums.orgなどの特定のWebサイトにアクセスすると、接続が深刻に中断されます。 ssh コマンドを使用するシェルは、タイトルにエラーを表示し、接続が失敗します。この記事を読んだ後に私が得た最も近い答えは、「サーバーのロードまたは誤った設定」に問題があるということでした。しかし、私を混乱させることは、トンネルを介してこれらのサイトにまったく接続できないということです。では、誰でもソリューションを提供できますか?

編集:以下は、失敗するまでSSHに対して-vvオプションを有効にした出力です。

debug1: Connection to port 11323 forwarding to socks port 0 requested.
debug2: fd 11 setting TCP_NODELAY
debug2: fd 11 setting O_NONBLOCK
debug1: channel 5: new [dynamic-tcpip]
debug2: channel 5: pre_dynamic: have 0
debug2: channel 5: pre_dynamic: have 3
debug2: channel 5: decode socks5
debug2: channel 5: socks5 auth done
debug2: channel 5: pre_dynamic: need more
debug2: channel 5: pre_dynamic: have 0
debug2: channel 5: pre_dynamic: have 23
debug2: channel 5: decode socks5
debug2: channel 5: socks5 post auth
debug2: channel 5: dynamic request: socks5 host ubuntuforums.com port 80 command 1
debug1: Connection to port 11323 forwarding to socks port 0 requested.
debug2: fd 12 setting TCP_NODELAY
debug2: fd 12 setting O_NONBLOCK
debug1: channel 6: new [dynamic-tcpip]
debug2: channel 6: pre_dynamic: have 0
debug2: channel 6: pre_dynamic: have 3
debug2: channel 6: decode socks5
debug2: channel 6: socks5 auth done
debug2: channel 6: pre_dynamic: need more
debug2: channel 6: pre_dynamic: have 0
debug2: channel 6: pre_dynamic: have 23
debug2: channel 6: decode socks5
debug2: channel 6: socks5 post auth
debug2: channel 6: dynamic request: socks5 host ubuntuforums.com port 80 command 1
channel 5: open failed: connect failed: Connection timed out
debug2: channel 5: zombie
debug2: channel 5: garbage collecting
debug1: channel 5: free: direct-tcpip: listening port 11323 for ubuntuforums.com port 80, connect from ::1 port 56088 to ::1 port 11323, nchannels 7
channel 6: open failed: connect failed: Connection timed out
debug2: channel 6: zombie
debug2: channel 6: garbage collecting
debug1: channel 6: free: direct-tcpip: listening port 11323 for   ubuntuforums.com port 80, connect from ::1 port 56090 to ::1 port 11323, nchannels 6

ベストアンサー1

私は愚かです。私のサーバーに奇妙なiptablesルールが設定されています。すべてをクリアした後、すべてがうまくいきました。邪魔してすみません。

おすすめ記事