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

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