What's new

Port mapping within LAN?

maxbraketorque

Very Senior Member
Is there a way to configure an ASUS router to port map within the LAN? I'm trying to get around an SMB1 issue. I have a device that will only do SMB1 over port 139. The SMB server on the host machine will do SMB1, but it only listens on port 445. I can't figure out how to make it listen on port 139. So I want to send client:139 data to host:445.
 
This doesn't really make any sense. Port 139 was used for the NetBIOS over TCP/IP session service. Port 445 is used for "direct host SMB" without NetBIOS. They're not the same thing so sending port 139 traffic to port 445 won't work.

I can't figure out how to make it listen on port 139.
What is the server device?
 
Last edited:
This doesn't really make any sense. Port 139 was used for the NetBIOS over TCP/IP session service. Port 445 is used for "direct host SMB" without NetBIOS. They're not the same thing so sending port 139 traffic to port 445 won't work.


What is the server device?

Thanks for explaining. The server is a Mac Mini running Sequoia (15.7.5). I know how to configure the SMB server, and I've tried various combinations of SMB levels, including SMB1-only, but the server seems to be refusing connections on port 139, and I don't know the preference for changing this. I've also verified that the NetBIOS daemon is running. Pinging port 139 (nc -vz SERVER-IP 139) results in "Connection refused".
 
I have a device that will only do SMB1 over port 139.
What is the device that will only do SMB1 over port 139?

Edit to add: AI (yeah I know) claims the following:
To configure your Mac Mini running Sequoia for SMB server access on port 139, you can modify the /etc/nsmb.conf file to disable NetBIOS, which allows the system to use port 139. Use the command echo "port445=no_netbios" | sudo tee -a /etc/nsmb.conf to apply this setting.

Configuring SMB Server on Mac Mini Sequoia
To set up your Mac Mini running Sequoia for SMB server access on port 139, you need to modify the /etc/nsmb.conf file. This configuration will disable NetBIOS, allowing your system to utilize port 139 for SMB connections.

Steps to Configure SMB Server
1. Open Terminal on your Mac Mini.
2. Modify the nsmb.conf File:
Use the following command to disable NetBIOS: echo "port445=no_netbios" | sudo tee -a /etc/nsmb.conf
3. Verify Configuration:
Ensure that the changes have been applied correctly by checking the contents of the /etc/nsmb.conf file.
Additional Considerations
Reboot your Mac Mini after making these changes to ensure that the new settings take effect.
If you encounter any issues connecting to the SMB server, consider re-enabling File Sharing in the System Settings and checking your firewall settings.
By following these steps, your Mac Mini should be properly configured to serve SMB connections over port 139.


Try at your own risk.
 
Last edited:
What is the device that will only do SMB1 over port 139?

Edit to add: AI (yeah I know) claims the following:
To configure your Mac Mini running Sequoia for SMB server access on port 139, you can modify the /etc/nsmb.conf file to disable NetBIOS, which allows the system to use port 139. Use the command echo "port445=no_netbios" | sudo tee -a /etc/nsmb.conf to apply this setting.

Configuring SMB Server on Mac Mini Sequoia
To set up your Mac Mini running Sequoia for SMB server access on port 139, you need to modify the /etc/nsmb.conf file. This configuration will disable NetBIOS, allowing your system to utilize port 139 for SMB connections.

Steps to Configure SMB Server
1. Open Terminal on your Mac Mini.
2. Modify the nsmb.conf File:
Use the following command to disable NetBIOS: echo "port445=no_netbios" | sudo tee -a /etc/nsmb.conf
3. Verify Configuration:
Ensure that the changes have been applied correctly by checking the contents of the /etc/nsmb.conf file.
Additional Considerations
Reboot your Mac Mini after making these changes to ensure that the new settings take effect.
If you encounter any issues connecting to the SMB server, consider re-enabling File Sharing in the System Settings and checking your firewall settings.
By following these steps, your Mac Mini should be properly configured to serve SMB connections over port 139.


Try at your own risk.

Another example of an AI giving bad info. The nsmb.conf config file is for the MacOS SMB client, not the server. Plus, I don't want to disable NetBIOS.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top