Page 1 of 1
L2TP connection OK but can't transfer files
Posted: Sun Oct 30, 2016 1:30 pm
by dandan
that's it.
I can access remote LAN IPs and browse shared folders successfully.
As soon as I transfer a file from the server to the client, ping reports timeout, the copy stalls at 0% and I have to wait almost a minute for Windows Explorer copy error message.
After those timeouts, the connection is running normally.
Tried connecting also with Windows native client but couldn't copy the file anyway.
I reconfigured the Server to use SoftEther protocol instead of L2TP but with the same results.
Used HTTP File Server utility to transfer files via HTTP instead of SMB, browser transfer stalls at 0% again.
Server version is v4.2 Build 9608 running on Windows 8.1 x64
Client version is v4.2 Build 9608 running on Windows 10 x64
I also tried with other client PC running Windows 7 x64, same results.
What am I doing wrong?
Re: L2TP connection OK but can't transfer files
Posted: Sun Oct 30, 2016 6:26 pm
by moatazelmasry
It might be worth taking a look into the packet_log files on the server and see what is happening.
Out of curiosity. Are both the server and the client ipv4??
Re: L2TP connection OK but can't transfer files
Posted: Sun Oct 30, 2016 10:09 pm
by dandan
Yes, both IPv4.
When running normally, the logfile looks like this:
SYN
SYN+ACK
SYN+ACK
FIN+ACK
FIN+ACK
SYN
Then, when I start the copy, the log changes to this:
RST+ACK
RST
SYN
SYN+ACK
RST+ACK
RST
SYN
SYN+ACK
RST+ACK
RST
SYN
SYN+ACK
I saw that everytime a RST occurs, WindowSize=0 and when there is a SYN or SYN+ACK the WindowSize=8192
Don't know if this is relevant...
Re: L2TP connection OK but can't transfer files
Posted: Mon Oct 31, 2016 8:02 pm
by moatazelmasry
Hmm ok.
Are you using secureNAT. In this case what is the current mtu value? If it is very high, Can you set it to 1500 or 1497?
Also could you please post your current SoftEther config file
Regards,
Moataz
Re: L2TP connection OK but can't transfer files
Posted: Mon Oct 31, 2016 10:57 pm
by dandan
I'm not using SecureNAT.
Please take a look at the attached config file, I edited the private bits.
Re: L2TP connection OK but can't transfer files
Posted: Tue Nov 01, 2016 11:29 am
by moatazelmasry
On the first look I can't see anything unusual.
Which protocol are you using for file transfer? ftp?
Are you staring SoftEther using "execsvc" (I assume) or "start"?
What happens if you switch to SecureNAT instead of bridge?
Re: L2TP connection OK but can't transfer files
Posted: Tue Nov 01, 2016 5:35 pm
by dandan
Thank you.
The protocols used where normal Windows SMB, HTTP (using rejetto.com/hfs) and also ftp. the problem occurs everytime.
I was able to copy only a small file like 200/300 kb, if the file is bigger the copy fails.
SoftEther Server starts automatically with Windows.
By your suggestion, I also tried SecureNAT (with disabled Virtual DHCP to avoid conflict) and the result was the same.
Did other test, I made some queries to a SQL Server and got the connection timeout like when I copy files.
Maybe this release is broken?
Re: L2TP connection OK but can't transfer files
Posted: Tue Nov 01, 2016 7:28 pm
by moatazelmasry
Ok. I suspect this might be the mtu value somewhere.
To really make sure that of this theory, create a text file with 1 character in it and try to copy it over the network. If this works, this will tell us that the window size/mtu value somewhere is set too high, that the other side can not cope with.
And one more test, connect to the SoftEther server using OpenVPN and UDP (not TCP) and try to copy a small and large file.
Re: L2TP connection OK but can't transfer files
Posted: Tue Nov 01, 2016 10:07 pm
by dandan
MTU=1500 on client and server NIC
Re: L2TP connection OK but can't transfer files
Posted: Tue Nov 01, 2016 10:36 pm
by moatazelmasry
What about the other 2 questions?
- transfer a 1 byte file
- Use OpenVPN UDP
Re: L2TP connection OK but can't transfer files
Posted: Wed Nov 02, 2016 8:36 am
by dandan
1 byte file is OK, 200/300 kb file is OK too but 400kb file it always fails.
Didn't have the chance to test OpenVPN yet but I'm using L2TP which is UDP also.
Re: L2TP connection OK but can't transfer files
Posted: Thu Nov 17, 2016 7:32 am
by thisjun
If you copy 400 kb file, it also failed copy at 0%?
Re: L2TP connection OK but can't transfer files
Posted: Sun Nov 20, 2016 11:58 am
by dandan
yes, copy fails at 0%. I can only copy smaller files.
Like I previously said, I tested some queries to a SQL Server and also got the connection timeout like when I copy files, so I think the problem isn't related with the copy process, maybe high usage or something.
Re: L2TP connection OK but can't transfer files
Posted: Wed Dec 07, 2016 7:21 am
by thisjun
Umm....
Could you capture packets on virtual NIC by wireshark?
Re: L2TP connection OK but can't transfer files
Posted: Wed Jun 28, 2017 2:34 pm
by snarfsmojo
dandan - did you ever get this resolved? I am having a VERY similar issue.