LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 01-12-2003, 11:45 AM   #1
Timon79
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
iptraf and port 20?


Hi,

I have set up iptraf to run in the background and log all packets from/to eth0 to a logfile ( iptaf -s eth0 -B ). Everythings works fine, but traffic on port 20 ( ftp data ) is _not_ beeing logged! Why? Port 21, 22, 25, 80, ... works fine.

Maybe someone can help
Thanks
 
Old 01-12-2003, 01:37 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Are you using passive mode ftp?
 
Old 01-12-2003, 02:18 PM   #3
Timon79
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I don't know. How can i find out?

Here's the log from my client when I connect to the ftp server.

Quote:
230 Login successful. Have fun.
SYST
215 UNIX Type: L8
REST 100
350 Restart position accepted.
REST 0
350 Restart position accepted.
PWD
257 "/"
TYPE A
200 ASCII tastes bad, dude.
PASV
227 Entering Passive Mode (213,83,55,54,192,29)
LIST
150 Here comes the directory listing.
226 Directory send OK.
So, I think yes, I'm using passive mode

Last edited by Timon79; 01-12-2003 at 02:20 PM.
 
Old 01-12-2003, 02:50 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
From "Building Linux and OpenBSD Firewalls" (Sonnenreich, Yates) Wiley Press

Quote:
In passive mode the command channel is still port 21 on the server but the traditional data channel on port 20 is not used. Instead, when the client requests passive mode the server picks an unused local TCP port between port 1024 and 65535 and tells the client."
 
Old 01-12-2003, 03:20 PM   #5
Timon79
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Original Poster
Rep: Reputation: 0
ok, danke.....jetzt weiss ich schonmal warum ftp-data in meinem logfile nicht auftaucht. Kann ich meinen ftp-server zwingen, bestimmte ports zu benutzen, sodass ich die dann mitloggen kann? Ich hab vsftpd laufen.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptraf Ornery_Boy Linux - Software 2 07-22-2005 03:49 PM
IPTraf for IPv6 sawan Linux - Software 1 07-01-2005 05:59 AM
any improved version of iptraf or any other utility like iptraf..? shahg_shahg Linux - Networking 1 03-07-2005 12:58 AM
iptraf drenal Linux - Software 2 02-07-2004 04:57 PM
IpTraf Problem orko Linux - Networking 0 12-01-2003 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration