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

wget and socks #838

Closed
0x0L opened this issue Jun 26, 2019 · 2 comments
Closed

wget and socks #838

0x0L opened this issue Jun 26, 2019 · 2 comments
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH

Comments

@0x0L
Copy link

0x0L commented Jun 26, 2019

For server hosts in a restricted network it would be nice to be able to ssh -R port but wget does not seem to support socks.

I tried to put somewhere in my path a shell script named wget - socksifying the original wget but it doesn't seem to get picked up

A preference to use curl or to specify the path to wget would be great

@egamma egamma added feature-request Request for new features or functionality ssh Issue in vscode-remote SSH labels Jun 27, 2019
@caffeineaddiction
Copy link

caffeineaddiction commented Jul 18, 2019

imo there should be 2x client side config options.

  • wget as it is currently setup
  • ssh -R port is used to create dynamic socks proxy on host and reverse forwarded to server and server uses .js functionality to reproduce wget through the socks proxy

as a work around I have done the following:

Desktop ~/.ssh/config

...

Host *
  RemoteForward 54321

...

Remote: ~/bin/wget in which ~/bin is added to PATH via .bashrc

#!/bin/bash
export LD_LIBRARY_PATH=$HOME/opt/lib/tsocks/
export TSOCKS_CONF_FILE=$HOME/opt/tsocks/tsocks.conf
$HOME/bin/tsocks /usr/bin/wget $@

Remote: ~/opt/tsocks/tsocks.conf

server = 127.0.0.1
server_port = 54321
server_type = 5

note tsocks binary has been scp-ed to ~/bin/tsocks and ~/opt/tsocks/ has been created with libtsocks.so which is normally stored in /usr/lib64/libtsocks.so

This is a work around that allows me to have wget functionality with out messing with anything outside my profile to get it to work (eg: no root required ... even though I have it).

@caffeineaddiction
Copy link

see also: #161

@0x0L 0x0L closed this as completed Sep 12, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants