LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2013, 09:01 AM   #1
yoda987
LQ Newbie
 
Registered: Mar 2011
Location: NC
Distribution: CentOS
Posts: 19

Rep: Reputation: 0
Connection issues on new FTP server


Setup a new FTP server with vsftpd on my cent os box.

Followed this guide:
http://www.cyberciti.biz/tips/rhel-f...tallation.html

Netstat shows its listening properly:
$ netstat -a | grep ftp
tcp 0 0 *:ftp *:* LISTEN

and I put in lines in my IPtables list for it:

-A INPUT -p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT
-A OUTPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT
-A OUTPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT

But its still not allowing connections. Any ideas? TIA!
 
Old 05-31-2013, 09:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,657

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by yoda987 View Post
Setup a new FTP server with vsftpd on my cent os box.
Followed this guide:
http://www.cyberciti.biz/tips/rhel-f...tallation.html

Netstat shows its listening properly:
$ netstat -a | grep ftp
tcp 0 0 *:ftp *:* LISTEN

and I put in lines in my IPtables list for it:

-A INPUT -p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT
-A OUTPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT
-A OUTPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT

But its still not allowing connections. Any ideas? TIA!
Ok, have you tried disabling iptables totally to test this? Anything in your log files? Any error(s) from the command line when you try to connect? Which client are you using? On the same network, different network?? Details would help.
 
Old 05-31-2013, 09:21 AM   #3
yoda987
LQ Newbie
 
Registered: Mar 2011
Location: NC
Distribution: CentOS
Posts: 19

Original Poster
Rep: Reputation: 0
Srry I dont post much on here, thought I included a decent bit and figured Id get asked what I didnt.

log has nothing except my trial attempt from localhost to connect, which did work.

Same network. From a mac, which works fine to ftp to other hosts.

Seems my first test of iptables failed. I tried a diff way to stop it, and that did take. Also seems I didnt save the rules properly as they werent in after I saved and stopped.

They are in there now, but its not accepting with it on. The restart also loaded the ftp module properly it looks

iptables: Loading additional modules: ip_conntrack_ftp [ OK ]
 
  


Reply

Tags
centos, ftp, vsftp, vsftpd



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
Ftp server issues. M.Iftikhar Alam Linux - Server 8 11-30-2010 11:44 PM
ftp server issues JROCK1980 *BSD 1 04-14-2007 02:22 PM
FTP server issues vital_101 Ubuntu 5 09-26-2006 08:22 AM
FTP Connection Issues crowmanic Linux - Networking 1 03-06-2003 06:37 PM
ftp server issues munyard Linux - Software 1 11-07-2002 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 PM.

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