curl -v -x socks5://<user>:<passwort>@<server>:<port> <url>
Code-Sprache: HTML, XML (xml)
Example:
curl -v -x socks5://proxy:geheim@hg-system.com:8080 https://google.com
Code-Sprache: JavaScript (javascript)
Configuration
to use it replace venet0:0 through your interface for example eth0
to see your interfaces use ifconfig
<code>#logging
logoutput: /var/log/sockd.log
#debug: 1
#user.privileged: root
user.privileged: nobody
# The listening network interface or address.
internal: 0.0.0.0 port=8080
# The proxying network interface or address.
external: venet0:0
# socks-rules determine what is proxied through the external interface.
socksmethod: username
#authentication methods
clientmethod: none
method: none
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error # connect disconnect
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
</code>
Code-Sprache: PHP (php)
sudo nano /etc/danted.conf