[squid-users] Allow SFTP connection to port 9122

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Jan 19 14:23:42 UTC 2023


On 19.01.23 13:45, Emanuel Gonzalez wrote:
>I have created the environment variables necessary to be able to exit through the proxy:
>
>http_proxy=http://myprox.prod:3142
>
>ftp_proxy=http://myproxy.prod:3142
>
>https_proxy=http://myproxy.prod:3142
>
>i try the connection but never happen
>
>sftp -v -oProxyCommand='nc -v -xtheprovider-front.prod:3142 %h %p' -oPort=9122 user at sftp.server.com
[...]
>debug1: Enabling compatibility mode for protocol 2.0
>debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u3

I don't see here any attempt to connect destination server not 

however, NC uses socks proxy by default, you should configure it to use http 
connect proxy using the -X option.

I would try configuring proxychains or connect-proxy instead of nc.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fucking windows! Bring Bill Gates! (Southpark the movie)


More information about the squid-users mailing list