I installed dante from yast on opensuse 11.4 and edited /etc/socks.conf to reflect my network configuration but when I try to socksify a command, nothing happens. Even a non-network command, such as “ls -l” does nothing when preceded by socksify.
Will need to see exactly what commands you’re attempting.
Also, especially when you’re talking about Proxy SOCKS, verify you’re properly configuring for SOCKSv4 or SOCKSv5 depending on your proxy.
BTW - usually I don’t try to execute SOCKS commands manually, I usually test using a known SOCKS application. Eliminates or minimizes human mistakes.
And, just curious why/whether you have tried configuring your Proxy from within YAST instead. YMMV no matter what you do, and I’ve found YAST isn’t guaranteed to work always but IMO it should be the first try.
Actually, the above was wrong. However, network commands do nothing when preceded by socksify. It doesn’t matter if you are trying to reach a host routed via SOCKS proxy or direct, you still get no output.
Simply configuring to point directly to a specific machine isn’t necessarily all that is required. Verify
A SOCKS proxy is running on the target machine
Verify firewall(s) are disabled or port opened (default port 1080)
I recommend you take a look at the Dante configuration at the Project website (I’ve embedded the URL). At the least you’ll find in the documentation
You can’t just run the socksify command as you’ve posted. Before that command you need to run the command declaring/configuring the socksify command.
Current versions of Dante do many things automatically like route to same subnet addresses directly which would of course mean that if you attempted to target a SOCKS proxy on your subnet going through a third Host, <that> would need to be configured/declared.
The documentation describes both invoking Dante confgiured in a shell and by config file, you might want to take a look at that.
I should have explained that I have used exactly the same setup on 11.1 with no problem.
In my example above (connecting to machine sung1 on same network), there is no SOCKS proxy on the target machine, I intend the connection to be direct. I gave this as a simple example of how the socksify command fails - even when there is no SOCKS proxy involved.
Has anyone used dante socksify successfully on 11.4?
OK, I found the problem (with help from a colleague).
Dante log shows:
May 6 13:53:16 (1304686396.626847) ssh: parseconfig(): found proxyserver set in environment, value http://www-cache.rd.bbc.co.uk:8080
May 6 13:53:16 (1304686396.626874) ssh: parseconfig(): illegal value for port specification in SOCKS_SERVER http://www-cache.rd.bbc.co.uk:8080: must be between 1 and 65535
Dante examines the HTTP_PROXY environment variable and expects to find a port number after the first occurrence of ‘:’