LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-09-2009, 04:34 PM   #1
dandanplan
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 20

Rep: Reputation: 0
Anonymous ftp over vpn -> timeout


Hi,

a friend of mine set up a VPN Server with key authentication and a anonymous FTP Server. He send me his client.conf and keys for me. I adjusted the conf file for my keys. Started the my OpenVPN client, pinged the server and all clients in this net. Everything is OK.
Next I checked the anonymous ftp Server, but could only copy files that are smaller than 5kb to the server. With every larger file I get a timeout of the ftp connection. I tried different Linux programs, nautilus, gftp, filezilla and the commandline ftp. Download is perfectly OK and fast. My friend uses the same settings (obviously) and can upload his files without a timeout. At the best case, I had 1.308 B file on the server.
Next I checked if I can connect to the ftp server trough vpn with vista. I used openvpn and also filezilla. There I could upload my files to the ftp server. Problems with my Lan settings or router can be excluded.

Once again I upload a picture with 83 kb, filezilla tried it 3 times and timeout.
Code:
Command:	STOR shawn.jpg
Response:	150 Ok to send data.
Error:	Connection timed out
Status:	Connecting to 10.0.0.1:21...
Status:	Connection established, waiting for welcome message...
Response:	220 
Command:	USER anonymous
Response:	331 Please specify the password.
Command:	PASS **************
Response:	230 Login successful.
Status:	Connected
Status:	Starting upload of shawn.jpg
Command:	CWD /_public_
Response:	250 Directory successfully changed.
Status:	Retrieving directory listing...
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (10,0,0,1,205,249)
Command:	LIST
Response:	150 Here comes the directory listing.
Response:	226 Directory send OK.
Command:	PASV
Response:	227 Entering Passive Mode (10,0,0,1,122,250)
Command:	STOR shawn.jpg
Error:	Connection timed out
Response:	421 Timeout.
I checked what is transmitted through the tap0 with IPTraf while the upload, packages are transmitted but they seem to get lost.

There are no rules in my iptables.

My system is Ubuntu 9.04 (same as my friend), wireless in my Lan.

Thanks in advance for reading my post, I hope you can help me. If you need more informations feel free to ask. I try to investigate further with wireshark.

dandanplan

Last edited by dandanplan; 07-09-2009 at 04:39 PM.
 
Old 07-10-2009, 06:22 AM   #2
dandanplan
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 20

Original Poster
Rep: Reputation: 0
Hi,

me again. Here I have a screenshot of tap0 interface with wireshark. There is a strange thing, I get a FIN ACK from the server, but the file isn't transmitted, only partial. So filezilla restarts the transmission again for 3 times till the file transfer gets marked as failed.
Now we switched the proto in the openvpn.conf from 'proto udp' to 'proto tcp-client' and upload and download is working properly. There are no more Retransmissions and no duplicated ACKs.
I would say the problem is partially solved, but I wont check the thread as solved. Because with Vista on the same machine and setup I could use UDP but not with Ubuntu. We will keep the tcp-client setting, but maybe someone has an idea for our setup. Thanks again. Have a nice day.
dandanplan
Attached Images
File Type: png tap0-fin-ack.png (131.4 KB, 3 views)
 
Old 07-10-2009, 06:57 AM   #3
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 47
I would think that this may be a function of TCP over UDP, in that UDP doesn't make any guarantees about packet delivery.
 
Old 07-10-2009, 08:29 AM   #4
dandanplan
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, so TCP is obviously more reliable because of the data control (handshake, etc.), right? But why could my fiend with his ubuntu and my Vista installation transmit data to the server through UDP, and my ubuntu installation can't? Could I lack a deb package?
I have a installation of hamachi, but it's not running. Could there be a connection?
And what would be the advantages of UDP in my case? Faster? A different layer? When I google for it, only TCP is praised but there must be an advantage.

Asking too many questions,
dandanplan
 
  


Reply

Tags
openvpn, passive ftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anonymous FTP for all, user FTP logins only for specific IP ranges Sjorrit Slackware 15 04-24-2009 02:32 PM
telnet timeout over VPN jhisaac1 General 3 04-11-2005 10:54 PM
files uploaded to anonymous ftp not readable by anonymous TheOneAndOnlySM Linux - Software 2 11-04-2004 07:42 AM
anonymous ftp jgallas Linux - Newbie 10 08-14-2003 05:08 PM
Iptables And Vpn Timeout ddr Linux - Security 14 02-27-2002 10:13 AM


All times are GMT -5. The time now is 12:53 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration