Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-06-2005, 12:50 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 2
Rep:
|
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)
|
|
|
10-06-2005, 09:04 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
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
|
|
|
10-08-2005, 09:15 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 2
Original Poster
Rep:
|
Cheers i will give that a go.
Thankz in advance
|
|
|
All times are GMT -5. The time now is 05:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|