An agent-based application utilizing the SMB protocol can enable secure access to organizational users to servers or drives.
Configuring an SMB application to provide secure access to a file server
To configure an SMB application, follow these steps.
- Enter a unique Application Name.
- Upload a relevant Application Logo that will be visible to business users as a thumbnail.
- Enter the Application Description if any.
- In the IP Address/Domain Name field enter the File Server or Samba Share Server IP address.
- Select the SMB protocol from the dropdown. Automatically port number will be populated in the Port Value field next to it.
- Enter the External Domain Name that will be visible to business users.
For Example, fileshare.seqrite.seqriteztna.com -
Select the appropriate App Connector from the dropdown.
Accessing an SMB Application as a business user
To access an SMB application as a business user, follow these steps.
- Log in to a user portal. For Example, apps.seqrite.seqriteztna.com.
(The user portal domain name is unique for each account. Please check the same under Settings > Site management > Sidebar view) - Click the file server application and connect.
- Copy the domain which is published after connecting the application.
-
Paste it in a run window. For Example, \fileshare.seqrite.seqriteztna.com.
Important Note: ☛
- Disable Server service from services.msc
Reason: Port 445 is mandatory for accessing the application through SMB. Protocol. By default, the ‘Server’ service listens on port 445, which blocks the agent to listen on port 445. Hence it is recommended to stop and disable Server service. Once it is done, restart the machine and start accessing the SMP application. - Connect to only one SMB server at a time.
Reason: Windows strictly allows listening only on 127.0.0.1:445 for SMB.
The above limitations are specific to Windows only.
The Seqrite ZTNA Agent has no role in authenticating SMB Server Credentials nor in checking drive or folder-specific restrictions for any user. This is done on the SMB Server end.
- Disable Server service from services.msc
Gaining full access to SMB Server
There are several ways to access an SMB server on Windows.
-
Using Windows Run
Press Windows Key + R. Enter \external_domain_name then click OK. (that is configured in Seqrite ZTNA admin console > Applications page.)
-
Using File Explorer Address Bar
Type \external_domain_name (that is configured in AppCatalog) in the File Explorer Address Bar and click Enter.
Business users can access SMB servers by following the above two methods. The business user will see all the shared folders available on the server. A user will get the following error if they attempt to access the folder they don’t have access to.
Configuring SMB Server access as per requirements
Windows SMB Server Drive specific access
To configure a specific Drive for sharing, follow these steps.
1. Right-click the Drive.
2. Select Properties.
3. Go to Sharing.
![SMB No Access Error](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Drive_Access.png)
4. Go to Advanced Sharing. Click Share this folder. Change the Share Name (if required)
![Advanced Sharing](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Adveanced_Sharing.png)
5. Click on Permissions for user control and read/write permissions.
![Permission for Drive](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Permission_C.png)
6. By default, read-only access is provided to everyone. To add or remove a specific user, click Add or Remove respectively.
7. Click Apply.
![Permission for User](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Permission_User.png)
8. Before clicking on close, observe the Network Path (Highlighted in the following image, use this path to access the specific folder through SMB Client).
1. Right-click the Drive.
2. Select Properties.
3. Go to Sharing.
![SMB No Access Error](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Drive_Access.png)
4. Go to Advanced Sharing. Click Share this folder. Change the Share Name (if required)
![Advanced Sharing](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Adveanced_Sharing.png)
5. Click on Permissions for user control and read/write permissions.
![Permission for Drive](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Permission_C.png)
6. By default, read-only access is provided to everyone. To add or remove a specific user, click Add or Remove respectively.
7. Click Apply.
![Permission for User](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Permission_User.png)
8. Before clicking on close, observe the Network Path (Highlighted in the following image, use this path to access the specific folder through SMB Client).
![Network Path](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Network_Path.png)
SMB Drive Access
![Read Only Drive Error](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Read_Only_Drive_Error.png)
This shared C drive is created as read-only. If a user tries to create a folder in this shared drive the following error will appear.
Windows SMB Server Folder Specific Access
To provide an SMB Server Folder access, follow these steps.
1. Right-click the folder which you want to share.
2. Go to Properties and then Sharing.
![SMB Script](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Script.png)
3. Click Share. By default, a user who created the folder is the owner and has default access to it.
![File Sharing](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_File_Sharing.png)
4. You can add other specific users and give them permission.
![Choose Users](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Choose_People.png)
5. Click Share. Observer the Network Path. Use that path to access from the SMB client.
1. Right-click the folder which you want to share.
2. Go to Properties and then Sharing.
![SMB Script](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Script.png)
3. Click Share. By default, a user who created the folder is the owner and has default access to it.
![File Sharing](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_File_Sharing.png)
4. You can add other specific users and give them permission.
![Choose Users](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_Choose_People.png)
5. Click Share. Observer the Network Path. Use that path to access from the SMB client.
SMB Server folder specific Access through Seqrite ZTNA Agent
![Choose Users](https://docs.seqrite.com/wp-content/uploads/2023/03/SMB_HP_Agent_access.png)