Question & Answer
Question
Answer
IBM i NetServer supports the NetBIOS and CIFS file sharing protocols. Server ports 137, 138, and 139 support NetBIOS while port 445 supports CIFS. The NetBIOS protocol is the older of the two and lacks some security functionality found in the newer CIFS protocol. Some security administrators requested the ability to disable the NetBIOS ports but allow CIFS port 445 to remain functional.
This functionality was added to the system with the PTFs for APAR SE70621 :
- SI69106 for 7.2 - included on cumulative group 9123
- SI69107 for 7.3 - included on cumulative group 9311
- No PTF is required for operating system 7.4 and later
With this update, you can prevent NetServer and QNTC from using NetBIOS by adding a port restriction to TCP and UDP ports 137 and 139 with the following commands:
ADDTCPPORT PORT(137 139) PROTOCOL(*TCP) USRPRF(QUSER)
ADDTCPPORT PORT(137 139) PROTOCOL(*UDP) USRPRF(QUSER)
STRTCPSVR *NETSVR
The IBM i NetClient file system (QNTC) relies on NetBIOS services to auto-populate the QNTC path with servers. Server names are not automatically added to the QNTC path when the NetBIOS ports are restricted. Servers can be added to the QNTC path manually with the Create Directory (MKDIR) command after each system IPL. For example,
MKDIR DIR('/QNTC/MyServer')
Adding the port restrictions on a system without the new function results in an error when you start NetServer:
CPIB683 - IBM i Support for Windows Network Neighborhood (IBM i NetServer) was unable to start. 5 - Start of the NetBIOS over TCP/IP failed with return code 3418.
Was this topic helpful?
Document Information
More support for:
IBM i
Software version:
Version Independent
Operating system(s):
iSeries, IBM i
Document number:
646207
Modified date:
03 October 2023
UID
nas8N1020677