The description of the method example_method is well printed, so I'm sure the tunneling works (because methods can't work without it, as there is an IP restriction which accept only requests from the host server). The error comes when calling client.example_method(). The output is :
Error: SOCKS connection failed. Connection not allowed by ruleset.
at Socket.<anonymous> (xxxxx/node_modules/socks5-client/lib/Socket.js:246:25)
at Object.onceWrapper (events.js:285:13)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:145:17)
Hello,
I am trying to reproduce this ssh command with node.js :
ssh -D 1080 -N user@host -I key.pem
, to use this tunnel to execute SOAP requests.My node.js implementation of SOAP API using port 1080 is as follow (and works with the ssh command launched) :
And everything works as expected like this, whether
client.describe()
andclient.example_method()
.The issue comes when trying to create the socks proxy with node. Full (censored) code below :
The description of the method example_method is well printed, so I'm sure the tunneling works (because methods can't work without it, as there is an IP restriction which accept only requests from the host server). The error comes when calling
client.example_method()
. The output is :Any idea of what is missing ? Thanks !