Page 1 of 1
connecting ok, transferring data not ok
Posted: Sat Dec 06, 2014 11:27 pm
by jeffatrad
Weird issue - we are running SoftEther with the SoftEther client on L2TP, all pretty standard. The server and client are behind NATs and I have opened 500 and 4500 on the server NAT.
I can connect fine - I can even surf around a machine on the server's side of the NAT. But as soon as I try to copy a large file off the server side to the client, it fails. I wrote a little test app and the call to ReadFile takes like 60 seconds to return an error. If I look at the status on the server or the client - the data numbers are moving.
Even weirder - it WORKS if I copy the other direction. That is, if I copy to the other machine, everything works great! If I connect via Windows PPTP, everything works in both directions fine.
Client is Windows 8.
Server is Linux.
Server side machines are all Windows 8.
All the SoftEther versions are straight off the website yesterday.
Re: connecting ok, transferring data not ok
Posted: Mon Dec 08, 2014 7:06 pm
by dajhorn
L2TP is known to be brittle going through one NAT, so having it work through two NATs is fortunate.
First check the client_log and server_log for obvious errors. Past that, this kind of problem will be difficult to troubleshoot unless you can run something like wireshark on both sides of the L2TP session and have control of both gateway routers.
If you have SoftEther on both sides of the VPN connection, then running a native Cascade Connection across one UDP or TCP port would be a better solution than L2TP.
Re: connecting ok, transferring data not ok
Posted: Mon Dec 08, 2014 8:24 pm
by jeffatrad
But if I am connecting using TCP directly to the listening port (with NAT-T turned off) - if the connection is made, then TCP can talk to each other, right? Isn't this the same thing network-wise as a native Cascade connection (TCP port connection)?
Re: connecting ok, transferring data not ok
Posted: Tue Dec 16, 2014 8:53 am
by thisjun
L2TP uses UDP.
SoftEther native client uses TCP.
These are different.
Re: connecting ok, transferring data not ok
Posted: Sun Dec 21, 2014 11:01 pm
by jeffatrad
thisjun wrote:
> L2TP uses UDP.
> SoftEther native client uses TCP.
> These are different.
Right, I am connecting with the SoftEther native client with TCP. That's what isn't working. I can see directories on the other side of the link, but copying any large files fails.
This fails with multiple client machines connecting to multiple servers on the other end. This fails if I connect NET1->NET2, or if I flip it around and connect NET2->NET1. Connecting with plain old PPTP works fine for everything.
Again, small amounts of traffic works, large amounts immediately fails.
Any ideas? This hasn't
Re: connecting ok, transferring data not ok
Posted: Thu Jan 08, 2015 7:03 am
by thisjun
Did you check a server log?
Re: connecting ok, transferring data not ok
Posted: Thu Jan 08, 2015 7:12 am
by jeffatrad
Yes, nothing in there out of the ordinary. If you read through the posts on this board, there are lots of people with this same problem. SMB just doesn't work over SoftEther...
Re: connecting ok, transferring data not ok
Posted: Wed Jan 21, 2015 7:36 am
by thisjun
Do you use SecureNAT or localbridge?
Re: connecting ok, transferring data not ok
Posted: Wed Jan 21, 2015 9:21 pm
by jeffatrad
Localbridge.
This doesn't work on *any* Windows client configuration - it's very easy to test, just try it.
(Workmachine)<-Linux or Windows VPN server<-Internet->(Homemachine)
Fails when copying files from/to work machine from/to home machine
(Workmachine)<-Linux or Windows VPN server<-Internet->Home VPN server->(Homemachine)
Fails when copying files from/to work machine from/to home machine
No SecureNAT, no UDP. Plain old softether server with softether clients. Nothing fancy at all. Literally, the very simplest VPN server. It connects, but copy any size files and it will immediately fail.
There are tons of posts like this when you scroll through and read everything. It should be trivial to reproduce...
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 4:20 pm
by mesa57
First you talk about L2TP clients and then Softether clients.
In the latter case everything works fine here, SE server on Linux, SE clients on windows.
File copying works either way.
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 6:09 pm
by jeffatrad
> First you talk about L2TP clients and then Softether clients.
Yes, imagine that - I am trying everything. So crazy, right?
I am glad your setup is working - but that doesn't really help me, or the (...hold on...) *7* other people describing the same or similar problems in the just first two pages of posts.
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 6:36 pm
by mesa57
I even experimented with L2TP in the past. It worked, but was inherently slower in file copying.
The way to start is with a SE VPN server on one side and SE VPN clients on the other side.
If file copying is still a problem, I would look for the problem elsewhere.
Try to trace the SMB connections with MS network monitor or Wireshark.
Study you're server logs on times the file copy breaks down.
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 6:46 pm
by jeffatrad
Sigh.
It is not slower in file copying. The file copying fails. It times out after 30 seconds and crashes inside the Win32 ReadFile call.
> The way to start is with a SE VPN server on one side and SE VPN clients on the other side.
That's all I'm doing. I set it up it *exactly* that way on four different links to different computers and different clients (SoftEther may not work, but it is incredibly easy to setup). All fail. All of them fail the same way the other people are describing on this forum. It is instantly repeatable with Windows 7 or Windows 8 clients.
> Study you're server logs on times the file copy breaks down.
As I said, there is nothing in the logs on the server or the client.
> Try to trace the SMB connections with MS network monitor or Wireshark.
Or just use a product that works.
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 7:04 pm
by mesa57
Here
http://pastebin.com/raw.php?i=DA7XrcKa
you can see a network trace of a 2Mb file copy over SE client/server.
I do not have W8 machines on server side, only W7.
I can perform a test from a W8 client if you want to.
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 7:26 pm
by jeffatrad
I'm not doubting your's works - that's just doesn't help those of us for whom it doesn't!
2MB tends to work for me as well, btw - that's not even 300 ms on our links. Mine fails on 1 GB file, but I suspect it's anything with sustained high-speed traffic. But your setup is just different enough not to matter...
Re: connecting ok, transferring data not ok
Posted: Sun Jan 25, 2015 7:49 pm
by mesa57
I saw only 1 recent post where somebody had same problems.
For him it helped to turn off UDP acceleration (SE client/advanced options).
I will try to copy a 1Gb file from W7 to W8 and back.
My SE server runs on a raspberry (debian wheezy) and is not superfast.
[edit]
Copied a file back and forward W7 <-> W8.1 of size 1Gb with no problems
At speeds about 400 Kbs it took about 20 mins.
[/edit]
Re: connecting ok, transferring data not ok
Posted: Wed Feb 04, 2015 9:25 am
by thisjun
Please try to use another protocol to copy files like as HTTP, FTP etc.
Re: connecting ok, transferring data not ok
Posted: Wed Feb 04, 2015 9:25 am
by thisjun
Please try to use another protocol to copy files like as HTTP, FTP etc.
Re: connecting ok, transferring data not ok
Posted: Wed Feb 04, 2015 9:58 am
by mesa57
@thisjun : please explain why copy over VPN should not be used if both sides have a reliable internet connection ?
Re: connecting ok, transferring data not ok
Posted: Wed Feb 18, 2015 6:53 am
by thisjun
I don't know why transfer failed.
However, CIFS is not efficient in high latency network generally.
Re: connecting ok, transferring data not ok
Posted: Wed Feb 18, 2015 6:53 am
by thisjun
I don't know why transfer failed.
However, CIFS is not efficient in high latency network generally.