SOCKD statement
Use the SOCKD statement to instruct the FTP client to use a SOCKS server for the destinations that are included in the sockd statement.
Syntax
>>-+-SOCKD--+--+-@=SOCKS_srv_IPv4_Addr-+------------------------> +-SOCKD4-+ '-@=SOCKS_srv_host_name-' '-SOCKD5-' >--+-IPv4_address IPv4_address_mask-+-------------------------->< '-IPv4_address/num_mask_bits-----'
Parameters
- SOCKD
- The SOCKS server requires the use of SOCKSv5 protocols.
- SOCKD4
- The SOCKS server requires the use of SOCKSv4 protocols.
- SOCKD5
- The SOCKS server requires the use of SOCKSv5 protocols.
- SOCKS_srv_host_name
- The DNS name of the SOCKS server host.
- SOCKS_srv_IPv4_addr
- The dotted decimal IPv4 IP address of the SOCKS server host.
- IPv4_address
- Dotted decimal IPv4 address of the FTP server host, or the dotted decimal IPv4 Network ID of the FTP server network or subnet. The network ID can include subnet bits.
- IPv4_address_mask
- Dotted decimal IPv4 subnet mask.
- num_mask_bits
- An integer between 1 and 32 that represents the number of bits, counting from left to right, of the network and subnet portion of the IPv4 address mask.
Examples
In the following example, the first statement instructs the client to use SOCKS V4 protocols and the SOCKSv4 server at IP address 9.1.2.3 for connections to FTP severs within the class C 192.168.1.0 network. The second statement instructs the client to use SOCKSv5 protocols and the SOCKSv5 server at IP address 9.1.2.4 to access any FTP server not covered by a previous statement.
sockd4 @=9.1.2.3 192.168.1.0 255.255.255.0 ; Test net
sockd5 @=9.1.2.4 0.0.0.0 0.0.0.0 ; Anything else
Usage notes
- You can code as many SOCKD statements as needed to cover your configuration.
- DIRECT and SOCKD statements can be mixed in any order.
