Access the Server Manager for a server instance and click the SOCKS tab.
Click the Set SOCKS v5 Authentication link.
Click the Add button.
In the Host Mask field, type the IP addresses or host names of the hosts that the SOCKS server will authenticate.
If you type an IP address, follow the address with a forward slash and the mask to be applied to the incoming IP address. The SOCKS server applies this mask to the IP address to determine if it is a valid host. Do not use spaces in the host mask entry. If you do not type a host mask, the authentication entry applies to all hosts.
For example, you can type 220.127.116.11/255.255.0.0 in the host mask field. If the host’s IP address is 18.104.22.168, the SOCKS server applies the mask to the IP address and determines that the host’s IP address matches the IP address for which the authentication record applies (22.214.171.124).
In the Port Range field, type the ports on the host computers that the SOCKS server will authenticate.
Do not use spaces in the port range entry. If you do not provide a port range, the authentication entry applies to all ports.
You can use brackets [ ] to include the ports at each end of the range or parentheses ( ) to exclude them. For example, [1000-1010] means all port numbers between and including 1000 and 1010, while (1000-1010) means all port numbers between, but not including, 1000 and 1010. You can also mix brackets and parentheses. For instance, (1000-1010] means all numbers between 1000 and 1010, excluding 1000 but including 1010.
The following options are available:
Require user-password. User name and password are required to access the SOCKS server.
User-password, if available. If a user name and password are available, they should be used to access the SOCKS server but they are not required for access.
Ban. Banned from the SOCKS server.
None. No authentication is required to access the SOCKS server.
From the Insert drop-down list, select the position for this entry in the socks5.conf file and click OK.
Because you can have multiple authentication methods, you must specify the order in which they are evaluated. Therefore, if the client does not support the first authentication method listed, the second method is used instead. If the client does not support any of the authentication methods listed, the SOCKS server disconnects without accepting a request.