Results 1 to 2 of 2

Thread: Forwarding incoming SSH traffic to a local Socks5 server (or other services)

  1. #1
    Join Date
    Dec 2022
    Beans
    1

    Forwarding incoming SSH traffic to a local Socks5 server (or other services)

    Question link on AskAubuntu

    The scenario is That a cloud Ubuntu server is running a Socks5 proxy server on a specified port; on this cloud server :
    • Socks5 server serving on port 1515 (only local connections accepted)
    • SSH is accepting connections from ports 22,33 and 44

    What we want is to let any client use "Dynamic port forwarding" ability of SSH to connect to the Socks5 server running on the cloud server to be specific Client is going to use this command :
    ssh -D 1080 -N -f user@cloudserver.host
    So any application that uses Port 1080 on the client will have it's traffic routed through the SSH connection and then That remote Socks5 server, so the traffic path will be like :App running on client machine>Client Socks server on port 1080>SSH Tunnel>Socks5 server accepting local connectionsI hope I have explained clearly, Thnaks

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Forwarding incoming SSH traffic to a local Socks5 server (or other services)

    Any user with ssh access to a remote system can use that ssh connection as a SOCKS5 server for their browser.

    Let me search for the script I've posted in these forums a few times ....
    Took a bit ... https://ubuntuforums.org/showthread....3#post13996823

    Anyway, hope that helps someone.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •