Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/ftp/ProxyTesting.md
- This file was added.
1 | # Proxy Testing | ||||
---|---|---|---|---|---|
2 | | ||||
3 | At the time of writing the slave only supports socks proxies. | ||||
4 | To set up a proxy put it in the socks and/or ftp category of the proxy KCM. | ||||
5 | | ||||
6 | Dante is a fairly nice socks proxy server https://www.inet.no/dante | ||||
7 | | ||||
8 | ## Dante config | ||||
9 | | ||||
10 | To get a working dante config you'll at least need to configure internal and external addresses/interfaces: | ||||
11 | | ||||
12 | ``` | ||||
13 | internal: br0 port = 1080 | ||||
14 | external: 192.168.100.106 | ||||
15 | ``` | ||||
16 | | ||||
17 | For easy authentication against the unix user database the additonal is necessary: | ||||
18 | | ||||
19 | ``` | ||||
20 | socksmethod: username | ||||
21 | user.privileged: root | ||||
22 | user.unprivileged: nobody | ||||
23 | client pass { | ||||
24 | from: 0.0.0.0/0 to: 0.0.0.0/0 | ||||
25 | log: connect error | ||||
26 | } | ||||
27 | socks pass { | ||||
28 | from: 0.0.0.0/0 to: 0.0.0.0/0 | ||||
29 | protocol: tcp udp | ||||
30 | command: bind connect udpassociate | ||||
31 | log: error connect | ||||
32 | socksmethod: username | ||||
33 | } | ||||
34 | ``` | ||||
35 | | ||||
36 | This should give you a working socks proxy with authentication requirement. | ||||
37 | | ||||
38 | ## Debugging | ||||
39 | | ||||
40 | Something like this should do for debugging: | ||||
41 | | ||||
42 | ``` | ||||
43 | logoutput: stderr syslog /var/log/sockd.log | ||||
44 | debug: 1 | ||||
45 | ``` |