Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Redsocks will forward non-redirected request to socks5 server #155

Open
TommyJerryMairo opened this issue Dec 8, 2020 · 0 comments

Comments

@TommyJerryMairo
Copy link

TommyJerryMairo commented Dec 8, 2020

Software Version

0.5

Operating System

ArchLinux

Bug Description

Redsocks will forward the TCP connection to the socks5 server when the original destination is the redsocks listening port

Expected Behaviour

Redsocks will reject and close the TCP connection when the original destination is the redsocks listening port

Reproduce Steps

  1. Connect to an ssh server with dynamic port forwarding(socks5) enabled
  2. Configure redsocks to listen to redirected connections on 127.0.0.1:31338 and forward it to socks5 server provided by the ssh
  3. Use socat TCP4-LISTEN:127.0.0.1:31338 - to connect at the socks5 server provided by ssh
  4. In the ssh shell, check the system log which states sshd[7858]: error: connect_to 127.0.0.1 port 31338: failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant