LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-06-2005, 12:50 AM   #1
cyberzork
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Question Problems trying to FTP via Redhat Server


Need help with FTP Redhat Firewall problem.
--------------------------------------------------------
Recently a Linux guy (Now moved away) setup a Linux Redhat Firewall server
connected to a Cable Modem for our Windows PC's to share Internet etc.

Now the Browsing is ok and Email is ok, but we are having problems with FTP.
We can connect ok to the IP Address and the username/password verifies ok,
but then we get a message saying eg:-
------------------------------------------------------------------------------------------------
500 I won't open a connection to 192.168.0.13 (only to 60.226.143.244)
! Failed "port":
! Retrieve of folder listing failed (0)
------------------------------------------------------------------------------------------------
Note:- I am on the Windows pc getting the IP Address 192.168.0.13 .
Now i tried passive mode using the same ftp port 21 and same problem.
The linux guy said we have to mod the IP Tables somewhere, but he is
not exactly sure where to do it to allow us to FTP from local windows pc's.?
I have included the full error message ftp log below. I found the IPTables
File on the Linux box, but have no idea what to do there. Any help would
be greatly appreciated.

(Full FTP Log Error).
WINSOCK.DLL: WinSock 2.0
WS_FTP LE 5.08 2000.01.13, Copyright © 1992-2000 Ipswitch, Inc.
- -
connecting to 216.58.174.154:21
Connected to 216.58.174.154 port 21
220---------- Welcome to Pure-FTPd [privsep] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 19:31. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
USER inventco
331 User inventco OK. Password required
PASS (hidden)
230-User inventco has group access to: ftponly
230 OK. Current restricted directory is /
PWD
257 "/" is your current location
SYST
215 UNIX Type: L8
Host type (S): UNIX (standard)
PASV
227 Entering Passive Mode (216,58,174,154,111,145)
connecting to 216.58.174.154:28561
- -
connecting to 216.58.174.154:28561
! Connection failed 216.58.174.154 - connection timed out
! connect: error 0
PORT 192,168,0,13,4,76
500 I won't open a connection to 192.168.0.13 (only to 60.226.143.244)
! Failed "port":
! Retrieve of folder listing failed (0)
 
Old 10-06-2005, 09:04 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Not IP Tables but "iptables". This is the firewall setup.

You can run "iptables -L" to see current setup.

There ought to be a line in your output that is showing the allowed IP you got in the message. Editing the rule (or adding another like it) for the new IP should do it.

Failing that you could just turn off iptables temporilly then turn it back on after the ftp has completed. On my RedHat I'd do this with:

service iptables stop
--then--
serivce iptables start
 
Old 10-08-2005, 09:15 PM   #3
cyberzork
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Cheers i will give that a go.

Thankz in advance
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
redhat as webserver, ftp server, Mail server, firewall ineth Linux - Newbie 1 09-10-2005 08:14 AM
Ftp server i Redhat israel Linux - Software 1 12-04-2003 11:22 PM
ftp server for redhat 9 steve_babbage Linux - Software 3 11-18-2003 12:23 PM
ftp server under REDHAT 7.3 rpinatel Linux - Software 0 10-21-2003 03:34 AM
How do I start the ftp server on RedHat 7.1? cyanide Linux - Newbie 1 10-26-2001 03:06 AM

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

All times are GMT -5. The time now is 05:41 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