Edit smb.conf and find a line like this,

smb ports = 445 139

change this default port to

smb ports = 2222 2000

Then restart samba server. Now samba server should be listening on the new ports that you have mentioned.

For more info on customizing samba server click here for documentation.

N.B. : Use port number above 1024 as these are reserved for system purpose.

分类: Linux

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据