Open firewall port implementation Robocopy file copy

Source: Internet
Author: User
Tags copy file copy connect firewall backup robocopy

Robocopy is a powerful replication tool that can be found in Windows Server 2003 's Windows Resource Kit tools. In conjunction with the scheduled task, you can implement a timed copy of the SQL backup on one machine to another place on the network as a backup. This article discusses how to open some ports of the firewall to transfer files between an Internet server running Windows 2000 and an intranet server running Windows 2003 server.

First, Robocopy uses the SMB protocol to transfer files between hosts, and SMB based traffic uses several of the following ports:

137(TCP/IP): NETBIOS 名字
138(UDP): NETBIOS 数据报
139(TCP):NETBIOS 会话
445(TCP): 在TCP之上的SMB

In the default network parameters, Robocopy attempts to connect to the remote host using TCP's 139 port, and if the user wants Robocopy to force 445 ports, NetBIOS on the IP protocol must be disabled on the source host. Because the target system is web-oriented, NetBIOS is also disabled.

In the TCP/IP Properties dialog box, click the Advanced button, and then click the WINS tab, and then click the Disable TCP/IP NetBIOS radio button. Thereafter, Robocopy will automatically use TCP's 445 ports to connect to the target system, so users should allow file access from the source host to the target host through the firewall.

If users want to ensure the security of data transmission, you can configure each host, enable IPSec encryption, and then set up a firewall to allow IPSec traffic for two hosts. Thereafter, users can use the Netstat command to view the ports for real-time communications.

Another handy tool is the active Ports, a free, easy-to-use TCP/IP and UDP port monitoring tool that shows which programs open those ports and also displays remote IP addresses to local IP connections that can be used to detect Trojans and other hacker programs. Active ports can display all real-time port connections, which is helpful in determining which program uses ports. If you want to get more granular information, consider using the capture tool ethereal to capture the transmission of the data.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.