Home > other >  CwRsync modify port problem
CwRsync modify port problem

Time:10-05

Business requirements: the project need to internal and external web server for file synchronization, due to the information security cannot be accessed via IP, open only the specified port
Problem: use the default port 875 can be synchronized, but after modify the configuration file specified port, the client is not an error but no response;
The configuration file:
Use chroot=false
Strict modes=false
Hosts allow=*
Max connections=10
Port=135
Motd file=rsyncd. Motd
The log file=rsyncd. Log
The pid file=rsyncd. Pid
Transfer logging=yes
[test]
Path=/cygdrive/d/test
Read only=false
Transfer logging=yes
Read only=yes
The list=no
Hosts allow=192.168.31.46
Hosts deny=*
Uid=0
Gid=0
Lock the file=rsyncd. Lock

Script:
Rsync - avzP rsync://192.168.31.46:135/test/cygdrive/e/test

Everyone a great god, help!!!!!!!!!!

CodePudding user response:

Type the server logs

CodePudding user response:

reference 1st floor Runnerchin response:
server logs you type


2017/08/09 14:47:15 [7376] rsync: connection unexpectedly closed (0 bytes received so far) (Receiver)
2017/08/09 14:47:15 [7376] rsync error: error in rsync protocol data stream (code 12) at IO. C (610) [Receiver=3.0.8]

CodePudding user response:

Don't see what the problem is to log the hair up to look at it? Or packaged preach a network location,
Your rsync is independent service or xinetd custody? Configuration file path is what?

CodePudding user response:

reference Runnerchin reply: 3/f
look not to come out is what problem, to log the hair up to look at it? Or packaged preach a network location,
Your rsync is independent service or xinetd custody? Configuration file path is what?


The configuration file:
Use chroot=false
Strict modes=false
Hosts allow=*
Max connections=10
Port=135
Motd file=rsyncd. Motd
The log file=rsyncd. Log
The pid file=rsyncd. Pid
Transfer logging=yes
[test]
Path=/cygdrive/d/test
Read only=false
Transfer logging=yes
Read only=yes
The list=no
Hosts allow=192.168.31.46
Hosts deny=*
Uid=0
Gid=0
Lock the file=rsyncd. Lock

Script:
Rsync - avzP rsync://192.168.31.46:135/test/cygdrive/e/test
An error log on these, the default port 875 normal visit, other port is submitted to the above the fault

CodePudding user response:

Netstat lnop | grep 135 see no port, who is this port is in use,
Rsync is independent service or xinetd custody? Configuration file the path to be sent
  • Related