Creating the SOCKS Configuration
Create or edit the SOCKS configuration file or dataset you have defined in
the FTP configuration (for example, /etc/socks.conf
).
The following configuration secures connections to hosts 192.168.10.5 and
192.168.10.10, and to class C network 192.168.20.0. Connections to other
addresses will be direct:
sockd @=127.0.0.1 192.168.10.5 255.255.255.255
sockd @=127.0.0.1 192.168.10.10 255.255.255.255
sockd @=127.0.0.1 192.168.20.0 255.255.255.0
direct 0.0.0.0 0.0.0.0
|
The following configuration assumes that the loopback address for
transparent FTP tunneling proxy was changed. It makes all FTP connections
use SOCKS on the new loopback address:
sockd @=127.0.0.2 0.0.0.0 0.0.0.0
|